主题:关于define class的一个小问题
我define class myContainer AS container
我想在子类myContainer里面加上
commandbutton 还有optiongroup
是不是这样:
define class myContainer AS container
width = 100
height = 50
add object myCommandButton AS commandbutton
with width = 80,height = 30
procedure click
do form
endproc
add object myOptionGroup AS optiongroup
with width = 80,height = 20
enddefine
这样有问题吗
然后如果要用这个子类里面的比如commandbutton就 myContainer.myCommandButton就可以了?
我想在子类myContainer里面加上
commandbutton 还有optiongroup
是不是这样:
define class myContainer AS container
width = 100
height = 50
add object myCommandButton AS commandbutton
with width = 80,height = 30
procedure click
do form
endproc
add object myOptionGroup AS optiongroup
with width = 80,height = 20
enddefine
这样有问题吗
然后如果要用这个子类里面的比如commandbutton就 myContainer.myCommandButton就可以了?