|
-
July 11th, 2001, 05:13 AM
#1
shape control
do anyone know how to make the shape control to display triangle ?? or there are other control that can display triangle with filled color ?
thanks
HTH
cksiow
http://vblib.virtualave.net - share our codes
-
July 11th, 2001, 05:34 AM
#2
Re: shape control
I have this post up on PlanetSourceCode.com
This issues on how to give windows a shape (going from a tringle to bill gates). However, this code can be used on any object having a hWnd, and a picturebox would be the right player in your case. So you can set the appearance to flat, give a background color, and set the shape.
http://www.planetsourcecode.com/xq/A...s/ShowCode.htm
Tom Cannaerts
[email protected]
Programming today is a race between software engineers striving to build bigger and better idot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning -- Rich Cook
-
July 11th, 2001, 06:42 AM
#3
Re: shape control
You can implement this functionality yourself by using CreatePolyRgn to create a triangular region and then in the Form_Paint event call FillRgn.
Both of these API calls are documented at http://msdn.microsoft.com/library/en...gions_5vvy.asp
Hope this helps,
Duncan
-------------------------------------------------
Ex. Datis: Duncan Jones
Merrion Computing Ltd
http://www.merrioncomputing.com
-
August 2nd, 2001, 06:20 PM
#4
Re: shape control
If you send me your e-mail address I'll send you a free OCX that might do what you want. It's a shaper control that you can make any shape with. You would then apply this shape to a picture box to get a triangle. My E-Mail: [email protected]
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
|