Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

IMAQ windows settings in CVI

HI,
I am creating IMAQ windows as child windows in my LW-CVI panel application. I would like to fix these IMAQ windows size and position at a particular location in my panel. I could not find any function like a "imaqSetWindowAttrribute()" that will let me do this.
I would also like to remove the task bar.
How can one chanche this type of settings in LabWindowsCVI?
Any suggestion will be appreciated.
Thanks,
JHH
0 Kudos
Message 1 of 4
(3,951 Views)
Hello,

Here are a list of display functions for window management (from the IMAQ Vision for LabWindows/CVI function reference manual):

Are Scrollbars Visible imaqAreScrollbarsVisible
Bring Window To Top imaqBringWindowToTop
Get Display Mapping imaqGetWindowDisplayMapping
Get Mouse Position imaqGetMousePos
Get Window Grid imaqGetWindowGrid
Get Window Handle imaqGetWindowHandle
Get Window Position imaqGetWindowPos
Get Window Size imaqGetWindowSize
Get Window Title imaqGetWindowTitle
Get Window Zoom imaqGetWindowZoom
Is Window Visible imaqIsWindowVisible
Move Window imaqMoveWindow
Set Display Mapping imaqSetWindowDisplayMapping
Set Window Grid imaqSetWindowGrid
Set Window Palette
imaqSetWindowPalette
Set Window Size imaqSetWindowSize
Set Window Thread Policy imaqSetWindowThreadPolicy
Set Window Title imaqSetWindowTitle
Setup Window imaqSetupWindow
Show Scrollbars imaqShowScrollbars
Zoom Window imaqZoomWindow

Hope this helps!

Regards,

Yusuf C.
Applications Engineering
National Instruments
0 Kudos
Message 2 of 4
(3,951 Views)
Yusuf C,
I appreciate your help. I have seen all these functions but none of them can be used to fix the position of an IMAQ Window relative to a CVI panel. For instance, I can find the position of the window by calling imaqGetWindowPos();
but there is no such imaqSetWindowPos(); function to set it. I thaoght about using the function imaqMoveWindow(), but this does not prevent the IMAQ Window to be movable.
Also, you can change the title of the window, but you can not remove the title bar.
Do you know any way of modifying these attributes?
Thanks again.
Regards,
JHH
0 Kudos
Message 3 of 4
(3,951 Views)
Hello,

You can call the imaqGetSystemWindowHandle function, which will give you a handle for the display window. Referring to that handle, you can treat it as any child window and use the native functions to set the properties you mentioned in your reply.

Regards,

Yusuf C.
Applications Engineering
National Instruments
0 Kudos
Message 4 of 4
(3,951 Views)