PDA

View Full Version : Forcing buttons/frames on device template to be topmost



Rob H
June 5th, 2004, 09:23 AM
At present any buttons or frames on the device template are always at the bottom of the Z-order.

I'm trying to implement a 'pop-up' frame that contains audio controls, controlling the visibility with a state variable. This works fine on the individual panels, but since I want it available on all panels this currently means a lot of duplication.

A way round this would be to be able to force a frame to the top of the Z-order somehow. Then I could just put this frame with my audio controls on the device template and enable/disable it as appropriate.

Hope this makes some sort of sense.

Another possibility would be to allow NetRemote to overlay one panel on top of another (with alpha transparency).

Aaron
June 5th, 2004, 11:08 AM
I've been trying to accomplish this with hidden frames... cannot get it to work. Hoping Ben documents soon cuz I've tried every way I can think of and it still does not hide/show correctly.

Rob H
June 5th, 2004, 12:02 PM
Well I've got the frame hiding and showing here

frame name is

STATE:ShowPanel:1:1

I have a button with the following IR name

ShowPanel

Which is set to toggle the variable - the IR code is :-

5001 0000 0000 0002 fc19 0005 0002 0000


You can also use the following IR code

5001 0000 0000 0002 fc19 0005 0001 0000

with the IR name of ShowPanel,1

I have a button on the panel with the same IR code and a name of
ShowPanel,0 to clear the variable.

I've not tried setting this from Girder yet though.

Hope this helps

Ben S
June 5th, 2004, 07:18 PM
Unfortunately with the current release it's not going to be possible to have elements in the template be on top of other elements (bringing template items to the top of the z-order).

What I would do (as a current workaround) it to move your audio controls to another panel, and use Tonto's "mouse mode" jump to have it jump back to the page you came from.

Z-order and common elements are something I have in the queue for post 1.0.

Rob H
June 9th, 2004, 01:40 PM
Z-order and common elements are something I have in the queue for post 1.0.

Proper layers, a la Photoshop, would be good