Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Widgets - General questions or Mixed problems » Help needed dealing with switch control
Re: Help needed dealing with switch control [message #20018 is a reply to message #20017] Tue, 10 February 2009 10:42 Go to previous messageGo to previous message
cbpporter is currently offline  cbpporter
Messages: 1401
Registered: September 2007
Ultimate Contributor
I'm not sure I understand your problem, but it could be caused by the way U++ handles Switches.

The traditional way of doing things is that if you want 3 switches, you will place 3 widgets on you form, each corresponding to a single option. Of course, you need to deactivate options when users interacts with on of the switches that constitute a logical group, and since witting such code would be repetitive for this very common scenario, you would place all tree switches in a GroupControl which will handle selecting items and logical grouping for you.

In U++ on the other hand, If you need to have 3 options, you will only add one single Switch to your layout. Then you will call Add 3 times on that Switch. In U++ Switch is actually more like a GroupControl, an calling Add populates it with "traditional switch" widgets. Switch is a group control, and is not like Option, which constitutes a single check box, not a group.

This works well for single groups, but if you need multiple groups that act as a single logical group, you will have to use something like mrjt suggested.

Switch should be able to handle both horizontal and vertical layout (as seen in your screenshot).
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: EditString validation
Next Topic: Win32 / Linux layouts
Goto Forum:
  


Current Time: Thu May 16 11:05:45 CEST 2024

Total time taken to generate the page: 0.01667 seconds