Post
by marksmithhfx » Sat Sep 10, 2016 2:07 am
PS I deleted this earlier when I found the tabbed menu mode in the documentation (Devan Asay documents how it exists in the online docs and not in the IDE) but after reviewing it I think I would still come to the same conclusion so I am putting my original post back up....
Under menuMode there is some discussion of "tabbed". In particular the menu mode property of a button being "tabbed". I have searched high and low in several button types and can't find this menuMode type although we do have a tool type called Tab Panel. I'll tell you what I was thinking... why not just put a row of tabs at the bottom of the table field and put the table names in the tabs. Select a tab and the contents of the table field change, just like an Excel spreadsheet. Possible?
So I decided to do a bit of experimenting. I placed a tab panel under a basic table, although it was impossible to entirely get rid of the grey "panel" area, so that was the first problem. Next, while it expands individual tabs to accommodate different lengths of text, it does not expand the length of the visible tab area to accommodate more tabs... in short, unlike a menu, it's not very dynamic.
I think to do what I want I would have to make my own tab control that is an image of tabs that can be resized to fit the area desired, grows and shrinks dynamically, has scroll controls to scroll the tabs when necessary, and has no-border buttons on it to hold the tab values. So, two questions related to this. 1. has it been done? 2. could it be done as a widget?
Thanks, and see my crude example below. You'll need to supply your own SQLite file for basic table content.
Thoughts, suggestions?
Mark
-
Attachments
-
- Read SQL Schema.livecode 2.zip
- Example demonstrates using a tab panel to control content of a basic table. Requires an Sqlite file.
- (2.29 KiB) Downloaded 200 times
macOS 12.6.5 (Monterey), Xcode 14.2, LC 10.0.0, iOS 15.6.1
Targets: Mac, iOS