No, sorry. I forgot that the subroutine applied only to clickable things.
![Embarrassed :oops:](./images/smilies/icon_redface.gif)
The GUI is small and it has only two zones : a short top line of non-clickable text info (3 sections because 3 colors : Text 1, "+" separator, Text 2), and some sliders below.
- The texts are only updated by hotkeys (a hotkey modifies a given text variable and also its color)
- The sliders are updated by hotkeys and by mouse, exactly like on page 1 (that part is perfect)
Currently all the hotkeys call a complex DisplayGui function that basically destroys the GUI and rebuilds it entirely with updated variables. I'm trying to do better.
![Smile :)](./images/smilies/icon_e_smile.gif)
I suppose what you're asking is that I do something like this :
Gui, %guiName%: Add, Text, Section c%EQColor%, v%EQText%
Gui, %guiName%: Add, Text, Section ys c%HSVColor%, v%HSVText%
That should define EQText and HSVText as variables. I guess I don't need a g-label for them, since my texts aren't clickable.
But how can I define the colors as variables too, if they already have a "c" prefix ?
After that, I can do something like this :
Code: Select all
SetText(Listener, Txt1, Col1, Txt2, Col2)
{
guiName := Listener "Gui"
GuiControl,, EQColor, Col1
GuiControl,, EQText, Txt1
GuiControl,, HSVColor, Col2
GuiControl,, HSVText, Txt2
Gui, %guiName%: Submit, NoHide
}