[futurebasic] Re: [FB] Auto selected tab button

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : June 2003 : Group Archive : Group : All Groups

From: Bernie Wylde <bernie.w@...>
Date: Mon, 30 Jun 2003 20:10:39 +0100
Alain wrote:

> Bernie Wylde wrote:
>> Good Morning Everyone,
>> 
>> I have a window with tab buttons and would like the previously selected tab
>> to be highlighted the next time I open the window.
>> 
>> Any help?
>> 
> 
> Bernie,
> 
> I'm not sure I have clearly understood your question but nobody has
> offered an answer, so I take the risk...
> 
> Isn't it a matter of showing the right pane while all the others are
> hidden?
> 
> You just have to keep track of the last selected pane:
> 
> gSelectedPane = BUTTON( theTab )
> 
> When you build your window, you must create all your panes in an
> invisible state, then according to the value of gSelectedPane you make
> the appropriate pane visible.
> 

Thanks for the reply, Alain.

Yes, I'm keeping track of the selected pane. In fact I lifted the tab
handling code from your Code Styler source on the CD    :)

The correct pane is displayed but the wrong tab is highlighted (OSX blue).

Bernie