Re: dumb question--floating [message #27931] |
Tue, 13 November 2001 18:31 |
Ted Cary
Messages: 53 Registered: October 2001
|
Member |
|
|
"David Fanning" <david@dfanning.com> wrote in message
news:MPG.165b667d33cc74b98976b@news.frii.com...
> David Fanning (david@dfanning.com) writes:
>
>> The documentation of the FLOATING keyword is
>> pretty clear that this doesn't work on every
>> machine, but only on those that "provide Z-order
>> control".
>
> A little further reading reveals that only
> the "toy" machines (Macs and PCs) have Z-order
> control.
(I wrote the original message)
But I am using a toy machine. I saw the Z-Order stuff in the online help
and was still under the impression that floating should work on the Mac I
have at work. Thanks, though.
|
|
|
Re: dumb question--floating [message #27933 is a reply to message #27931] |
Tue, 13 November 2001 16:19  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
David Fanning (david@dfanning.com) writes:
> The documentation of the FLOATING keyword is
> pretty clear that this doesn't work on every
> machine, but only on those that "provide Z-order
> control".
A little further reading reveals that only
the "toy" machines (Macs and PCs) have Z-order
control.
Cheers,
David
--
David W. Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|
Re: dumb question--floating [message #27934 is a reply to message #27933] |
Tue, 13 November 2001 16:15  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
sandy (sehgal@oasis.rad.upenn.edu) writes:
> This is obviously something simple, but I can't get the 'Floating'
> keyword to change the behavior of my base widgets at all. I assign the
> 'Group_Leader' keyword a valid widget ID during my base widget
> initialization statement, but when realized the floating base is still
> easily lost behind the window of its supposed group leader. Am I not
> understanding what floating means? The second widget base window will
> be destroyed if I close the first one, so clearly the Group_Leader is
> being accepted... I thought that's all that was needed to make one
> widget float above the other.
>
> What's wrong with this code? Why doesn't the base2 window stay in
> front?
>
> pro pleasefloat
> base1=widget_base(title='base1', xsize=400)
> base2=widget_base(group_leader=base1, title='base2', xsize=400,
> /Floating)
> widget_control, base1, /realize
> widget_control, base2, /realize
> end
The documentation of the FLOATING keyword is
pretty clear that this doesn't work on every
machine, but only on those that "provide Z-order
control". Since this code works on my machine
(Windows) and not on yours, I conclude
you must be using one of those fancier, more
expensive machines that does not have "Z-order
control", whatever that is.
Cheers,
David
P.S. Let's just say I don't think there is a
system variable that will tell us if we have
Z-order control or not. :-)
--
David W. Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|