Click here to Skip to main content
Click here to Skip to main content

Elliptic Buttons

, 8 Feb 2000
Rate this:
Please Sign up or sign in to vote.
A class that turns rectangular buttons into elliptic buttons.
  • Download demo project - 24 Kb
  • Download source files - 5 Kb
  • Sample Image

    This class is based on Chris Maunder's Round Buttons. However, instead of forcing all buttons to be round, this class allows buttons to be elliptical, with the major and minor axes based on the bounds of the rectangle passed to the buttons' creation function (Either through CEllipticalButton::Create or via the DevStudio resource editor).

    This class can be used like any other owner drawn control - simply include the header file, and declare your button controls as CEllipticalButton instead of CButton

    License

    This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

    A list of licenses authors might use can be found here

    Share

    About the Author

    Raghav Gupta

    United States United States
    No Biography provided

    Comments and Discussions

     
    GeneralBackground Rectangle PinmemberFlexMaster19-Apr-02 10:03 
    I am creating elliptical buttons on a black background. Doing this there seems to be a gray rectangle surrounding the ellipse. Is there anyway I can get rid of that rectangle or set its color to the background color of my dialog???
    GeneralIssues while using it in combination with the CRoundButton class PinsussBernd Giesen12-Jun-00 21:52 
    GeneralNice One! PinsussMikkiDee15-Feb-00 8:39 
    Generalgood PinmemberAnonymous4-Mar-02 0:24 

    General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

    Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

    | Advertise | Privacy | Mobile
    Web01 | 2.8.140827.1 | Last Updated 9 Feb 2000
    Article Copyright 2000 by Raghav Gupta
    Everything else Copyright © CodeProject, 1999-2014
    Terms of Service
    Layout: fixed | fluid