 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Avex Guest
|
Posted: Tue Jan 10, 2006 4:23 pm Post subject: How can I send a message to QT component? |
|
|
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
|
Posted: Tue Jan 10, 2006 5:08 pm Post subject: Re: How can I send a message to QT component? |
|
|
"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 |
|
 |
|
|
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
|
|