Hi,
I'm testing a concept with a class (in .prg), called by a button on my form:
With ThisForm
Local lcProc
lcProc = set('Procedure')
Set procedure to class_sample
.Addobject('Container1', 'MyContainer', 836, 36, 109, 263)
.Container4.Visible = .T.
Set procedure to (lcProc)
ENDWITH
This is the class content:
Define class MyContainer as Container
PROCEDURE Init(tnLeft, tnTop, tnHeight, tnWidth)
With This
.Left = tnLeft
.Top = tnTop
.Height = tnHeight
.Width = tnWidth
ENDWITH
ENDPROC
PROCEDURE Click
WAIT WINDOW "You just clicked..." timeout(1)
ENDPROC
ENDDEFINE
If I run my form and click the button my container is created and visible, but when clicking the container nothing happens (no wait message).
What am I overlooking?
Regards, Gerrit
Today is only yesterday's tommorrow - Uriah Heep