 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
mvidelgauz Guest
|
Posted: Sun Jan 29, 2006 9:42 am Post subject: Z-Order of popup menus anf TForms |
|
|
Hello,
I need to control Z-Order of popup menues and some TForms, but I could
not find a way to retrive HWND tcorrsponding to them. Does anyone have
any suugestions?
Thanks,
Michael
|
|
| Back to top |
|
 |
Vandervecken Guest
|
Posted: Sun Jan 29, 2006 2:11 pm Post subject: Re: Z-Order of popup menus anf TForms |
|
|
mvidelgauz wrote:
| Quote: | Hello,
I need to control Z-Order of popup menues and some TForms, but I could
not find a way to retrive HWND tcorrsponding to them. Does anyone have
any suugestions?
Thanks,
Michael
|
TPopupMenu::Handle
TPopupMenu::WindowHandle
TPopupMenu::BringToFront()
-- V
|
|
| Back to top |
|
 |
mvidelgauz Guest
|
Posted: Sun Jan 29, 2006 2:58 pm Post subject: Re: Z-Order of popup menus anf TForms |
|
|
Vandervecken, thank you very much!
My problem is that one of my popup menus is implemented by
TdxBarPopupMenu class (DevExpress) which is derived from TComponent and
there is no properties that you mentioned
What can I get from TComponent?
Thank you,
Michael
|
|
| Back to top |
|
 |
Vandervecken Guest
|
Posted: Sun Jan 29, 2006 3:15 pm Post subject: Re: Z-Order of popup menus anf TForms |
|
|
mvidelgauz wrote:
| Quote: | What can I get from TComponent?
Thank you,
Michael
|
Um, nothing that I know of. TComponent itself is not a windowed conrtol
and requires no handle. But if the thing you're working with is a
windowed object - and a popup menu has to be - then there must exist a
Windows handle for it.
If the VCL object does not expose the handle, then you can derive a
descendant object that exposes the handle property. Look through its
header file to identify the property you want, then just redeclare it
public in the derived component's class.
If for some reasom that does not work you likely will have to root it
out using the Windows API.
-- V
|
|
| Back to top |
|
 |
mvidelgauz Guest
|
Posted: Tue Jan 31, 2006 11:37 am Post subject: Re: Z-Order of popup menus anf TForms |
|
|
mvidelgauz wrote:
| Quote: | Hello,
I need to control Z-Order of popup menues and some TForms, but I could
not find a way to retrive HWND tcorrsponding to them. Does anyone have
any suugestions?
Thanks,
Michael
|
I have found that TdxBarPopupMenu class provides property
SubMenuControl whuich in turn has proprty Handle that I was looking
for.
Thanks
|
|
| 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
|
|