LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Allow user to resize front panel (Top bar not desired)

Solved!
Go to solution

Hey Folks!

 

KoalaBeer here again with another quick question 🙂

 

So, I would like to create an interface where the user can resize de front panel but I wont

keep the LabVIEW Menus neither the tittle bar. 

 

Anyway, when I disable the LabVIEW menus and the tittle bar, I still have this ugly looking bar on the top, it is ugly because my front panel is black and the bar is white. Look at this: 

 

This.PNG

 

Can anyone know how to get rid of that bar and still allowing the user to resize the front panel?

 

Thank you for your answers.

 

Luis.

 

0 Kudos
Message 1 of 6
(2,406 Views)

So apparentlly JKI have made an statement about this in the following post : 

 

Creating a Flat UI Titlebar in LabVIEW (draggable window without a native titlebar) (jki.net)

 

And they tell this to us : 

 

Note: there’s an issue in Windows 10 where if a Window is resizable and doesn’t show its titlebar, then it will have a small bar at the top, which is the same color as the original/naive titlebar -- if you make your window NOT resizable, this bar will go away. We haven’t found a solution for this, but it seems there is possibly some way to fix this with the right Windows API calls.

 

Does anyone know "the right windows API calls" :D.

 

Luis.

0 Kudos
Message 2 of 6
(2,398 Views)

Help 🙂

0 Kudos
Message 3 of 6
(2,324 Views)
Solution
Accepted by topic author KoalaBeer

@KoalaBeer wrote:

 

Does anyone know "the right windows API calls" :D.


SetWindowRgn

https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-setwindowrgn

CreateRectRgn

https://docs.microsoft.com/en-us/windows/win32/api/wingdi/nf-wingdi-createrectrgn


___________________
Try to take over the world!
Message 4 of 6
(2,317 Views)

Thank you, it really helped me! 🙂

0 Kudos
Message 5 of 6
(2,250 Views)

KoalaBeer Can you share code of your fix? 

 

Thanks.

0 Kudos
Message 6 of 6
(2,181 Views)