comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: dynamically change the layout of widget
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: dynamically change the layout of widget [message #38525] Wed, 17 March 2004 09:21
Antonio Santiago is currently offline  Antonio Santiago
Messages: 201
Registered: February 2004
Senior Member
You can create an structure with de ID of the widget you want to create
a child widget inside it (and all the data you need), then you can
assing to UVALE of WIDGET_BUTTON this structure.

In pro_A you caugh the struct event {id, top, ...} of the button. You
extract the UVALUE of button (the structure with the ID of widget you
want) ( WIDGET_CONTROL, GET_UVALUE=your_struct )

new = WIDGET_BASE(your_struct.id, ... )

new is a new child widget_base of the widget you want.


Bye.


PD: I hope understand your question right, if not sorry :)


Tianle Yuan wrote:
> Hi,there
>
> Here's my question: I have set up a widget base and layout. There's a
>
> button,But_A, in that widget base. For it,I creat a event handler, pro_A.
>
> What I'm wishing to do is when I click the button and the event handler is
>
> called, I will create another widget in the widget base I set up before.
>
> How can I realize it ,or is it possible?
>
> Thanks a lot.
>
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Speeding up I/O
Next Topic: Re: Why does color change to b/w when using PNG?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 18:35:18 PDT 2025

Total time taken to generate the page: 0.00484 seconds