|
#346
|
|||
|
|||
|
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); 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. |
| Sponsored Links |
|
#347
|
||||
|
||||
|
Quote:
maximum size will be 32x32. if this is ok to you, let me know. . Last edited by BLACKFIRE69; 14-07-2024 at 02:06. |
|
#348
|
||||
|
||||
|
Quote:
how about now? . Last edited by BLACKFIRE69; 14-07-2024 at 02:06. |
| The Following 2 Users Say Thank You to BLACKFIRE69 For This Useful Post: | ||
audiofeel (13-09-2023), Lord.Freddy (13-09-2023) | ||
|
#349
|
||||
|
||||
|
Metro Installer
|
|
#350
|
||||
|
||||
|
Quote:
Code:
{ ResIconSize }
const
RIS_SMALL = $0001; // 16 x 16
RIS_MEDIUM = $0002; // 32 x 32
RIS_LARGE = $0003; // 48 x 48
RIS_EXTRA_LARGE = $0004; // 64 x 64
RIS_EXTRA_EXTRA_LARGE = $0005; // 128 x 128
RIS_JUMBO = $0006; // 256 x 256
function wGetSysDefaultIconsFromResLib(const AModule: WideString;
AIndex, RISIcoSize: Cardinal; const Buffer: PAnsiChar; var Count: Cardinal): Integer;
function wGetSysDefaultIconsFromResLib2(const AModule, AOutFile: WideString;
AIndex, RISIcoSize: Cardinal): Boolean;
function wGetSysDefaultIconsSizeFromResLib(const AModule: WideString;
AIndex, RISIcoSize: Cardinal): Integer;
Code:
{ GetSysDefaultIcons }
AModule := 'C:\Windows\SystemResources\imageres.dll.mun';
AIndex[1] := 31; // C-Drive
AIndex[2] := 27; // OtherDrvs
AIndex[3] := 103; // Music
AIndex[4] := 105; // Desktop
AIndex[5] := 175; // Donwloads
AIndex[6] := 107; // Documents
P := 0; Q := 0;
for i := 1 to C_RANGE do
begin
if i = (C_RANGE div 2) + 1 {i =4} then
begin
P := 0; Q := 160;
end;
AImage[i].FCreate(FMXForm.Handle);
AImage[i].SetBounds(NSX(P + 130), NSY(Q + 80), NSX(100), NSY(100));
#ifdef AMethod1 /* Extract SysDefaultIcons into a Buffer, then load them into AImage[i] */
ImgSize[i] := wGetSysDefaultIconsSizeFromResLib(AModule, AIndex[i], RIS_EXTRA_EXTRA_LARGE);
if ImgSize[i] <> -1 then
begin
SetLength(Buffer[i], ImgSize[i]);
if wGetSysDefaultIconsFromResLib(AModule, AIndex[i], RIS_EXTRA_EXTRA_LARGE, Buffer[i], Count[i]) <> -1 then
AImage[i].LoadPictureFromBuffer(Buffer[i], Count[i], wmTileStretch);
end;
#else /* Extract SysDefaultIcons into the TmpDir, then load them into AImage[i] */
ImgFile[i] := ExpandConstant('{tmp}\') + IntToStr(i) + '.png';
if wGetSysDefaultIconsFromResLib2(AModule, ImgFile[i], AIndex[i], RIS_EXTRA_EXTRA_LARGE) then
begin
AImage[i].LoadPicture(ImgFile[i], wmTileStretch);
end;
#endif
P := P + 150;
end;
{ GetSysDefaultIcons }
. Last edited by BLACKFIRE69; 14-07-2024 at 02:07. |
| The Following 3 Users Say Thank You to BLACKFIRE69 For This Useful Post: | ||
|
#351
|
||||
|
||||
|
Quote:
Delphi/FMX: How to add a dynamically created top-aligned component . Last edited by BLACKFIRE69; 14-07-2024 at 02:07. |
| The Following 3 Users Say Thank You to BLACKFIRE69 For This Useful Post: | ||
|
#352
|
|||
|
|||
|
Hello brother, please give the complete script, where should I download it, thanks
|
|
#353
|
||||
|
||||
|
Quote:
i'm not sure. could you provide an example or explain further? |
| The Following User Says Thank You to BLACKFIRE69 For This Useful Post: | ||
audiofeel (15-09-2023) | ||
|
#354
|
||||
|
||||
|
FMXInno - Updates
FMXInno - Updates: 2023-Sep-15
The latest version has been added to the first post. |
|
#355
|
||||
|
||||
|
if you are talking about Custom MultiView, you need to plan it out a bit more thoroughly than this. . Last edited by BLACKFIRE69; 14-07-2024 at 02:07. |
|
#356
|
||||
|
||||
|
Quote:
screenshot: . Last edited by BLACKFIRE69; 14-07-2024 at 02:08. |
|
#357
|
|||
|
|||
|
@Blackfire69
If you have some time, can you please work on enabling some component over FVideoPlayer (like even FPopUpBox) will also be fine. You can check this post for the requirement I'm asking for. https://fileforums.com/showpost.php?...&postcount=493 |
|
#358
|
||||
|
||||
|
OnMouseEnter is Trigger to start animation.
OnMouseLeave is Trigger to Reverse animation. You can use OnClick. |
| The Following User Says Thank You to hitman797 For This Useful Post: | ||
audiofeel (15-09-2023) | ||
|
#359
|
||||
|
||||
|
FMXInno Moments Updates: [2023-September-19]
Code:
What's New: * Added 'FSplashAnimated' with Sounds. * Updated 'FUserInfo'. * Updated 'ChatGPT': - The example has been updated. - Added a simple output. * Updated 'ISArcEx': - 'ISArcExReduceCalcAccuracy' is now straightforward. - The range of the factor has increased from 5 to 10 (1-10). - Factor = 1 means it delays the calculations of RemainingTime and Speeds by 0.25 seconds. - Factor = 2 -> delay by 0.50 seconds. - Factor = 3 -> delay by 0.75 seconds. - Factor = 4 -> delay by 1.00 seconds. - And so on. The first post has been updated. . Last edited by BLACKFIRE69; 14-07-2024 at 02:08. |
| The Following 5 Users Say Thank You to BLACKFIRE69 For This Useful Post: | ||
audiofeel (19-09-2023), Fak Eid (20-09-2023), hitman797 (19-09-2023), Lord.Freddy (19-09-2023), Tihiy_Don (19-09-2023) | ||
|
#360
|
||||
|
||||
|
Quote:
@hitman797, there's no need for any fixes with the Projection; it's working perfectly as intended. however, please keep in mind that you should call Projection(pjScreen) before Align(Client) to ensure proper functionality. For additional information, please refer to this: Creating a 2D Interface in a 3D App (FireMonkey 3D) . Last edited by BLACKFIRE69; 14-07-2024 at 02:08. |
| The Following 4 Users Say Thank You to BLACKFIRE69 For This Useful Post: | ||
![]() |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Windows Fluent Effects Standalone API - InnoSetup / VCL / FXM | BLACKFIRE69 | Conversion Tutorials | 0 | 15-11-2023 17:35 |
| Windows Phone Installer similar to razor12911's original design? | Kitsune1982 | Conversion Tutorials | 0 | 02-07-2020 13:04 |
| INDEX - Conversion Tutorial Index | Razor12911 | Conversion Tutorials | 5 | 11-06-2020 02:05 |
| Frequently Asked Questions | Joe Forster/STA | PC Games - Frequently Asked Questions | 0 | 29-11-2005 09:48 |