Tabs with icons
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Tabs with icons
I am trying to create tabs with labels and a little icon at the beginning of the label. So what I did was create a tab menu with spaces before each label.
___ TabMenu1
___ TabMenu2
etc.
Then I placed graphics on the tab menus where the spaces are.
Looks fantastic in Vista, but when I try it in Windows XP all the little button graphics have shifted position with respect to tab menus. The graphics are locked so the tab menus are changing size due to OS differences.
There must be a better way to do this. Is there a way to embed the graphic in the tabmenu name itself?
Thanks!
Larry
___ TabMenu1
___ TabMenu2
etc.
Then I placed graphics on the tab menus where the spaces are.
Looks fantastic in Vista, but when I try it in Windows XP all the little button graphics have shifted position with respect to tab menus. The graphics are locked so the tab menus are changing size due to OS differences.
There must be a better way to do this. Is there a way to embed the graphic in the tabmenu name itself?
Thanks!
Larry
-
- VIP Livecode Opensource Backer
- Posts: 977
- Joined: Sat Apr 08, 2006 7:47 am
- Location: Aalst, Belgium
- Contact:
Hi Larry,
You're going to have to "roll your own tabs" - the Rev engine doesn't support icons in the tabs. This feature was requested in the quality center, but has so far not been implemented - every vote helps to convince the team!
http://quality.runrev.com/qacenter/show_bug.cgi?id=2400
In the meantime, you can plop down a few "square" buttons next to one another, group them together and set the script of the group to something like:
Hope this helped,
Jan Schenkel.
You're going to have to "roll your own tabs" - the Rev engine doesn't support icons in the tabs. This feature was requested in the quality center, but has so far not been implemented - every vote helps to convince the team!
http://quality.runrev.com/qacenter/show_bug.cgi?id=2400
In the meantime, you can plop down a few "square" buttons next to one another, group them together and set the script of the group to something like:
Code: Select all
on mouseUp
lock screen
put the number of controls of me into tControlCount
repeat with tCurrentControl = 1 to tControlCount
set the hilite of button tCurrentControl of me to false
end repeat
set the hilite of the target to true
-- for learning purposes, display which 'tab' is hilited
answer the hilitedButton of me
-- now do the appropriate showing/hiding of controls
unlock screen
end mouseUp
Jan Schenkel.
Quartam Reports & PDF Library for LiveCode
www.quartam.com
www.quartam.com
Thanks Jan,
That helps. You inspired me to try something else. I created a tab group with four empty tabs of 20 space characters each. Then I plopped a field on top of each tab. In the field I can set imageSource to the icons. So now I have something that basically looks like a tab with an icon.
Larry
That helps. You inspired me to try something else. I created a tab group with four empty tabs of 20 space characters each. Then I plopped a field on top of each tab. In the field I can set imageSource to the icons. So now I have something that basically looks like a tab with an icon.
Larry
-
- VIP Livecode Opensource Backer
- Posts: 977
- Joined: Sat Apr 08, 2006 7:47 am
- Location: Aalst, Belgium
- Contact:
Overlaying the tab with fields will also work, of course - the tricky part about that, is that tabs may have different locations on different platforms.
On MaxOSX, the tabs are displayed in the center rather than the topleft. On Windows, tabs may have different sizes depending on whether it is the Windows Classic look, Windows XP look and Windows Vista look. And on Linux, you may be dependent on themes that are varying wildly.
All in all, the best solution would be if the engine supported this feature. In the meantime, creating your own tabbed buttons is not too difficult and allows you to play with icons and other settings.
Jan Schenkel.
On MaxOSX, the tabs are displayed in the center rather than the topleft. On Windows, tabs may have different sizes depending on whether it is the Windows Classic look, Windows XP look and Windows Vista look. And on Linux, you may be dependent on themes that are varying wildly.
All in all, the best solution would be if the engine supported this feature. In the meantime, creating your own tabbed buttons is not too difficult and allows you to play with icons and other settings.
Jan Schenkel.
Quartam Reports & PDF Library for LiveCode
www.quartam.com
www.quartam.com