I need to understand wich is the part on the source of trbgroup used to show the back color where the trbgroup class write the caption , because I create a set Skin RibbonBar and I want change the back color

Falconi Silvio

Hello silvio
the TRRGROUP CLASS have 2 datas to control caption color feature
aGradCaption to Enable status
aGradDisable to Disable status
Sorry Daniel but I changed this value but the caption back is not changed when I refresh the group
Can I send you the method I made ?
oGr:aGradCaption = { { 0.3, nRGB( 254, 234, 115 ), nRGB( 254, 234, 115 ) }, ;
{ 0.7, nRGB( 255, 194, 40 ), nRGB( 255, 194, 40) } }
thanks I found the error Now run ok also the SkinRibbon methods ( Blue, Silver, Black,Windows Seven)
Daniel I want insert a command on file ch but it not run ok
#xcommand SET RIBBONBAR STYLE [ <oRBar> ] ;
[ <to: TO OPTION> <nOption> ];
=>;
[ <oRBar> := ] <oRBar>:Setstyle( <nOption>)
and the command on test could be
SET RIBBONBAR STYLE oRBar TO OPTION 4
instead of
oRBar:RibbonStyle:=4
why not run ok ?
I don't know if this will work but try:
<oRBar>:Setstyle:= <nOption>
But really shouldn't this be part of a DEFINE RIBBONBAR...STYLE...
And instead of numeric options I would use word descriptions.
Regards,
James
james I resolved it
there are on this forum scripts and methods to change color on the ribbonbar class created by me
Falconi,
IF your changes were made to the FW source, then I still think it would be better to add the STYLE to the DEFINE command, something like this:
DEFINE RIBBONBAR oRBar WINDOW oWnd;
PROMPT "Configuración", "Ficheros", "Informes", "Ayudas";
HEIGHT 133 TOPMARGIN 25;
STYLE BLUE
Even better would be to use something like COLORTHEME instead of STYLE. STYLE refers to design rather than color.
Regards,
James
jaaaaaaaaa ok !!!!
Falconi,
I hope you didn't take my suggestions as a criticism. You have made a very nice contribution to the ribbonbar. My suggestions were only made as a way to make the syntax more compatible with the existing syntax of FW.
Keep up the good work, Falconi.
Regards,
James
James,
I think we must use a class native fwh and all features done by fivetech, but sometimes we have to make features on classes to make programs more appetizing by our customers.
The Ribbonbar Skin is one of mine features for Ribbonbar.
From a week I must resolve a problem to show the Application Button and QuickAccesstoolbar : it run ok but I need to show bmps array as TTabs class bmps and I have some problems : I made another class TQAPanel to create the top bar .