Hi paolo,

I must admit that awt API's are quite obscure to me, and it's difficult to say what can be done and what cannot.


like for me

Anyway, if I well remember, when I was playing with VB, peoples used some window API's to create shaped buttons or forms.

The trick was something like this:
- create a non rectangular region on the screen (Hwnd = 0) using intesection or union or elliptic regions
- set the region to a form (or control) using the API call setWindowRegion (or something similar)



yesy, i did such games in my earlier years (created a stamp-like window with sinus and cosinus)


That's why i asked

Now, In the OOo API's there should be something similar because you can create and manipulate regions, for example:

....

Unfortunately I've no idea if you can create a region from the screen and if you can set a region to a specified window, but maybe it worth some further investigations on this track.



I'll try to have a look when some time be patient , it may take weeks, months, years ;)

Thansk again Paolo for your snippet

Laurent

--
Laurent Godard <[EMAIL PROTECTED]> - Ing�nierie OpenOffice.org
Indesko >> http://www.indesko.com
Nuxeo CPS >> http://www.nuxeo.com - http://www.cps-project.org
Livre "Programmation OpenOffice.org", Eyrolles 2004


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to