Position of a tab in a tab control.

Paul Hibbert lc at pbh.on-rev.com
Fri Apr 20 05:35:05 EDT 2012


Pete,

I may be wrong, but I don't think there's a way to control the differences between the two platforms without rolling your own tab control.

However, Mark Schonewille has done much of the work and made his custom tab control available through RevOnline, just search for "custom tab" and you should find it, or the web hosted version is here…

http://revonline2.runrev.com/stack/258/Custom-Tab-Button

You should be able to adapt it (or copy the principles) to suit your needs.

Paul

On 20 Apr 2012, at 04:19, Peter Haworth wrote:

> Is there a way to get hold of the coordinates of the label of the currently
> selected tab of a tab control?
> 
> I have a control that I want to position immediately below the label of the
> current tab of a tab control.  I tried doing this by trial and error,
> adding a number of pixels to the left of the control to position it
> correctly.  This was all on a Mac and as soon as I tried it on a Windows
> machine, the control is not positioned correctly, and I suspect it would be
> affected by different screen resolutions also.
> 
> Pete
> lcSQL Software <http://www.lcsql.com>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode




More information about the use-livecode mailing list