Home » U++ Library support » LineEdit, EditFields, DocEdit » double-click in EditField
double-click in EditField [message #56279] |
Tue, 16 February 2021 15:43 |
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();
}
|
|
|
Goto Forum:
Current Time: Thu Apr 25 14:54:52 CEST 2024
Total time taken to generate the page: 0.02181 seconds
|