LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Slave panels with standard bar icons ?

Is it possible to have slave panels more similar to standard windows. ie with
close/maximize/minimize buttons, response to double click on the title bar, etc...?

I don't want to make them independant panels for various reasons. After all, sub-windows
representing files in various apps (Word...) do have those icons, so why isn't it possible to have
them here too ?

(CVI 7.0)
--
Guillaume Dargaud
http://www.gdargaud.net/
"Chess is a foolish expedient for making idle people believe they are doing something very
clever when they are only wasting their time." - George Bernard Shaw.
0 Kudos
Message 1 of 6
(3,605 Views)
Guillaume,

I don't think there is a way to directly do that, and I also don't think you can get a double click on the title bar. The only thing I can think of is you could make your own full screen/minimize/close buttons and use the SetPanelAttribute function to do what you wanted to do. Not quite as fancy, but it will get the job done.

Derek

0 Kudos
Message 2 of 6
(3,605 Views)
Guillaume,

The type of view that you are looking for is called Multiple Document Interface (MDI). There is no CVI native to generate a MDI view, however is fairly easy to achieve this calling the Windows SDK.

There is an example here the show you how to achieve this.

Please take a look at the example and let me know if you have any questions.

Regards,

Juan Carlos
N.I.
0 Kudos
Message 3 of 6
(3,605 Views)
> The type of view that you are looking for is called Multiple Document
> Interface (MDI). There is no CVI native to generate a MDI view,
Yes ! I couldn't remember the corect acronym.

> however is fairly easy to achieve this calling the Windows SDK.
>
> There is an example
http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B45EACE3DC9D56A4E034080020E74861&p_node=DZ52176&p_source=External
> the show you how to achieve this.

Thanks you, that's it.
Are there any unexpected consequences to using such windows ?
--
Guillaume Dargaud
http://www.gdargaud.net/
"Television is democracy at its ugliest." - Paddy Chayevsky.
0 Kudos
Message 4 of 6
(3,605 Views)
When the panel cannot be maximized or cannot be minimized, the corresponding icon doesn't show on
the taskbar. But when no close control is selected, there is still a useless close icon. Is there
a way to make the close icon go away on MDI child windows ? I'm too rusty with the windows API to
find it !
--
Guillaume Dargaud
http://www.gdargaud.net/
"Suicidal twin kills sister by mistake !"
0 Kudos
Message 5 of 6
(3,605 Views)
As far as I know there is no way to make that little X disappear completely. with call like SetPanelAttribute (panelHandle, ATTR_CLOSE_ITEM_VISIBLE, 0) you can dimm the X to let the user know that it is useless to click there; however I think it will allways be visible.

Juan Carlos
0 Kudos
Message 6 of 6
(3,605 Views)