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

Home » Public Forums » archive » dynamically change the layout of widget
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: dynamically change the layout of widget [message #38661 is a reply to message #38527] Wed, 17 March 2004 16:39 Go to previous message
andrew.cool is currently offline  andrew.cool
Messages: 47
Registered: July 2003
Member
Tianle Yuan <tianle@rac3.wam.umd.edu> wrote in message news:<c39u52$spn$1@grapevine.wam.umd.edu>...
> 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.

Depending on exactly what it is that you're trying to do, it might be easier to
simply create the "other widget" in your main code, but not map it to the
screen, by setting MAP=0. Then when you click But_A, you do a
widget_control, other_widget_id,MAP=1. How you carry around the widget id
for the other_widget, well there's all sorts of ways ranging from the sinful
to the cursed, to the beatified. But pick one that works for you.

Perhaps what you really want to do is have the other widget visible all
the time, but de-sensitised until you hit But_A? In which case you want
something like Widget_Control,other_widget_id,Sensitive=1


Andrew
DSTO, Adelaide, South Australia
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: Problem with pointers to structures
Next Topic: Widget scrolling

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

Current Time: Sun Oct 12 12:24:02 PDT 2025

Total time taken to generate the page: 1.92659 seconds