Page 1 of 1

harbour CLASS vs. Xbase++ CLASS

Posted: Sun Oct 30, 2022 6:42 am
by Jimmy
hi,

under harbour i have to pass all Parameter which are need "before" Create Control

under Xbase++ i have o:New() to pass "some" Parameter AND MUST call o:Create()
but between o:New() and o:Create() i got access to Member of CLASS to "fill" Property

Code: Select all | Expand

   oDlg := XbpDialog():New(oParent,oOwner,aPos,aSize)
   // before Create()
   oDlg:Caption := "Demo"
   ...
   oDlg:Create()
   // after Create()
   oDlg1:setDisplayFocus  := bSetFocus 
   oDlg1:killDisplayFocus := bKillFocus
this make OOP Code better to "read" instead of lot Parameter delemited with ","

Question :
is this Style possible under Fivewin :?:
can i still use #xCommand for this Type of CLASS :?:

p.s.
HMG does not have so much Parameter for #xCommand so i have not try to use OOP Style under HMG

Re: harbour CLASS vs. Xbase++ CLASS

Posted: Sun Oct 30, 2022 7:39 pm
by Antonio Linares
Dear Jimmy,

Why don't you use the FWH commands ? Using them you avoid having to deal with so many parameters

Re: harbour CLASS vs. Xbase++ CLASS

Posted: Mon Oct 31, 2022 5:00 am
by Jimmy
hi Antonio,
Antonio Linares wrote:Why don't you use the FWH commands ?
Using them you avoid having to deal with so many parameters
there are still a lot in Fivewin what i have to learn

i got Problem with xCommand e.g. COMBOBOX like in this Thread
https://forums.fivetechsupport.com/view ... hp?t=42381
both Method in 1st Sample crash and i don´t understand why :(

so i switch to OOP and try to use CLASS TCombobox()
OOP is much more easy for me and i can search in Source when i not understand Help File