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 » CalendarCtrl » DropTime and WhenAction() problem
DropTime and WhenAction() problem [message #26361] Tue, 27 April 2010 16:35 Go to previous message
koldo is currently offline  koldo
Messages: 3355
Registered: August 2008
Senior Veteran
Hello all

Using DropTime I have a problem: both selecting an hour with the mouse and entering a single key launch WhenAction().

Is there a way to launch different events from accepting an hour or date, and clicking a key?.

The problem is that in my program changing a DropTime hour launches a process that lasts some seconds to complete. As entering keys launches WhenAction, the program and control gets blocked. This way I cannot link left mouse clicking with a program action.

The CtrlLib source is this. When Action is marked with this <<<---:

EditField.cpp

bool EditField::Key(dword key, int rep)
{
...
	switch(key) {
...
	default:
		if(key >= ' ' && key < 65536 || key == K_SHIFT_SPACE) {
			if(!RemoveSelection()) SaveUndo();
			while(rep--)
				Insert(key == K_SHIFT_SPACE ? ' ' : key);
			Action();			<<<---
			return true;
		}


DateTimeCtrl.cpp

void Calendar::LeftDown(Point p, dword keyflags)
{
...
	if(PopUpCtrl::IsPopUp())
	{
		sel = tm;
		Deactivate();
		WhenAction();			<<<---
	}




Best regards
IƱaki
 
Read Message
Read Message
Previous Topic: DropDate problem?
Next Topic: Setting FirstDay puts day numbers out of alignment with day names
Goto Forum:
  


Current Time: Fri Mar 29 07:32:57 CET 2024

Total time taken to generate the page: 0.01342 seconds