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 » Community » Newbie corner » ButtonOption is a cute little Toggle button
Re: ButtonOption is a cute little Toggle button [message #24936 is a reply to message #24934] Fri, 05 February 2010 09:22 Go to previous messageGo to previous message
cbpporter is currently offline  cbpporter
Messages: 1401
Registered: September 2007
Ultimate Contributor
Hi alendar,

ButtonOption is a full featured widget that behaves pretty much the way you described it and it does have text. It is not a secret because it is not in the right click list in the layout editor.

A lot of widgets can only be accessed by editing the class field in the editor. This is less than optimal though Smile.

Right now I consider it almost deprecated and use ToolButton instead, but that doesn't mean that ButtonOption does not do its job right. ToolButton is meant for ToolBars, but it works well anywhere. If you choose to use ButtonOption, you can set the text with SetLabel. It is simpler than ToolButton, and might be the right thing for your needs. You can also set the style to flat with StyleFlat(), and you will get a quite popular flat two state button which appears in a lot of applications.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Menus and Toolbars
Next Topic: v.1952 errors
Goto Forum:
  


Current Time: Tue May 14 19:58:23 CEST 2024

Total time taken to generate the page: 0.02444 seconds