FLTK logo

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: how to get a circle of button Alessandro Portale Feb 15, 2006  
 
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.

-Alessandro

Anonymous wrote:
hi all :
        how to get a circle of button?
        shall I need to creat a new class or an other means?

thanks

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'.