Home » U++ Library support » TopWindow&PopUp, TrayIcon » How do you use PopUp
Re: How do you use PopUp [message #2945 is a reply to message #2942] |
Mon, 01 May 2006 10:00   |
 |
mirek
Messages: 14256 Registered: November 2005
|
Ultimate Member |
|
|
gprentice wrote on Mon, 01 May 2006 03:57 |
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
|
I believe the problem is that you need c1.SetRect(....
Mirek
|
|
|
Goto Forum:
Current Time: Wed Apr 30 20:40:31 CEST 2025
Total time taken to generate the page: 0.00558 seconds
|