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

Elliptic Buttons

By , 8 Feb 2000
 
  • 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

    About the Author

    Raghav Gupta
    United States United States
    Member
    No Biography provided

    Sign Up to vote   Poor Excellent
    Add a reason or comment to your vote: x
    Votes of 3 or less require a comment

    Comments and Discussions

     
    Hint: For improved responsiveness ensure Javascript is enabled and choose 'Normal' from the Layout dropdown and hit 'Update'.
    You must Sign In to use this message board.
    Search this forum  
        Spacing  Noise  Layout  Per page   
    GeneralBackground RectanglememberFlexMaster19 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 classsussBernd Giesen12 Jun '00 - 21:52 
    Hi,   thanks for your nice class. However, you've to modify the source code a little bit if you want to use your class in combination with Chris Maunder's CRoundButton class:   1) Change the H-capsule from #if !defined(AFX_ROUNDBUTTON_H... #define AFX_ROUNDBBUTTON_H... to ...
    GeneralNice One!sussMikkiDee15 Feb '00 - 8:39 
    Cool Man, Goes Perfect with my Eliptical "Logon" Icon. Thanks Mik
    GeneralgoodmemberAnonymous4 Mar '02 - 0:24 
    delt nice with the problem       subba rao

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

    Permalink | Advertise | Privacy | Mobile
    Web03 | 2.6.130516.1 | Last Updated 9 Feb 2000
    Article Copyright 2000 by Raghav Gupta
    Everything else Copyright © CodeProject, 1999-2013
    Terms of Use
    Layout: fixed | fluid