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 » U++ Widgets - General questions or Mixed problems » GetType() ???
Re: GetType() ??? [message #1951 is a reply to message #1949] Tue, 28 March 2006 18:00 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14261
Registered: November 2005
Ultimate Member
jchaves13 wrote on Tue, 28 March 2006 10:44

I have created a mechanism, with KeyHook(), that (like console apps) when the user hit <ENTER> key, the focus move to next ctrl, but in some ctrl (like DocEdit) I want ignore that action.
After post the question, I make some tests with HotKey() instead of KeyHook(), and get better results, for this case. But, I believe that is a good thinks know this.



Well, for such case I would recommend to use dynamic_cast, like

Ctrl *q = ....
if(dynamic_cast<DocEdit *>(q)) {
// ... q is (or is derived from) DocEdit
}

Anyway, U++ keyboard routing is specifically designed in a way that should make similar tasks quite easy - that is perhaps why you have succeded with HotKey, that is the right way.

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: how to bind or convert Logc positions to int?
Next Topic: How to change the theme [PARTLY SOLVED...]
Goto Forum:
  


Current Time: Sun Jun 08 04:18:54 CEST 2025

Total time taken to generate the page: 0.04481 seconds