>>>Hi!
>>>
>>>At DEVCON 11 I have seen a sample for new VFP 7 thins. In the sample demonstrated new property of controls - hWND. The sample made a command button elliptic using 2 API functions - CreateEllipticRgn and SetWindowRgn. Handle for SetWindowRgn used from Hwnd property of command button. Whan sample run at VFP 7 - button is really elliptic.
>>>
>>>How you can comment that? MS removed this feature in the next releases of VFP7? If yes, I'm quite wondered than...
>>
>>Not having seen the demonstration, it's difficult to comment. However, native controls, including the command button are not windows and therefore do not have a window handle. So there are two possible conclusions that can be drawn: Either the window handle was that of the form or the command button was something like the MS Forms 2.0 command button or other ActiveX control (which is a window and therefore has its own hWnd).
>
>I would tend to go with your second hypothesis. This would definitely be the easiest to implement.
I haven't looked closely enough at the API calls to say even if it's possible to use the form's hWnd.
>As for the first, honestly, I don't see how it could be done unless you totally took out the form (< SHAMELESS PLUG >which my FormTransformer does, BTW < /SHAMELESS PLUG >). If you created a region using the button for your dimensions, you still have the form in the background being displayed. This will throw off your shape.
Larry, I believe it should be
SET SHAMELESS PLUG ON/OFF. But maybe I'm confusing it with SET SHAMELESSSELFPROMOTION. Oh...wait...those are the HTML tag versions...nevermind.:-)
George
Ubi caritas et amor, deus ibi est