Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » Menus&Toolbars » DropList in Toolbar
DropList in Toolbar [message #19522] Thu, 11 December 2008 00:18 Go to previous message
sapiency is currently offline  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
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: images as menu
Next Topic: right-click menu
Goto Forum:
  


Current Time: Sun May 05 22:25:21 CEST 2024

Total time taken to generate the page: 0.02769 seconds