LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to create a custom shaped panel

Hello,
I would like to create a panel with a custom shape, instead of a regular Windows panel. My idea was to create a panel, hide the system bar and the borders and set the background color to transparent. Then I would put a canvas on it, also with transparent background, and draw a bitmap with a mask or alpha channel on it. This bitmap would represent my panel. Then I could put CVI controls on it by creating them on my transparent panel and make sure that they are in front of the canvas in the Z-plane.
Unfortunately there are a few problems:
 1. I am not allowed to change the border attributes of a parent panel.
 2. I am not allowed to set the background color of a panel to transparent.
 
Is there anyone who has an idea of how to get around these problems? Or how I could achieve my goal in another way?
 
Thanks a lot!
0 Kudos
Message 1 of 3
(2,996 Views)

Hi,

Have you looked at the example winshape.prj in the samples\sdk folder of your CVI.

Regards

Ray Farmer

Regards
Ray Farmer
Message 2 of 3
(2,995 Views)

Very good suggestion Smiley Happy

Thanks a lot, Ray!

0 Kudos
Message 3 of 3
(2,990 Views)