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 » Switch feature contribution + StaticText USC file correction
Switch feature contribution + StaticText USC file correction [message #43814] Fri, 24 October 2014 19:35 Go to next message
Didier is currently offline  Didier
Messages: 680
Registered: November 2008
Location: France
Contributor
Hello,

1 - Switch feature:
-------------------
I have a minor feature proposition for Switch widget :
==> make orientation configurable : vertical, horizontal or automatic (like it is now)

I currently use this feature because when changing language, the text length also changes ... and so does the orientation, sometimes making the widget unusable Sad

Basically I just added the following methods to Switch class :
	Switch& SetHorizontal()                                     { direction = 1; return *this; }
	Switch& SetVertical()                                       { direction = -1; return *this; }
	Switch& SetAutoDirection()                                  { direction = 0; return *this; }


2 - StaticText .USC file correction
-------------------------------------
Just a minor correction to the text painting method : GetTextSize() replaced with GetSmartTextSize()


All code is in joined zip file.
The code corresponds to the svn version 7824 ( last svn version at the time of this post )


Re: Switch feature contribution + StaticText USC file correction [message #43826 is a reply to message #43814] Wed, 29 October 2014 10:27 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Thank you, applied.

Mirek
Previous Topic: ColumnList multi select mode: weird behavior
Next Topic: Drop list is not shown
Goto Forum:
  


Current Time: Fri Mar 29 00:11:52 CET 2024

Total time taken to generate the page: 0.01424 seconds