redndahead 0 Posted July 30, 2004 Is there any way of coloring the background of a tab control? red Share this post Link to post Share on other sites
Josbe 1 Posted July 30, 2004 Is there any way of coloring the background of a tab control?redAt the moment, can't do it. AUTOIT > AutoIt docs / Beta folder - AutoIt latest beta Share this post Link to post Share on other sites
redndahead 0 Posted July 31, 2004 That's too bad...hmmm what to do. Have people determined that it is impossible or just havn't really worked on it yet? I can still make my app, but I'm afraid it doesn't quite work unless it's a different color. Hope to see something soon. =) red Share this post Link to post Share on other sites
pekster 0 Posted July 31, 2004 There is an interesting example floating around somewhere on the forums that shows how to use buttons as tabs. Since you can color buttons, this could work for you. It works by handeling each button press by hiding the controls on the old "tab" and showing the controls on the new "tab." [font="Optima"]"Standing in the rain, twisted and insane, we are holding onto nothing.Feeling every breath, holding no regrets, we're still looking out for something."[/font]Note: my projects are off-line until I can spend more time to make them compatable with syntax changes. Share this post Link to post Share on other sites
Holger 14 Posted July 31, 2004 Yeah, could use 'checkboxes' with style "BS_PUSHLIKE" (I think) and then check if one checkbox is 'checked' and 'unchecked'. So could hide or show different controls. Old project:GUI/Tray menu with icons and colorsOther old stuff:IconFileScanner, TriState/ThreeState GUI TreeView, GUI ContextMenu created out of a TreeView Share this post Link to post Share on other sites
redndahead 0 Posted August 4, 2004 That's how I used to do it until tabs came around. Do we just know that it is impossible? or is it just going to take a while? red Share this post Link to post Share on other sites
Valik 478 Posted August 4, 2004 It requires making the tabs owner-drawn. It shouldn't be that hard to do, but I also haven't looked into it myself. Share this post Link to post Share on other sites
jpm 93 Posted August 4, 2004 Not too hard but a lot of code perhaps too much for the 100K goal as I said long time ago Share this post Link to post Share on other sites
redndahead 0 Posted August 7, 2004 Sorry jpm if I missed your post. It's unfortunate that the tabs won't be colored because I need to change them to different colors or it hides inside the title bar. I could do the button idea but I like the ease of use of the controls automatically hiding with tabs. hmmm.... red Share this post Link to post Share on other sites
commenti 0 Posted August 8, 2004 Helllo fellow autoit coders, I just begun with trying out the gui stuff in AutoIt. I was wondering why I could not color my Tabs (my GUI looks very ugly with gray tabs don´t matching the other colors of my GUI). Good, that I found this thread here in the forum (I thought I was blind, searching the helpfile for a solution...) . So perhaps its worth mentioning in the helpfile that it is not possible. commenti Share this post Link to post Share on other sites
jpm 93 Posted August 8, 2004 Helllo fellow autoit coders, I just begun with trying out the gui stuff in AutoIt. I was wondering why I could not color my Tabs (my GUI looks very ugly with gray tabs don´t matching the other colors of my GUI). Good, that I found this thread here in the forum (I thought I was blind, searching the helpfile for a solution...) . So perhaps its worth mentioning in the helpfile that it is not possible. commenti <{POST_SNAPBACK}>it is described in the GUISetControl I realize that it can be included too in GUISetControlEx Thanks to point out the doc For "tab" control, after creating the main control, each tab can be created by first create an "tabitem" follows by the creation of the controls which are located on this tab. To terminate the tab control just create a last "tabitem" control with a null text "". The Left and Top parameters on "tabitem" are not relevant, just mandatory as for other control definition. The "tabitem" control cannot be painted (too much code ...). Only one tab can be created by dialog box. Share this post Link to post Share on other sites