Home » U++ Library support » Menus&Toolbars » DropList in Toolbar
DropList in Toolbar [message #19522] |
Thu, 11 December 2008 00:18  |
sapiency
Messages: 56 Registered: September 2008
|
Member |
|
|
Hi,
I just tried to include a DropList in a Toolbar and started with the example on the page and modified it.
It place the Droplist in the bar, but it's only shown as a small line.
struct MyApp : TopWindow {
typedef MyApp CLASSNAME;
DropList dl;
ToolBar tb;
MyApp()
{
AddFrame(tb);
tb.Set(THISBACK(createTool));
//Add(dl.HSizePos().TopPos(5, Ctrl::STDSIZE));
dl.SetDisplay(Single<FontFaceDisplay>());
for(int i = 0; i < Font::GetFaceCount(); i++)
dl.Add(i);
SetRect(0, 150, 200, 170);
}
void createTool(Bar & bar){
bar.Add(dl.HSizePos().TopPos(5, Ctrl::STDSIZE));
}
};
where is my mistake?
reinhard
|
|
|
Goto Forum:
Current Time: Sat May 10 21:28:58 CEST 2025
Total time taken to generate the page: 0.01088 seconds
|