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

Home » Public Forums » archive » Re: creating a widget inside an existing 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: creating a widget inside an existing widget [message #67173 is a reply to message #67171] Thu, 09 July 2009 22:18 Go to previous messageGo to previous message
b.a is currently offline  b.a
Messages: 26
Registered: July 2009
Junior Member
On Jul 10, 2:31 pm, David Fanning <n...@dfanning.com> wrote:
> b.a writes:
>> I am tying to add some code to my event handler program so that for
>> example each time "button1" is selected, a new widget-base inluding
>> some buttons and text is added to my existing widget. Can anybody
>> please help me how to do that? Is this at all possible?
>
>> In this way, each time "button1" is clicked and the new part is added
>> to the existing widget, it becomes bigger. Same as when we add a new
>> row to the bottom of a table; but this row has some buttons and text
>> inside it.
>
> You might get away with something like this on Windows,
> but I seriously doubt you will get away with it in UNIX.
> Typically, if you want to add widgets after you have
> realized the widget hierarchy, you must destroy and
> recreate the hierarchy. (There are keywords and techniques
> you can use to recreate it in the same location as the old
> hierarchy, etc., but basically, you have to rebuild it.)
>
> I'm only about 80% sure of this answer. Changes in the
> way widget events are handled, etc., may have changed things.
> Let's just say, I would be surprised if you got this to work.
>
> Cheers,
>
> David
>
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.dfanning.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")

Thanks for your reply David.
Actually I am writing the program using IDL workbench. The only way
that I can think of is to have some widgets on my top level base which
are initially sensetive =0, and then I might be able to make them
sensetive=1 in case of the event. I may try it!!

Cheers
b.a
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Menu Question
Next Topic: creating a widget inside an existing widget

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

Current Time: Sat Oct 11 08:08:05 PDT 2025

Total time taken to generate the page: 1.27873 seconds