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 » LineEdit, EditFields, DocEdit » double-click in EditField
double-click in EditField [message #56279] Tue, 16 February 2021 15:43 Go to previous message
BetoValle is currently offline  BetoValle
Messages: 203
Registered: September 2020
Location: Brasil Valinhos SP
Experienced Member
Hi,

in the EditField class I didn't identify an event
WhenLeftDouble, and I wonder if there is a way
better than the rewrite according to the example below?

struct Edx: EditField{
 	typedef Edx CLASSNAME; 	
	Edx(){};
	virtual void LeftDouble(Point p, dword keyflags)
	{
		PromptOK("ok");
	}
};

GUI_APP_MAIN
{
	TopWindow  app;
	app.SetRect(0, 0, Zx(500), Zy(500));
	Edx text;
        app.Add(text.LeftPos(12,234).TopPos(63,21));
	text.SetText( "double click here");
	app.Run();
}


 
Read Message
Read Message
Read Message
Read Message icon3.gif
Read Message
Previous Topic: NotNull not working with custom SetConvert [CLOSED]
Next Topic: fill date bars automatically
Goto Forum:
  


Current Time: Thu Apr 25 14:54:52 CEST 2024

Total time taken to generate the page: 0.02181 seconds