AUTOTAB (None Specified)
At 20 APR 1999 01:31:48AM Barry Stevens wrote:
I would like to be able to have tab buttons that dont have focus to be dark grey. I cant create new bmps because autotab seems to only work if the bitmap is AUTOTAB.
Is there any undocumented feature that maybe they can be AUTOTAB1 or AUTOTAB_1 or some such thing.
I notice that AMcA has different colours, but knowing sprezz they problebly wrote their own autotab feature.
Barry Stevens
At 20 APR 1999 08:49AM Donald Bakke wrote:
Barry,
Sprezz uses two approaches to creating tabs. Their Win98 styled tabs are created using an encapsulated routine. AFAIK, these are true tabs generated by the Win API or something similar.
Other tabs, like the multi-colored ones I believe, are created by actually creating a single BMP for the entire tab group. This BMP is multi-framed and therefore has a frame for every possible look of the tab group. For example, if you have a three tabs then you will have three frames in the BMP - one showing the first tab with focus, one showing the second tab with focus, and another showing the third tab with focus. The form uses the BUTTONDOWN event to track where the mouse was clicked. If clicked within a specific "tab" within the BMP then you just issue the appropriate commands to change the image of the BMP and change the PAGE property of the form. Here is an example of some code we use for one of our customer screens:
<code> BUTTONDOWN: Transfer Param1 to xPos Transfer Param2 to yPos TabTop=9 TabBottom=27 If yPos GE TabTop AND yPos LE TabBottom then Begin Case Case xPos GE 8 AND xPos LE 56 Set_Property(@Window:".BMP_CUSTTAB", "IMAGENUMBER", 1) Send_Event(@Window, "PAGE", 1) Case xPos GE 57 AND xPos LE 109 Set_Property(@Window:".BMP_CUSTTAB", "IMAGENUMBER", 2) Send_Event(@Window, "PAGE", 2) Case xPos GE 110 AND xPos LE 183 Set_Property(@Window:".BMP_CUSTTAB", "IMAGENUMBER", 3) Send_Event(@Window, "PAGE", 3) Case xPos GE 184 AND xPos LE 254 Set_Property(@Window:".BMP_CUSTTAB", "IMAGENUMBER", 4) Send_Event(@Window, "PAGE", 4) Case xPos GE 255 AND xPos LE 294 Set_Property(@Window:".BMP_CUSTTAB", "IMAGENUMBER", 5) Send_Event(@Window, "PAGE", 5) End Case end return</code>
Since the tabs are created within a single BMP, they can have any appearance you like no matter if they have focus or not.
dbakke@srpcs.com
At 20 APR 1999 07:46PM Barry Stevens wrote:
Don
Thank you for that, I will take that info on board.
Barry
At 21 APR 1999 06:37PM amcauley@sprezzatura.com [url=http://www.sprezzatura.com]Sprezzatura Ltd[/url] wrote:
[notag]minor clarification - we don't use multi-page forms, we make controls visible/invisible! <g>
The 'true' win95 tabs we do via GDI calls…
BTW Don, thanks for jumping in, Aaron is taking an AREV course at the moment, Carl is on vacation and I'm off site all week!
[<A HREF="mailto:amcauley@sprezzatura.com" onMouseOver="window.status='Why not click here to send me Email?';return(true)">Andrew McAuley</A>]
[<A HREF="http://www.sprezzatura.com" onMouseOver="window.status='Why not click here to visit our web site?';return(true)">Sprezzatura Ltd</A>]
[<I>World Leaders in all things RevSoft</I>]
[<img src="http://www.sprezzatura.com/zz.gif">]
[<script language="javascript">function openNewPage () {window.location.href=(document.TOCNavigator.pageToGoTo.options[document.TOCNavigator.pageToGoTo.selectedIndex].value);document.TOCNavigator.pageToGoTo.selectedIndex="0";}end hiding from non-JS browsers –></script><BR>] [<FORM ACTION "" METHOD=GET NAME="TOCNavigator"<BR>] [<SELECT NAME="pageToGoTo" SIZE=1 onChange="openNewPage()"><BR>] [<OPTION>Pull down this menu to choose whereabouts on Sprezz site to go<BR>] [<OPTION VALUE="http://www.sprezzatura.com">Home Page<BR>] [<OPTION VALUE="http://www.sprezzatura.com/whatsnew.htm">What's New<BR>] [<OPTION VALUE="http://www.sprezzatura.com/senl.htm">SENL<BR>] [<OPTION VALUE="http://www.sprezzatura.com/patches.htm">Download S/LIST<BR>] [<OPTION VALUE="mailto:support@sprezzatura.com">Send mail to support at Sprezzatura<BR>] [<OPTION VALUE="mailto:sales@sprezzatura.com">Send mail to sales at Sprezzatura<BR>] [</SELECT>] [</FORM>][/notag] </QUOTE> View this thread on the Works forum...