Mail Archives: djgpp/1998/08/04/15:15:33
In article <35C55A18 DOT 9EE2BC7E AT lasalle DOT edu DOT co>,
MAPE <mpereze AT lasalle DOT edu DOT co> wrote:
> Hi, this may be very off topic, sorry.
>
> Rectangular push-buttons are creativity limiting. How do I do any-form
> push buttons in VC++ or VBasic? There are a way in another languaje?
> Thank you.
>
> MAPE
>
>
In 32 bit windows you can use the SetWindowRgn (sp ?) API to set the shape of
a window to any shape you choose, You then have to deal with painting it
yourself (e.g. use ownerdraw) or the button will look very odd (you've just
clipped the rectangular version to an arbitary shape)
If you find you don't want to re-invent this wheel each time, you package it
into an OCX (ActiveX) control, which you write with VC.
Most languages can use OCXs even if they are weak on dealing the Win32 API.
For example in VB it's a lot easy to use an OCX than write all this code
yourself.
If you look on the web, somebody's already selling a toolkit which is exactly
this OCX. IIRC it's call button maker (?) or something like that
--
Y2K Made Easy - Compliance Information on 20,000 products -
http://www.ans2000.com
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum
- Raw text -