Re: maximize child without covering parent's menu
- From: rolfk <x@xxxxxxxx>
- Date: Tue, 4 Apr 2006 04:40:12 -0500 (CDT)
crimolvic wrote:Dear friends, I am
trying to create two vi's, being one the parent and the other the
child. I am doing this by using the user32.dll and the "call library
function node" tool. The problem appears when I want to
maximize the child vi because it covers the menu of the parent vi. I
would like to know if there is a way to confine the maximize-area of
the child vi within the parent vi.By using
user32.dll you do certain assumptions that have not to be right for all
applciations. LabVIEW menus jsut as about everything else in LabVIEW
except the window frame itself are not standard Windows objects. As far
as Windows is concerned, everything in the LabVIEW window except the
frame and title bar is client area. By maximizing a child window
Windows will resize it to the area of the client area of the parent.
Crying about these facts is possible but won't help and changing this
is absolutely no option since LabVIEW was built that way to allow
support of multiple platforms including MacOS, Solaris/XWindow,
Linux/XWindows and in fact other OSes eventhough some of them never
were released.
You could do even more user32.dll magic by first retrieving the parent
handle, getting its client area size, subtracting some constant for the
menu (which will have problems for VIs that do not have menus as well
as potential height differences for differennt Windows Theme Styles)
and then size the child to that.
Better would be to try to come up with other means. If you use LabVIEW >= 7 subpanels would be the way to go I think.
Rolf Kalbermatter
.
- Follow-Ups:
- Prev by Date: Re: real time clock in labview 6
- Next by Date: Re: Display Chineese or English in LabView
- Previous by thread: Re: maximize child without covering parent's menu
- Next by thread: Re: maximize child without covering parent's menu
- Index(es):
Relevant Pages
|