取消
显示结果 
搜索替代 
您的意思是: 

Floating window without active status

Hi,

 

I want to create a window that behaves exactly like the "functions palette window" in Labview:

- opens like a floating window

- the window has no title bar

- user can interact (click, type) with controls in the window

- the window doesn't take "active status" (focus) from the caller window - the title bar of the caller window must be "active" and not grey out as it is normally if another windows is opened on top of the caller

 

I've been searching for the solution, but was not able to found it.

0 项奖励
1 条消息(共 6 条)
4,147 次查看

I'm not sure if that last part is possible because of how LV manages its windows. I don't remember all the details, but you could try looking for this discussion from a few years back - http://forums.ni.com/t5/LabVIEW/Win-API-WS-EX-NOACTIVATE-Window-Style-Problem/m-p/1058974#M470220


___________________
Try to take over the world!
0 项奖励
2 条消息(共 6 条)
4,133 次查看

Based on the discussion (http://forums.ni.com/t5/LabVIEW/Win-API-WS-EX-NOACTIVATE-Window-Style-Problem/m-p/1058974#M470220) this is not possible in LV.

 

Or maybe has something changed in the last years?

0 项奖励
3 条消息(共 6 条)
4,111 次查看

> - user can interact (click, type) with controls in the window

 

Only the active window gets the type message.

You can't type into this window if it's not active.

 

 

George Zou
0 项奖励
4 条消息(共 6 条)
4,077 次查看

This is not completely true, well it looks that for LV it is.

 

With Window Style WS_EX_NOACTIVATE (https://msdn.microsoft.com/en-us/library/windows/desktop/ff700543(v=vs.85).aspx) you can create a window that is not active, but can catch mouse and keyboard events. Examples of such windows are LV Functions Palette and on-screen keyboard.

0 项奖励
5 条消息(共 6 条)
4,053 次查看

That's common sense for Window programmers.

LabVIEW front panel is just another window, nothing more, nothing less.

 

You can make a window has WS_EX_NOACTIVATE style, you won't be able to type in it afterword.

You can try this on Notepad.

 

Both LV function Palette, and on-screen keyboard work with click.  NO typping.

You can click on a window even it has WS_EX_NOACTIVATE style.

 

 

George Zou
0 项奖励
6 条消息(共 6 条)
4,001 次查看