--
Dean Jones
CEO
PowerObjects
http://www.powerobjects.com
(612) 339-3355 Ext. 112
TeamSybase
* * Think Sybase * *
"Gwydion" <gwy...@oletros.info> wrote in message
news:48206e6d@forums-1-dub...
> Can I trigger clicked event on a button in datawindow header from the
> outside of the datawindow?
Is a strange case, the button has code embedded in the tag property
which call some functions in a number o classes but I must use a command
button in the window (users want this), so when I press the button I
have to simulate a click on the datawindow button (which will be invisible)
Yes, I know that is bizarre, messy and so on but I have no other possibility
--
Dean Jones
CEO
PowerObjects
http://www.powerobjects.com
(612) 339-3355 Ext. 112
TeamSybase
* * Think Sybase * *
"Gwydion" <gwy...@oletros.info> wrote in message
news:4820735e@forums-1-dub...
The trick for sending and receiving the button events is that the
pointer "dwo" will not be valid from outside the DW Control. Sooo - Here is
what I do ...
Might I suggest the following:
1) Send DW Control a "ButtonClicked" event ...
DWObject lo_dwo
Long ll_row = 1
Long ll_rc = 0
Message.StringParm = "cb_chris"
dc.event buttonclicked (ll_row, ll_rc, lo_dwo)
2) Process the BC Event ...
String ls_name
IF IsValid (dwo) = TRUE THEN
ls_name = String (dwo.Name)
else
ls_name = Message.StringParm
END IF
MessageBox ("DWO", "You pressed CB - " + ls_name)
HTH
Regards ... Chris
"Gwydion" <gwy...@oletros.info> wrote in message
news:48206e6d@forums-1-dub...
dwobject ldwco
ldwco = dw_1.object.__get_attribute("cb_yourbutton", false)
dw_1.event buttonclicked (ll_row, ll_rc, ldwco)
On May 12, 11:28 pm, "Chris Pollach" <cpoll...@travel-net.com> wrote:
> Hi G;
>
> The trick for sending and receiving the button events is that the
> pointer "dwo" will not be valid from outside the DW Control. Sooo - Here is
> what I do ...
>
> Might I suggest the following:
>
> 1) Send DW Control a "ButtonClicked" event ...
>
> DWObject lo_dwo
> Long ll_row = 1
> Long ll_rc = 0
> Message.StringParm = "cb_chris"
> dc.event buttonclicked (ll_row, ll_rc, lo_dwo)
>
> 2) Process the BC Event ...
>
> String ls_name
> IF IsValid (dwo) = TRUE THEN
> ls_name = String (dwo.Name)
> else
> ls_name = Message.StringParm
> END IF
> MessageBox ("DWO", "You pressed CB - " + ls_name)
>
> HTH
>
> Regards ... Chris
>
> "Gwydion" <gwyd...@oletros.info> wrote in message
"Chris Pollach" <cpol...@travel-net.com> wrote in message
news:48286215$1@forums-1-dub...
"Yeyi" <yeyi.ab...@gmail.com> wrote in message
news:df9081a8-7a3d-41e8...@f36g2000hsa.googlegroups.com...
I agree ... and it works great too! :-)
BTW: Michael Searer has this in the ISUG enhancement list as request # 3065
Please vote on this request to raise its viability.
Regards ... Chris
ISUG - NA RUG Director
"Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel@yahoo!.com> wrote in message
news:4828771f@forums-1-dub...
On May 13, 2:12 am, "Chris Pollach" <cpoll...@travel-net.com> wrote:
> Jerry;
>
> I agree ... and it works great too! :-)
>
> BTW: Michael Searer has this in the ISUG enhancement list as request # 3065
> Please vote on this request to raise its viability.
>
> Regards ... Chris
> ISUG - NA RUG Director
>
> "Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel@yahoo!.com> wrote in messagenews:4828771f@forums-1-dub...
>
> > What a handy function. We should request an enhancement to make it
> > documented and supported.
>
> > "Yeyi" <yeyi.abulen...@gmail.com> wrote in message
--
Dean Jones
CEO
PowerObjects
http://www.powerobjects.com
(612) 339-3355 Ext. 112
TeamSybase
* * Think Sybase * *
"Yeyi" <yeyi.ab...@gmail.com> wrote in message
news:df9081a8-7a3d-41e8...@f36g2000hsa.googlegroups.com...