Re: maximize child without covering parent's menu



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
.



Relevant Pages

  • Re: Configure 2 servers to resolve to each other?
    ... Craig made a post then I commented ... Who is the child and who is the parent? ... If the windows 2000 domain is a child of the Win2003 domain, ...
    (microsoft.public.win2000.dns)
  • Re: Child dialog and OK/Cancel handling
    ... >When searching for a window to handle input messages, Windows doesn't start with child windows, ... >the parent wants to handle messages of that type, ... >to your child dialog when the parent dialog has nothing ... I believe I had tested this and IsDialogMessage is called ...
    (microsoft.public.vc.mfc)
  • Re: Can a Forms parent be in another thread?
    ... Normaly windows procedures are not reentrant. ... You know that parent and child controls communicate by sending messages each ... > Does anybody know if the Parent of a form can safely be set to a form runing> in another thread? ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: Creating and killing processes
    ... > application and then get completely detached just like Windows? ... fork twice let the intermediate process terminate ... Unix the parent is responsible to do that, ... Collect the exist status of the child. ...
    (comp.os.linux.development.apps)
  • Unix Programming FAQ (v1.37)
    ... Why use _exit rather than exit in the child branch of a fork? ... Why doesn't my process get SIGHUP when its parent dies? ... How do I create a named pipe? ... How do I compare strings using regular expressions? ...
    (comp.unix.programmer)