Sign in to follow this  
Followers 0
redndahead

Coloring a tab control

11 posts in this topic

Is there any way of coloring the background of a tab control?

red

Share this post


Link to post
Share on other sites



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

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

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

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

Not too hard but a lot of code perhaps too much for the 100K goal as I said long time ago :ph34r:

Share this post


Link to post
Share on other sites

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

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

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 :ph34r:

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

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0