Re: Widget_event and a TLB object !!! [message #44348] |
Mon, 13 June 2005 08:28  |
Benjamin Hornberger
Messages: 258 Registered: March 2004
|
Senior Member |
|
|
Antonio Santiago wrote:
>
> Well, the problems comes with event handler. I can use XMANAGER because
> it cant bring the use of methods,
I'm not sure if I understand you right, but if you're saying you can't
use XMANAGER because you can't use object methods as event handlers,
that's not quite right. See http://tinyurl.com/98bau. I use it all the
time now for any but the simplest widget programs.
Benjamin
|
|
|
Re: Widget_event and a TLB object !!! [message #44424 is a reply to message #44348] |
Mon, 13 June 2005 23:11  |
Antonio Santiago
Messages: 201 Registered: February 2004
|
Senior Member |
|
|
Benjamin Hornberger wrote:
> Antonio Santiago wrote:
>
>>
>> Well, the problems comes with event handler. I can use XMANAGER
>> because it cant bring the use of methods,
>
>
> I'm not sure if I understand you right, but if you're saying you can't
> use XMANAGER because you can't use object methods as event handlers,
> that's not quite right. See http://tinyurl.com/98bau. I use it all the
> time now for any but the simplest widget programs.
>
> Benjamin
>
Thanks Benjamin, but I know that (I put the original post :) ).
Well, in addition with this "method" for use methods as event handler,
there is the posibility to use the function indicated here:
http://www.rsinc.com/codebank/search.asp?FID=209, I think it is more
easy to use it than the David's method (sorry David :( ) but I dont know
which is better.
I think you use this for object-widgets putted into another widget_base
that has the xmanager associated and it is the responsible to pass the
event to the object method handler. This is right for me. My problems
comes when to click a button and open a new object-widget. I want this
new window has its event handler but I can register it with xmanager,
and have the problems I commented in my previous post.
Thanks ;)
PS: Here a library that seems so good but I have never use test it:
http://www.mpimet.mpg.de/en/misc/software/idl/html/libmark_h adfield.php.
See "mghwidgetbase__define" object.
--
-----------------------------------------------------
Antonio Santiago P�rez
( email: santiago<<at>>grahi.upc.edu )
( www: http://www.grahi.upc.edu/santiago )
( www: http://asantiago.blogsite.org )
-----------------------------------------------------
GRAHI - Grup de Recerca Aplicada en Hidrometeorologia
Universitat Polit�cnica de Catalunya
-----------------------------------------------------
|
|
|