-
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
-
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.
-
Shape Controls
I never used Sharpe Controls.
May you as nice as to tell me where find and how to use them?
Thx,
Susn
-
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.
-
Thank you.
I will try this out.
Greetz,
Susn
-
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
-
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.