|
-
Mar 2nd, 2001, 04:18 PM
#1
Thread Starter
Member
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
-
Mar 3rd, 2001, 08:47 AM
#2
Lively Member
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.
-
Mar 3rd, 2001, 11:01 AM
#3
Thread Starter
Member
Shape Controls
I never used Sharpe Controls.
May you as nice as to tell me where find and how to use them?
Thx,
Susn
-
Mar 3rd, 2001, 12:03 PM
#4
Lively Member
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.
-
Mar 3rd, 2001, 12:45 PM
#5
Thread Starter
Member
Thank you.
I will try this out.
Greetz,
Susn
-
Mar 4th, 2001, 06:35 AM
#6
Thread Starter
Member
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
-
Mar 22nd, 2001, 02:24 AM
#7
Addicted Member
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|