|
From: oleksa <m.o...@uk...> - 2013-05-17 05:54:02
|
Then need to correct the method onclick which gets the self and id as parameters,
METHOD onClick() CLASS HOwnButton
IF ::bClick != Nil
//::oParent:lSuspendMsgsHandling := .T.
Eval( ::bClick, Self, ::id )
::oParent:lSuspendMsgsHandling := .F.
ENDIF
RETURN Nil
Regards,
Alexey Myronenko
--- Оригінальне повідомлення ---
Від кого: "Alexander S.Kresin" <al...@be...>
Дата: 17 травня 2013, 08:33:30
> > 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?
>
> The codeblock for ON CLICK gets the parent object and button's id as
> parameters, so o22:classname will really return the classname of a
> parent. To get the classname of a button you need to write: on click {
> |o22,id|hwg_msginfo( o22:FindControl(id):classname ) }
>
> Regards, Alexander.
|