forlano Messages: 1202 Registered: March 2006 Location: Italy
Senior Contributor
Hello,
I've a tabctrl and in one of the pages there is a layout. In this last I've created a toolbar to attach several buttons with icon. The toolbar looks not so nice. In fact it remains gray while I was waiting to see it white after last chamaleon. PErhaps it is normal.
Perhaps I did a mistake with AddFrame, so I post the code that realize it in the layout:
class VegaTab4 : public WithVegaTab4Layout<ParentCtrl> {
ToolBar toolbar;
FontHeight edt;
EditString edts;
public:
String filename;
typedef VegaTab4 CLASSNAME;
...
}
and the constructor
VegaTab4::VegaTab4()
{ int i;
CtrlLayout(*this);
SizePos();
AddFrame(toolbar);
toolbar.Set(THISBACK(MainBar));
... // not important
}
Well, it is as intended, which does not necessary means it is right...
ToolBar paints itself with the color you see (in future, this might become something else, like gradient). Do you think we should change this? E.g. some ToolBar option?
forlano Messages: 1202 Registered: March 2006 Location: Italy
Senior Contributor
luzr wrote on Wed, 01 November 2006 19:41
Well, it is as intended, which does not necessary means it is right...
ToolBar paints itself with the color you see (in future, this might become something else, like gradient). Do you think we should change this? E.g. some ToolBar option?
Mirek
I do not know what to suggest. The upper toolbar is OK, but the second one looks a bit ugly.
Perhaps an option to have the same effect of white as are all the other ctrls around could be advisable.
It works
So the Mirek's modification in BarPane in conjunction with this last one do the job I wanted, just as the previous picture has shown.
Thanks a lot!
forlano Messages: 1202 Registered: March 2006 Location: Italy
Senior Contributor
Hello,
I continue to post here because it regards the same problem with version 2007.1. Please have a look to the following picture that shows a toolbar with icon of different size
As you see the droplist and the editstring ctrl look gray. The method .Transparent() do not improve the situation. Is there a workaround?