LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Controlling the Context Help Window properties

I know I can programmatically show and hide the Context Help Window and even set its position, but can I access a reference to be able to set other properties?  I'd like to be able to set and lock the window's size and maybe even change its status (modal, floating, etc).




Copyright © 2004-2024 Christopher G. Relf. Some Rights Reserved. This posting is licensed under a Creative Commons Attribution 4.0 License.
0 Kudos
Message 1 of 4
(2,958 Views)
Someone else can correct me if I'm wrong but you can't really control the built-in help window to that extent as it was really intended to be controlled by the user, and not the programmer. If you want that level of control you're probably going to have to create your own help window that you can control yourself.

P.S. Placing a copyright notice for a post??
0 Kudos
Message 2 of 4
(2,948 Views)
Hi,


You'll have to resort to window API's (assuming you use windows). You need to get a window handler (FindWindowEx, see thread "Send keyboard commands to another windows program), and use that handler to set the window properties (SetWindowLongPtr ). Once the window is hidden and restored, you might need to set the properties again (LV might reset the properties, the handler seems to stay valid after it is created the first time).


Regards,


Wiebe.


"crelf" <x@no.email> wrote in message news:1141398641189-333250@exchange.ni.com...
I know I can programmatically show and hide the Context Help Window and even set its position, but can I access a reference to be able to set other properties?&nbsp; I'd like to be able to set and lock the window's size and maybe even change its status (modal, floating, etc).
0 Kudos
Message 3 of 4
(2,944 Views)

"You'll have to resort to window API's..."

I figured as much 😞  Oh well, thanks for confirming that - I'll get right on it.

"P.S. Placing a copyright notice for a post??"

Abosolutely - a few of us have added the copyright notice after NI changed their terms and conditions for using the forums a couple of months ago (see the new notice at the bottom of this board?)  The Creative Commons Attribution 2.5 License idea was Jim Kring's - for more information, check out the following forum: http://forums.ni.com/ni/board/message?board.id=130&message.id=2254&page=1  (it's not the origianl one, but I can't find that one for some reason...)





Copyright © 2004-2024 Christopher G. Relf. Some Rights Reserved. This posting is licensed under a Creative Commons Attribution 4.0 License.
0 Kudos
Message 4 of 4
(2,939 Views)