Link to home
Start Free TrialLog in
Avatar of gianluca
gianluca

asked on

elliptic shape button

Is it possible create a elleptic shape button ??? (or other strange shape).
ASKER CERTIFIED SOLUTION
Avatar of ckaneta
ckaneta

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of edey
edey

you can use the setWindowRGN function with *any* window, you just need i's handle:

The SetWindowRgn function sets the window region of a window. The window region determines the area within the window where the operating system permits drawing. The operating system does not display any portion of a window that lies outside of the window region

int SetWindowRgn(

    HWND  hWnd,      // handle to window whose window region is to be set
    HRGN  hRgn,      // handle to region
    BOOL  bRedraw      // window redraw flag
   );


GL
Mike
You may want to have a look at this component:

ftp://ftp.cdrom.com/pub/delphi_www/ftp/d20free/hembtn_1.zip

Cheers,

Raymond.
Avatar of gianluca

ASKER

This question has a deletion request Pending
This question no longer is pending deletion
Why are you deleting the question? Have we not answered it?
hmmmmm
If you want you can also creates a simple elliptic shape and use an onclick event to make it works as a button
I want a real button component : when I click on it the button seems pressed and then becomes normal again.
I relized that this question is no more important to me at the moment, so I decided to delete it. To be honest, this is the best answer I received (I found a component like I wanted in Torrys pages) so I accept the answer.