Hi to everyone
These objects have their Create() method. I do some change about Visible() and connected events.
Please remember: when you overwrite a generic method pay attention to copy entire source code.
For example this is the source code about Create() method within Basic.prg
Code: Select all
METHOD Create() CLASS BASIC
IF ::lCreated == .T.
RETURN NIL
ENDIF
::lCreated := .T.
// Create inner controls
::CreatePendingChildControls()
::__HmgConnectEv()
IF ::Visible() == .T.
::oQtObject:show()
ENDIF
RETURN Self
You must copy all lines and don't remove anything if not required.
for example: __HmgConnectEv() connects the default events (close).
If the new object need more connections, you must overwrite __HmgConnectEv() and __HmgDisconnectEv() from basic.
At the same time if object doesn't handle a default connected event, you must overwrite __HmgConnectEv() and __HmgDisconnectEv() from basic.
Please report bugs about broken code from this commit.
Code: Select all
2011-11-02 11:30 UTC+0100 Luigi Ferraris ( <luigi at l3w.it> )
! source/animatebox.prg
! source/browse.prg
! source/grid.prg
! source/ipaddress.prg
! source/menupopup.prg
! source/splitbox.prg
! source/textbox.prg
! source/tree.prg
! source/virtualgrid.prg
! when Visible() is .T. the QtObject must be shown else not.
Made change within Basic class Create() method. Some Qt objects don't
uses show() method (ie QAction or MENUITEM). For these objects, Create()
method must be overwrite. Please send notice about broken code.
; ATTENTION PLEASE: when you overwrite a method from other class
(ie Create()) remember to copy the entire code and then edit/remove/add
code with carefull.