Results 1 to 7 of 7

Thread: Elliptic or Circled Buttons

  1. #1

    Thread Starter
    Member susn's Avatar
    Join Date
    Feb 2001
    Location
    Dubai
    Posts
    48
    For a Application i need to create a Circled or Elliptic Button.
    However i tryed out the Api' s

    Public Declare Function CreateEllipticRgn Lib "gdi32" Alias "CreateEllipticRgn" (ByVal X1 As Long, ByVal Y1 As Long, ByVal X2 As Long, ByVal Y2 As Long) As Long

    and what is needed to Circle e.g. a Window or a Button.

    But i do not get the expected Result.
    The circled Button do not look like 3D nomore.

    May somebody help me resolve this Problem?

    The Button shpuld look like one Standartbutton but Elliptic or Circled.

    Thx,

    Susn

  2. #2
    Lively Member
    Join Date
    Feb 2001
    Location
    Malaysia
    Posts
    71
    I think you'll have to draw the button yourself in order to make it 3D. There's no API call that draw a shaped button.

    The easiest way (I think) is to use Shape controls.

  3. #3

    Thread Starter
    Member susn's Avatar
    Join Date
    Feb 2001
    Location
    Dubai
    Posts
    48

    Shape Controls

    I never used Sharpe Controls.

    May you as nice as to tell me where find and how to use them?

    Thx,

    Susn

  4. #4
    Lively Member
    Join Date
    Feb 2001
    Location
    Malaysia
    Posts
    71
    The shape controls are intrinsic controls. You'll see it on the tool palette. Just point your cursor over the buttons and you'll see a tooltip "Shape".

    You can change the shape of the control by accessing the Shape property. Pretty straight forward.

    As for your case, put 2 of Shapes on UserControl and set their size and position appropriately and you'll have a simple 3D shaped-button.

    I think this should be enough. Best of luck.

  5. #5

    Thread Starter
    Member susn's Avatar
    Join Date
    Feb 2001
    Location
    Dubai
    Posts
    48
    Thank you.

    I will try this out.

    Greetz,

    Susn

  6. #6

    Thread Starter
    Member susn's Avatar
    Join Date
    Feb 2001
    Location
    Dubai
    Posts
    48

    Shape Controls

    The Shape Control is not as usefull as i thought.
    I dont wanna draw on a Form ....
    I wanna a circled 3D Button looks ans acts like one normaly Button.
    Any Ideas will be welcome.

    Thx,

    Susn

  7. #7
    Addicted Member
    Join Date
    Mar 2001
    Location
    India
    Posts
    134

    Smile

    hi,

    i think its best to create ur own control with a button on a frame shaped like a circle. i think that would be the easiest way out.
    Pavan Kumar

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width