redndahead Posted July 30, 2004 Share Posted July 30, 2004 Is there any way of coloring the background of a tab control? red Link to comment Share on other sites More sharing options...
Josbe Posted July 30, 2004 Share 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 Link to comment Share on other sites More sharing options...
redndahead Posted July 31, 2004 Author Share 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 Link to comment Share on other sites More sharing options...
pekster Posted July 31, 2004 Share 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. Link to comment Share on other sites More sharing options...
Holger Posted July 31, 2004 Share 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 colors Other old stuff:IconFileScanner, TriState/ThreeState GUI TreeView, GUI ContextMenu created out of a TreeView Link to comment Share on other sites More sharing options...
redndahead Posted August 4, 2004 Author Share 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 Link to comment Share on other sites More sharing options...
Valik Posted August 4, 2004 Share 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. Link to comment Share on other sites More sharing options...
jpm Posted August 4, 2004 Share 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 Link to comment Share on other sites More sharing options...
redndahead Posted August 7, 2004 Author Share 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 Link to comment Share on other sites More sharing options...
commenti Posted August 8, 2004 Share 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 Link to comment Share on other sites More sharing options...
jpm Posted August 8, 2004 Share 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. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now