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 top right image

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


if You simply want to have a round button, You can set a buttons box style to a round type: 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"

Direct Link to Message ]
bottom left image   bottom right image
Previous Message ]New Message | Reply ]Next Message ]

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