|
From: oleksa <m.o...@uk...> - 2013-05-13 09:06:42
|
What value should return in this case (sample below, button bt2) classname of dialog or classname of current control, now return classname of parent class?
#include "guilib.ch"
func main()
local odlg, bt1, i1, bt2
i1:=0
init dialog odlg title "test" at 0,0 size 800,400
@010,010 ownerbutton bt1 of odlg text "cnt" size 100,24 on click {|o|hwg_msginfo(o:classname),i1++,bt1:SetText(str(i1))}
@010,120 Button bt2 caption 'this classname' Size 120,24 on click {|o22|hwg_msginfo(o22:classname)}
odlg:activate()
return nil
Regards,
Alexey Myronenko
|