BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How can I send a message to QT component?

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Native API)
View previous topic :: View next topic  
Author Message
Avex
Guest





PostPosted: Tue Jan 10, 2006 4:23 pm    Post subject: How can I send a message to QT component? Reply with quote



Hi all,

I want to send Lon./Lat. values to GoogleEarth and force it to search the
location I want for me. Now, I have got the handle of GoogleEarth window
and its component handle, however I found the combobox component of
GoogleEarth is QComboBox which inherit from QWidget (QT). Is there a way to
send message to control QComboBox as to control ComboBox in windows?
Moreover, CB_XXXX messages seems not work, but , 'SetWindowPos' can
show/hide the QComboBox I found. I have no experience on QT, can anyone tell
me what the mechanism QT is? And how can I control it? Does QT also support
messages concepts ?

thanks for any help,

Avex




Back to top
JD
Guest





PostPosted: Tue Jan 10, 2006 5:08 pm    Post subject: Re: How can I send a message to QT component? Reply with quote




"Avex" <avex@I.Dont.Like.Spammer> wrote:
Quote:

[...] I have no experience on QT, can anyone tell me what
the mechanism QT is?

It would be nice to know exactly how it was constructed but
it's a window and that all you need to know - it's HWND.

Quote:
And how can I control it?

There are win 32 API's that will set/get the text. If all else
fails, use the clipboard to paste it in.

Quote:
Does QT also support messages concepts ?

You already proved that it does - just not ComboBox specific
messages.

~ JD


Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Native API) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.