Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Idl-pvware > Re: Widget Even...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 4 of 10 Topic 5581 of 6456
Post > Topic >>

Re: Widget Event_Pro question

by David Fanning <news@[EMAIL PROTECTED] > Mar 31, 2008 at 08:45 AM

Spon writes:

> But if I keep Event.Top as my Group_Leader, then the /ALIGN_RIGHT
> keyword doesn't seem to do a whole lot, and my graph widget sits smack
> bang on top of my image window widget.
> 
> Typically, I want to have my cake *and* eat it ;-)
> I'd like my second widget base to be independent enough of its leader
> to be a separate entity, but to be *aware* enough of the leader to
> know where I want it to sit, namely glued to its right edge. Is this
> possible?

Well, ALIGN_RIGHT has the right name to give you hope,
but none of the functionality, unfortunately. That is to
say, it doesn't do what you think it does. :-)

If you want to position a top-level base next to
another top-level base, that is easily done. Find
the position and size of the first TLB:

   Widget_Control, TLB_1, TLB_GET_OFFSET=offsets, $
       TLB_GET_SIZE=sizes

Then, position the second TLB next to the first:

   Widget_Cotnrol, TLB_2, XOFFSET=offsets[0] + sizes[0] + 10, $
       YOFFSET = offsets[1]

The window is not "glued" to anything, and if either window
is moved, you won't know about it unless you have TLB_MOVE_EVENTS
set for the TLBs. If you do,  you can figure out where the
window moved to and reposition things.

Cheers,

David
-- 
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Se****e ma de ni thui. ("Perhaps thou speakest truth.")
 




 10 Posts in Topic:
Widget Event_Pro question
Spon <christoph.blau@[  2008-03-31 04:29:56 
Re: Widget Event_Pro question
David Fanning <david@[  2008-03-31 06:45:55 
Re: Widget Event_Pro question
Spon <christoph.blau@[  2008-03-31 07:14:46 
Re: Widget Event_Pro question
David Fanning <news@[E  2008-03-31 08:45:03 
Re: Widget Event_Pro Bingo
Spon <christoph.blau@[  2008-03-31 07:43:11 
Re: Widget Event_Pro question
Spon <christoph.blau@[  2008-04-02 08:21:04 
Re: Widget Event_Pro question
David Fanning <news@[E  2008-04-02 09:23:49 
Re: Widget Event_Pro question
Spon <christoph.blau@[  2008-04-02 08:38:16 
Re: Widget Event_Pro question
David Fanning <news@[E  2008-04-02 09:47:39 
Re: Widget Event_Pro question
Spon <christoph.blau@[  2008-04-02 09:10:28 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Dec 3 20:28:05 CST 2008.