Miranor Widget Store


You have to be logged in to use this function.


   Create New Account ˖ Forgot password?
ROUNDED BUTTON (GUI App)Buy this Widget!
1 Credits

A simple command button with icon or text label derived from 'MButton', but with a better design (gradient fills and rounded edges). No additional functionality. Fully adjustable label (setText), icon (setIcon), font (setFont), text color (setForeColor), and background color (setBackColor). Requires Elgrint.

Author: Dimitry Rotstein

Tags: button, control, selector, rounded, text, icon, gradient, push, release, click, press, depress

Code preview:

class RoundedButton : public MButton { public: RoundedButton(MWindow& parent, const MRect& rect, MNum nidReleased = None, const MString& text = ZeroString, const MImage& icon = ZeroImage) : MButton(parent,rect,nidReleased,text,icon) {} ON_Paint // Draw button with proper mark inside { // Background (same color as parent to blend into it) setFillSettings(getParent().getBackColor()); fillRect(MaxRect); // Prepare MSize s = getSize();

***************Buy the widget to get the rest of the code***************

Miranor Home | About Miranor | About Elgrint | Create account | Login | Account settings | Contact Us | Privacy Policy | Site map

© Copyright 2014 by Miranor. All rights reserved. By using this site you agree to the Terms of Use.

Page last updated on August 10th, 2014.

Real Time Web Analytics