Home » U++ Library support » LineEdit, EditFields, DocEdit » LineEdit get Key press no subclass
LineEdit get Key press no subclass [message #59093] |
Tue, 01 November 2022 18:46  |
wakhshti
Messages: 2 Registered: November 2022
|
Junior Member |
|
|
Main Window has a LineEdit widget. i want to get Keypress event.
no subclass, just the regular way?
is it possible or do i must subclass ?
-----------------------------------------------------
// MainWindow (.h)
-----------------------------------------------------
class MainWindow : public WithmainLayout<TopWindow>
{
public:
MainWindow();
LineEdit txtSearch;
};
-----------------------------------------------------
// MainWindow (.cpp)
-----------------------------------------------------
#include "MainWindow.h"
MainWindow::MainWindow()
{
CtrlLayout(*this, "MainWindow");
// how to set Key(dword key, int count) event of txtSearch ?
}
|
|
|
Goto Forum:
Current Time: Sat May 10 00:50:45 CEST 2025
Total time taken to generate the page: 0.01524 seconds
|