FLTK logo

Re: [fltk.general] Re: how to get a circle of button

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.general  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: Re: how to get a circle of button matthiasm Feb 16, 2006  
 

On Feb 16, 2006, at 8:29 AM, Alessandro Portale wrote:

Hi,

if You simply want to have a round button, You can set a buttons box style to a round type: http://www.fltk.org/documentation.php/ doc-1.1/common.html#boxtypes
Fluid letz You do that, too.

If You want a circle on a button, You need to derive Your button class from for example Fl_Buttons and override the draw() method. This method can call the draw() of the base class and afterwards draw a circle.

Or you set the button label to "@circle"

http://fltk.org/documentation.php/doc-1.1/common.html#labels


Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.