Hi all,
I just started playing with the ROS source code today, and decided to first try fixing the look of the user32 radio button. This isn't nearly as futuristic as some of the things posted in the other threads, but the radio button is the only visually deformed control so I figured might as well try to fix it.
As it turns out, it ended up being a nightmare. In the end I ended up with a simple solid-border radio button (like the one in the user32 resources bmp) and a version with a shadow, but neither looking exactly like the windows radio button. This by just using the available functions, not messing up any external functions other routines might depend on, and trying to keep the geometry limited to the control's dimensions.
So the question, what are the plans, if any, for the radio control? Is it to be dealt with at a later time, or would it be better to have a recognizable radio button now, even if it isn't 100% like the windows one?
Thanks in advance for taking the time to read this =)
User32\Radio button
Moderator: Moderator Team
-
- Developer
- Posts: 509
- Joined: Mon Apr 25, 2005 12:46 pm
Woops, didn't check this thread for a few days.
I had to look at the 0.3.0 and then 0.4 SVN code to realize what Frik85 posted as the same code keeps producing slightly different visuals with each release. It seems that the code will work right once all the functionality is implemented - meanwhile there's no point in messing with it. I didn't do any screenshots, just saved some of the code.
If interested, open the user32\controls\draw.c [I think that's where it's at] and take a look at the UITOOLS95_DFC_ButtonRadio function. The Pie sub didn't work all that well in 0.3.0 but it looks a lot better, probably because of added functions in the latest svn release.
I had to look at the 0.3.0 and then 0.4 SVN code to realize what Frik85 posted as the same code keeps producing slightly different visuals with each release. It seems that the code will work right once all the functionality is implemented - meanwhile there's no point in messing with it. I didn't do any screenshots, just saved some of the code.
If interested, open the user32\controls\draw.c [I think that's where it's at] and take a look at the UITOOLS95_DFC_ButtonRadio function. The Pie sub didn't work all that well in 0.3.0 but it looks a lot better, probably because of added functions in the latest svn release.
Who is online
Users browsing this forum: No registered users and 16 guests