Hi,
Tab color control in Windows are very limited.
I recommend using IupFlatTabs that you will have a much better control
over the colors, without affecting the children.
Best,
Scuri
Em dom, 19 de ago de 2018 às 22:42, John Huttley <j...@mib-infotech.co.nz>
escreveu:
> Hi Team,
> I want to change the "AAAAAA" and "BBBBBB" text colours, FG and or BG.
>
>
> This is the example program, modified to show what doesn't work.
>
>
>
> ==
> require( "iuplua" )
> require( "iupluacontrols" )
> Colour_Heading_Complete = "#58FA58" --Green
> BG_Colour_Complete = "#A4FF5A"
>
> -- Creates boxes
> vboxA = iup.vbox{iup.fill{}, iup.label{title="TABS AAA",
> expand="HORIZONTAL"}, iup.button{title="AAA"}}
> vboxB = iup.vbox{iup.label{title="TABS BBB"}, iup.button{title="BBB"}}
>
> -- Sets titles of the vboxes
> vboxA.tabtitle = "AAAAAA"
> vboxB.tabtitle = "BBBBBB"
>
> -- Creates tabs
> tabs = iup.tabs{vboxA, vboxB}
>
> --Nope, this changes the Colour of the tab Contents TABS AAA etc, for
> all tabs
> --iup.SetAttribute(tabs, "FGCOLOR", Colour_Heading_Complete)
>
> --Nope, this changes the Colour of the tab Contents TABS AAA etc, for
> this tab only
> --iup.SetAttribute(vboxA, "FGCOLOR", Colour_Heading_Complete)
>
> --Nope, this changes the Colour of the tab Contents Background TABS AAA
> etc, for all tabs
> --iup.SetAttribute(tabs, "BGCOLOR", BG_Colour_Complete)
>
>
>
> -- Creates dialog
> dlg = iup.dialog{iup.vbox{tabs; margin="10x10"}; title="Test IupTabs",
> size="150x80"}
>
> -- Shows dialog in the center of the screen
> dlg:showxy(iup.CENTER, iup.CENTER)
>
> if (iup.MainLoopLevel()==0) then
> iup.MainLoop()
> end
>
>
> == The documentation says:
>
> FGCOLOR: Tabs title color. Default: the global attribute DLGFGCOLOR.
> ==
> It explicitly says "title" but this is not the case.
>
>
>
> So, how it is done?
> Thanks,
>
>
>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Iup-users mailing list
> Iup-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users