MarkBarnes Posted February 3, 2015 Report Share Posted February 3, 2015 Hi all, I'm trying to anti-alias my vector-based custom controls. I know it's possible: The left hand circle is my custom control, the other 3 are various circular controls taken from the Silver controls palette. Obviously the anti-aliasing is not a public feature and is part of NI's internal control definition. Has anyone succeeding in either exposing this hidden property as something to be turned on, or editing the raw .ctl file code to enable anti-aliasing? Any ideas? Thanks, Mark Quote Link to comment
hooovahh Posted February 3, 2015 Report Share Posted February 3, 2015 I don't believe is is just an anti-aliasing issue. Your image is going to also need to be an image that is in a vector type format. The only format I know that is supported is WMF. The Image Navigator is part of the DSC toolkit and comes with a bunch of WMF images and allows you to change the color then copy them, then you can replace the buttons with that image. Then these images scale well. Attached is a switch I made by replacing the True and False images with two from the WMF format. Now if there is more NI features to make anti-aliasing better, I don't know. But I do know of the enable secret popups as mentioned by Christina here. https://lavag.org/topic/18469-i-found-some-more-hidden-ini-keys/#entry110810 EnableSecretPopups=True I was hoping that would have the menu might have something else for handling this but it doesn't. WMF Switch.vi Quote Link to comment
MarkBarnes Posted February 3, 2015 Author Report Share Posted February 3, 2015 (edited) Hi hooovahh, My controls are already vector based, I've imported the decals from an EMF file and they do scale really well as you can see here: But you can also see they look bad without anti-aliasing. I already had the EnableSecretPopups=True set for getting the scaling behaviour of these controls to be correct, it's a shame it doesn't expose more functionality! Nice tip on looking at the DSC toolkit controls, I'll take a look at this to see if I can misuse any of the controls. Edited February 3, 2015 by MarkBarnes Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.