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 » LineEdit get Key press no subclass
LineEdit get Key press no subclass [message #59093] Tue, 01 November 2022 18:46 Go to previous message
wakhshti is currently offline  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 ?
	
}

 
Read Message
Read Message
Previous Topic: issue with right to left languages (Arabic & Hebrew)
Next Topic: How to use LineEdit's default "Key" handler? no subclass
Goto Forum:
  


Current Time: Mon Apr 29 16:11:09 CEST 2024

Total time taken to generate the page: 0.02951 seconds