harbour CLASS vs. Xbase++ CLASS

Post Reply
User avatar
Jimmy
Posts: 1740
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany
Has thanked: 2 times

harbour CLASS vs. Xbase++ CLASS

Post 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
greeting,
Jimmy
User avatar
Antonio Linares
Site Admin
Posts: 42595
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 38 times
Been thanked: 86 times
Contact:

Re: harbour CLASS vs. Xbase++ CLASS

Post by Antonio Linares »

Dear Jimmy,

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

Antonio Linares
www.fivetechsoft.com
User avatar
Jimmy
Posts: 1740
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany
Has thanked: 2 times

Re: harbour CLASS vs. Xbase++ CLASS

Post 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
greeting,
Jimmy
Post Reply