View Single Post
  #346  
Old 13-09-2023, 08:14
BYRedex BYRedex is offline
Registered User
 
Join Date: Jun 2013
Location: Koenigsberg
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
BYRedex is on a distinguished road
Question

Hi! What about rounding out the shape?
I want to use "FMXForm.FCreateNormal(WizardForm.Handle);" so that I can put any image on top of the form and it will be rounded.

On the screenshots you can see it perfectly well, everything turns out using this:

Code:
function SetWindowRgn(hWnd: HWND; hRgn: LongWord; bRedraw: BOOL): Integer;
external '[email protected] stdcall';

SetWindowRgn(FMXForm.Handle, FormRegion, True);
But then the form and FMX live separately, i.e. the FMX layer moves on the WizardForm form.

SetWindowRgn works only with "FMXForm.FCreateNormal", I want to have the same view for all systems (from Win7 to 11) and have the ability to set parameters of form rounding.
Attached Images
File Type: png 1.PNG (1.27 MB, 88 views)
File Type: png 2.PNG (1.06 MB, 86 views)
Reply With Quote
Sponsored Links