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 » Have the PictureButton ?
Re: Have the PictureButton ? [message #12737 is a reply to message #12735] Wed, 14 November 2007 16:18 Go to previous messageGo to previous message
mrjt is currently offline  mrjt
Messages: 705
Registered: March 2007
Location: London
Contributor
Button::Style flatstyle;

void SetFlatStyle(Button &btn)
{
    flatstyle = btn.StyleNormal();
    flatstyle.look[0] = SColorFace();
    flatstyle.look[1] = SColorFace();
    flatstyle.look[2] = SColorFace();
    flatstyle.look[3] = SColorFace();
    btn.SetStyle(flatstyle);
}

Or you can replace SColorFace with an Image to draw some sort of border. See the Image B in CtrlLib/Ctrls.iml.

And yes, Button option should have a Label and IMO be either a variant of Option or Pusher. It's a bit useless at the mo.

[Updated on: Wed, 14 November 2007 16:19]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: label text not wrapped
Next Topic: How to call GUI in static function?
Goto Forum:
  


Current Time: Sat Jun 08 15:19:00 CEST 2024

Total time taken to generate the page: 0.02174 seconds