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 » TopWindow&PopUp, TrayIcon » How do you use PopUp
How do you use PopUp [message #2942] Mon, 01 May 2006 09:57 Go to previous message
gprentice is currently offline  gprentice
Messages: 260
Registered: November 2005
Location: New Zealand
Experienced Member

Is there a simple example of how to use PopUp?

The following doesn't work - nothing happens when the left mouse button is clicked. My efforts prior to this upset my operating system, requiring the help of task manager...


struct MyAppWindow : TopWindow {
    Point  p;
    Ctrl c1;
    Button button;
    virtual void LeftDown(Point pos, dword flags) {
		c1.Add(button.SetLabel("Button").LeftPosZ(10, 64).TopPosZ(10, 24));
        c1.PopUp(this,false,true,false,true);
        p = pos;
        Refresh();
    }


Thanks
Graeme
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: One Main TopWindow and several others TopWindows, how? [SOLVED...]
Next Topic: Splash Screen
Goto Forum:
  


Current Time: Fri May 24 13:07:46 CEST 2024

Total time taken to generate the page: 0.02050 seconds