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 

Z-Order of popup menus anf TForms

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder
View previous topic :: View next topic  
Author Message
mvidelgauz
Guest





PostPosted: Sun Jan 29, 2006 9:42 am    Post subject: Z-Order of popup menus anf TForms Reply with 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

Back to top
Vandervecken
Guest





PostPosted: Sun Jan 29, 2006 2:11 pm    Post subject: Re: Z-Order of popup menus anf TForms Reply with quote



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





PostPosted: Sun Jan 29, 2006 2:58 pm    Post subject: Re: Z-Order of popup menus anf TForms Reply with quote



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





PostPosted: Sun Jan 29, 2006 3:15 pm    Post subject: Re: Z-Order of popup menus anf TForms Reply with quote

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





PostPosted: Tue Jan 31, 2006 11:37 am    Post subject: Re: Z-Order of popup menus anf TForms Reply with quote


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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder 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.