Tab Panel in OS X

Terence Heaford t.heaford at btinternet.com
Fri Oct 11 09:13:11 EDT 2013


It would seem from the lack of response that there is no ready solution.

I have now done it by:

1. Making the tabs in Xcode and making screen copies and individual images for up, down and mid status and imported them as .png.

2. Created buttons for each tab of the tab group and placed them above the existing tabs.

3. Created a script similar to below for each button.

on mouseUp
   set the icon of me to 1033
   set the icon of  btw "general" to 1038
   set the icon of  btw "ategoriesc" to 1040 
   go to cd "General"
end mouseUp

on mouseDown
   if the icon of me = 1032 then
      set the icon of me to 1043
   end if
end mouseDown

on mouseRelease
   if the icon of me = 1043 then
      set the icon of me to 1032
   end if
end mouseRelease

Is there an easier way than having to go to all this trouble?

It's a shame that LiveCode, even though it does not provide controls that are native, does not provide a
working facsimile of the system it is supposed to be emulating.

All the best

Terry

On 9 Oct 2013, at 19:29, Terence Heaford <t.heaford at btinternet.com> wrote:

> Hi,
> 
> I wonder if someone could help please.
> 
> In OS X when you have a standard tab panel the tab text is black on light grey background when not selected.
> 
> LiveCode  follows this arrangement.
> 
> In OS X when a tab is selected the background becomes a dark grey and the text becomes white.
> 
> In LiveCode the background becomes dark grey and the text remains black. Visually the text it is not clear.
> 
> The remaining unselected tabs remain with black text.
> 
> Is there a way to resolve this anomaly?
> 
> 
> Thanks
> 
> Terry
> 
> 
> 
> 




More information about the use-livecode mailing list