Click to See Complete Forum and Search --> : Form shape


ands_au
July 18th, 2001, 05:06 PM
Hi,

I would like to display my form with the edges rounded. They should not be sharp edges. Any suggestions?

Thanks.

Alejandro Ochoa
July 18th, 2001, 05:36 PM
Check this page http://www.allapi.net/vbasic/source.php , there is an example on how to create an irregular shaped form, the name is region.zip.

Hope this helps.

Cakkie
July 19th, 2001, 01:28 AM
You can check out this tutorial, documented with working examples (written by a great author, ok maybe not):
http://www.planetsourcecode.com/xq/ASP/txtCodeId.22627/lngWId.1/qx/vb/scripts/ShowCode.htm

Tom Cannaerts
slisse@planetinternet.be

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

Clearcode
July 19th, 2001, 04:07 AM
Any window can be set to any predefined shape with the SetWindowRgn() API call.
You create a region with CreateRectRgn(), CreateRoundRectRgn(), CreatePolyRgn() or CreateElipticRgn()

Hope this helps,
Duncan

-------------------------------------------------
Ex. Datis: Duncan Jones
Merrion Computing Ltd
http://www.merrioncomputing.com
Check out the new downloads - ImageMap.ocx is the VB control that emulates an HTML image map, EventVB.OCX for adding new events to your VB form and adding System Tray support simply, MCL Hotkey for implemenmting system-wide hotkeys in your application...all with source code included.

PrimeraTech
June 13th, 2002, 04:27 PM
I have used a product called TYPICAL_FormShaper. It allows you to make a form or control the shape of any bitmap. I'd recommend it highly.

www.typicalsoftware.com