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 » Problem, prompt when moving the window.
Problem, prompt when moving the window. [message #15107] Tue, 01 April 2008 12:21 Go to next message
huanghuan is currently offline  huanghuan
Messages: 10
Registered: December 2007
Promising Member
If a prompt will come out, when the user is keep draging move the window. the application will no response.
#include <CtrlLib/CtrlLib.h>

using namespace Upp;
struct MyApp : TopWindow {
     void MyCall()
     {
          PromptOK("no response now!!!");
     }
     virtual void LeftDown(Point pos, dword flags) {
          SetTimeCallback(3000, THISBACK(MyCall), 0);
    }
    typedef MyApp CLASSNAME; 
};

GUI_APP_MAIN {
	MyApp w;
	w.Zoomable().Sizeable();
	w.Run();
}


TestCase operation step:
1. click the window for 3 seconds prompt.
2. keep draging the window title bar utill the 3 seconds past.
3. when 3 seconds time out, the prompt and dragging move window maybe interactional.

[Updated on: Tue, 01 April 2008 12:57]

Report message to a moderator

Re: Problem, prompt when moving the window. [message #15316 is a reply to message #15107] Wed, 16 April 2008 10:20 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
huanghuan wrote on Tue, 01 April 2008 06:21

If a prompt will come out, when the user is keep draging move the window. the application will no response.
#include <CtrlLib/CtrlLib.h>

using namespace Upp;
struct MyApp : TopWindow {
     void MyCall()
     {
          PromptOK("no response now!!!");
     }
     virtual void LeftDown(Point pos, dword flags) {
          SetTimeCallback(3000, THISBACK(MyCall), 0);
    }
    typedef MyApp CLASSNAME; 
};

GUI_APP_MAIN {
	MyApp w;
	w.Zoomable().Sizeable();
	w.Run();
}


TestCase operation step:
1. click the window for 3 seconds prompt.
2. keep draging the window title bar utill the 3 seconds past.
3. when 3 seconds time out, the prompt and dragging move window maybe interactional.


Well, in this case, I would say the correct response is "do not do that" Smile

I mean, most likely, the bad behaviour is hardcoded in windows. There is a little we can do to fix it.

Mirek
Previous Topic: Windows TrayIcon improvement
Next Topic: Cannot get modal owned window
Goto Forum:
  


Current Time: Fri Mar 29 10:18:01 CET 2024

Total time taken to generate the page: 0.03930 seconds