Jump to content

Making tabs transparent?


zvvyt
 Share

Recommended Posts

Hello!

Is it possible to make the background of a tab transparent to f.ex show the backgroundimage of a underlying GUI?

According to the help-file the GUICtrlSetBkColor(-1,$GUI_BKCOLOR_TRANSPARENT) don't work w/ GUICtrlCreateTab

It won't do to just set the image to show inside of the tabs instead of this.

Any suggestions or solution if this is possible?

I saw that this had been asked on the forums a few years back, but that problem didn't get solved.

Best regards,

zvvyt

Link to comment
Share on other sites

I don't think it is possible with the standard tab control, but it is possible to create it by your own, something like I did when I made my OwnTab-UDF.

Edited by funkey

Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs, and the Universe
trying to produce bigger and better idiots.
So far, the Universe is winning.

Link to comment
Share on other sites

Thanks for your reply!

Was as I suspected then ..

As I'm not that "highlvl" when it comes to programming I don't know either how to make my own UDFs or even where to start thinking in the startphase.

Would you perhaps share your UDF with me, or gimme a hint to where to begin? :)

Best regards,

Link to comment
Share on other sites

Actually, it is possible, its just that the result doesn't look good.

There are many things to fix...

The ownerdrawing of tabs is also broken because a classic theme 3D border is painted after returning from WM_DRAWITEM

that draws on top of anything painted.

Let's face it, the Tab control, like many of the standard/common controls is an old, unfinished, never updated/upgraded buggy piece of crap

that was designed only for Microsoft's internal use in its OS.

These flawed controls waste the time of countless numbers of programmers every generation.

That's why there is the managed code layer that adds features, or the improved controls in other languages or third party controls.

None of which we can currently use in AutoIt...

Edited by rover

I see fascists...

Link to comment
Share on other sites

That's quite sad to hear actually .. =/

But then you (all) might have a better workaround for the problem I'm currently having with my script!

At the moment I'm having a menu-ish program with lots (LOTS) of icons at each categorys end.

Instead of constantly hiding and showing the icons once one of the categorybuttons have been pressed I've made it up by having all the different "subcategories" placed on separate child-guis, so the buttons now only hide/show the child-gui requested. By having a total of 20+ childwindows I notice that it's taking up way too much of the computers power to have it run flawlessly, so that's when I thought of using transparent tabs instead!

Almost all of the windows have a scrollbar each created by the use of Melba23's GUIScrollbars_Ex-UDF, and are transparent due to a backgroundimage in the parent which I don't want to move when I scroll.

Any suggestions are much appreciated!

Best regards,

Link to comment
Share on other sites

  • Moderators

zvvyt,

Have you thought of using my GUIExtender UDF to have separate sections for each "subcategory" rather than multiple tabs? :huh:

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

Have you thought of using my GUIExtender UDF to have separate sections for each "subcategory" rather than multiple tabs? :huh:

M23

Haven't heard of that, and have no clue of what it can do. So no.. :ermm:

Link to comment
Share on other sites

  • Moderators

zvvyt,

Then why not take a look and see if it might do what you want. Basically it allows you to have multiple sections of a GUI and decide which are visible at any given time. It sounds to me like it might just be what you are looking for. ;)

You can download it from the link in my sig and I would be happy to help you get it to work in your script. :)

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

Then why not take a look and see if it might do what you want. Basically it allows you to have multiple sections of a GUI and decide which are visible at any given time. It sounds to me like it might just be what you are looking for. ;)

You can download it from the link in my sig and I would be happy to help you get it to work in your script. :)

M23

Oh, my ..

After a quick readthrough I feel like I'll have to completely re-write my script and base it all around your UDF for this to work.

Looks awesome, but will have to have a more careful readthrough tomorrow :D

And trust me, you'd definately hear from me again about your UDF ^__^'

Best regards,

Link to comment
Share on other sites

  • Moderators

zvvyt,

Fine, but I would start with a script containing just a few of those 20+ sections so we have a manageable sized GUI to begin with! :D

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
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
 Share

×
×
  • Create New...