01-20-2006 01:25 PM
01-23-2006 01:54 AM
01-23-2006 03:19 AM
01-23-2006 10:48 AM
01-24-2006 01:03 PM - edited 01-24-2006 01:03 PM
Hey bmihura,
I've never really been bothered by it, but to feed off Roberto's idea I can offer the following:
Add a Classic-style control > Decoration > Flat frame.
Chance the color of the flat frame to match the background of your panel. Size the flat frame decoration so that its inside pixels overlaps the picture control's black border. And boom, problem solved. Now, the downside is that focus should not be shown if the Z-order of the frame is on top of the picture control. This may not be an issue for you. Also, the flat frame has a specific width that doesn't appear to be adjustable. So if you are trying to smoosh several picture buttons right next to each other, my flat-frame workaround will require some extra space between the buttons. If you dynamically change the panel color, just make sure to adjust the color of the flat frame to match it. Just an idea... (but credit to Roberto ).
Orlan
Message Edited by cosmo on 01-24-2006 01:03 PM
01-24-2006 01:14 PM
I might also add that I agree with bmihura; ideally the black border should be removed so that this control will match the appearance of all other controls. There are probably thousands upon thousands of panels out there that employ the picture button. I understand that blindly removing the black border could cause potentially appearance issues for many, many people--making them go back and move a control a few pixels this way, or that way. So there are considerations for NI that may make this ideal repair unreasonable. Perhaps it would be a good idea to see what the implications would be? It should be put on the list at NI to check that future CVI controls all follow a standard style instead of having a few one-offs.
Orlan
01-26-2006 12:39 AM
01-26-2006 01:52 AM
01-26-2006 08:36 AM
Well,
I will concede that I'm personally more interested in consistency than whether the border must absolutely be there or not. I seldom use the full mix of the available CVI controls on any single GUI, so sometimes it ends up with lots of black border, except for one or two controls, and sometimes I end up with almost no black borders, again except for one or two controls. Because it wasn't consistent when they were designed, they obviously can't be consistent in implementation. Perhaps my last post emphasized the presence or absence of borders more than consistency. That was bad logic, so thanx Roberto. And Thanx Wendy
Orlan