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 #67171] Fri, 10 July 2009 05:38 Go to previous message
andersld is currently offline  andersld
Messages: 4
Registered: February 2009
Junior Member
I wanted to do something like this a while ago and came up with a
solution that may work for you. In the event handler, somehow get the
widget base ID of the base you'd like to add to, BaseID. Within the
event handler, do this:

1) Widget_Control, BaseID, Update = 0 ; makes things less jumpy

2) Create new widget base with all the buttons you want, and with the
parent BaseID
e.g.
subBase = Widget_Base(BaseID, column....)
buttonID = Widget_Button(subBase....)

3) Widget_Control, BaseID, Update = 1


If you are *replacing* one base with another, you'll need to destroy
the old base:
1.5) Widget_Control, subBase, /Destroy


Is this what you wanted?

-Loren
[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: Thu Oct 09 20:29:32 PDT 2025

Total time taken to generate the page: 0.71657 seconds