EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  <20082009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  <20082009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: edm (tabs)
From: Mathew James Hicks <[email protected]>
To: "Szalata, Zenon M." <[email protected]>
Cc: EPICS Techtalk <[email protected]>
Date: Wed, 5 Nov 2008 18:42:36 -0800 (PST)
Zen,

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.

Thanks,
Zen






Replies:
RE: edm (tabs) Cobb, TM (Tom)
References:
edm Szalata, Zenon M.

Navigate by Date:
Prev: edm Szalata, Zenon M.
Next: RE: edm (tabs) Cobb, TM (Tom)
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  <20082009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: edm Szalata, Zenon M.
Next: RE: edm (tabs) Cobb, TM (Tom)
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  <20082009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 02 Sep 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·