LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
adriaanrijllart

Horizontal and vertical window resize

I'd like to have an option to allow resize X and Y separately.

Because I only want to allow Y resize, and not X, I need to program an event to detect X resize and restore the original size.
Users don't like it. The resize event is sometimes lost, when keeping the mouse down long, causing no restore to original size.

 

Download All
2 Comments
tst
Knight of NI Knight of NI
Knight of NI

As far as I know this is controlled only by the OS, and I don't remember ever seeing a window which can only be resized in one direction on Windows.

 

I would say that you would probably have to code this yourself by making the window non-resizable and then adding your own "resize bar" at the edge of the window and programmatically resizing the window based on the mouse position after the user holds the mouse down on the bar. You would probably want a combination of the event structure to detect the start of the resize and the mouse VIs to detect the position and end of the resize. You can also use the cursor VIs to change the mouse cursor during the operation.


___________________
Try to take over the world!
Hassan_Atassi
Active Participant
Status changed to: Duplicate

Dupe: http://forums.ni.com/t5/LabVIEW-Idea-Exchange/Independent-control-for-user-resizing-front-panel-hori...

 

I kept the post that had more kudos on it. 

Regards,

Hassan Atassi
Senior Group Manager, Digital Support