Experimental Physics and
| |||||||||||||||||
|
I did something exactly like this. It is more of a hack then an official way to do this but it works well and looks good. First set your message buttons to invisible (not their visible field) Then create two rectangles with different backgrounds, one the color of the depressed tab and the other the color of a non-depressed tab. Set the visibility of the rectangles to CALC\{A="tabcorrespondingscreename"}(PVNAMEOFEMBEDDED WINDOW) for the other rectangle use != In my tab system I wanted non-square tabs which you can combine several objects and group them and use the groups visibility to do this. Place static text with the button name over it with background set to "use display background." This will work, but to in order to get the usual highlighted button effect when you scroll over the tab you should group all of these objects together so the black highlight box highlights around the rectangles instead of the invisible button. Good luck, Mat On Wed, 5 Nov 2008, Szalata, Zenon M. wrote: I am trying to figure out how to simulate tabs behavior in an edm screen. The attached image file shows an example of what I am trying to do. The file moreCmnds.jpg shows a screen which consists of 5 message buttons and an embedded window. The buttons communicate with the embedded window via a string type LOC PV. When one of the buttons is pressed, it passes a file name of an edm display to be shown. All that works well. When one of the buttons is pressed, it becomes "active" until another button is pressed (or as long as the edm display it is associated with is showing in the embedded window). I would like the "active" button to be highlighted, for instance by using a background color different from its "inactive" state. Any suggestions on how to do that will be most appreciated.
| ||||||||||||||||
ANJ, 02 Sep 2010 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing · |