Go Back   FileForums > Game Backup > PC Games > PC Games - CD/DVD Conversions > Conversion Tutorials

Reply
 
Thread Tools Display Modes
  #421  
Old 18-08-2023, 14:07
crachlow's Avatar
crachlow crachlow is offline
Registered User
 
Join Date: Nov 2017
Location: Eka-burg
Posts: 21
Thanks: 40
Thanked 10 Times in 6 Posts
crachlow is on a distinguished road
Cool

Quote:
Originally Posted by audiofeel View Post
@BLACKFIRE69
I understand that the scale function is in the process of being finalized and tested ... but could you at least temporarily fix this bug. When the user changes the desktop scale from the recommended system (i.e. 100%) then "FFolderTreeView" floats away and is not visible. This appeared on the latest dll.
--
But the good old "FDirBrowse" feels much better. And it scales correctly. Somehow it even became a shame for "FFluentDirBrowse".
Another quirk. If you hold the window with the mouse on a scale of 150 and try to move it, miracles happen. The window moves like a living thing across the screen.
Reply With Quote
The Following User Says Thank You to crachlow For This Useful Post:
audiofeel (18-08-2023)
Sponsored Links
  #422  
Old 18-08-2023, 15:07
hitman797's Avatar
hitman797 hitman797 is offline
Registered User
 
Join Date: Feb 2013
Location: Algeria
Posts: 168
Thanks: 462
Thanked 182 Times in 118 Posts
hitman797 is on a distinguished road
Smile

FMXInno SlideShow Example using:
  • FMXForm: FForm;
  • FMXTAB: FTabControl;
  • FMXTIMER: FTimer;
  • FMXITEM: array [1..20] of FTabItem;
  • FMXRECT: array [1..20] of FRectangle;
Attached Files
File Type: 7z SlideShow.7z (11.21 MB, 30 views)
Reply With Quote
The Following User Says Thank You to hitman797 For This Useful Post:
audiofeel (18-08-2023)
  #423  
Old 18-08-2023, 23:33
audiofeel's Avatar
audiofeel audiofeel is offline
Registered User
 
Join Date: Jan 2013
Location: Russia
Posts: 382
Thanks: 451
Thanked 883 Times in 319 Posts
audiofeel is on a distinguished road
Scale

Quote:
Originally Posted by crachlow View Post
Another quirk. If you hold the window with the mouse on a scale of 150 and try to move it, miracles happen. The window moves like a living thing across the screen.
what example do you use for the test? I'm fine with this example.
__________________
https://t.me/FMXInno

Last edited by audiofeel; 27-12-2023 at 11:07.
Reply With Quote
  #424  
Old 18-08-2023, 23:46
audiofeel's Avatar
audiofeel audiofeel is offline
Registered User
 
Join Date: Jan 2013
Location: Russia
Posts: 382
Thanks: 451
Thanked 883 Times in 319 Posts
audiofeel is on a distinguished road
Post Tab SShow

Quote:
Originally Posted by hitman797 View Post
FMXInno SlideShow Example using:
  • FMXForm: FForm;
  • FMXTAB: FTabControl;
  • FMXTIMER: FTimer;
  • FMXITEM: array [1..20] of FTabItem;
  • FMXRECT: array [1..20] of FRectangle;
@hitman797
Let's make the code a little smaller. It does not affect anything in my opinion except for the size of the script file. O = Optimization
Code:
var
  SSImg: String;
  i: Integer;
begin
  for i:= 1 to 20 do
  begin
    FMXITEM[i].FCreateEx(FMXTAB.Handle);
    FMXRECT[i].FCreate(FMXITEM[i].Handle);
    FMXRECT[i].Align(Client);
    SSImg:= 'Background' + IntToStr(i) + '.jpg';
    FMXRECT[i].FillPicture(ExtractAndLoad(SSImg), wmTileStretch);
  end;
Is it possible to place various other objects on top of the slide show? Won't they float with the picture?
__________________
https://t.me/FMXInno

Last edited by audiofeel; 19-08-2023 at 00:20.
Reply With Quote
The Following User Says Thank You to audiofeel For This Useful Post:
hitman797 (19-08-2023)
  #425  
Old 19-08-2023, 00:49
hitman797's Avatar
hitman797 hitman797 is offline
Registered User
 
Join Date: Feb 2013
Location: Algeria
Posts: 168
Thanks: 462
Thanked 182 Times in 118 Posts
hitman797 is on a distinguished road
Quote:
Originally Posted by audiofeel View Post
@hitman797
Let's make the code a little smaller. It does not affect anything in my opinion except for the size of the script file. O = Optimization
Code:
var
  SSImg: String;
  i: Integer;
begin
  for i:= 1 to 20 do
  begin
    FMXITEM[i].FCreateEx(FMXTAB.Handle);
    FMXRECT[i].FCreate(FMXITEM[i].Handle);
    FMXRECT[i].Align(Client);
    SSImg:= 'Background' + IntToStr(i) + '.jpg';
    FMXRECT[i].FillPicture(ExtractAndLoad(SSImg), wmTileStretch);
  end;
Is it possible to place various other objects on top of the slide show? Won't they float with the picture?
Other component can be added by adding TabControl2
and Handle TabControl2 in FMXForm.
and add objects to TabControl2.
Attached Images
File Type: png ss.png (1.04 MB, 128 views)
Attached Files
File Type: 7z SlideShow.7z (12.73 MB, 15 views)

Last edited by hitman797; 19-08-2023 at 01:34.
Reply With Quote
The Following User Says Thank You to hitman797 For This Useful Post:
audiofeel (19-08-2023)
  #426  
Old 19-08-2023, 14:01
hitman797's Avatar
hitman797 hitman797 is offline
Registered User
 
Join Date: Feb 2013
Location: Algeria
Posts: 168
Thanks: 462
Thanked 182 Times in 118 Posts
hitman797 is on a distinguished road
Smile FMXInno Viewport 3D Example

FMXInno Viewport 3D Example using:
  • FMXForm: FForm;
  • FMXTAB: array [1..4] of FTabControl;
  • FMXEDIT: FEdit;
  • FMXViewport3D: FViewport3D;
  • FMXLayer3D: array [1..2] of FLayer3D;
  • FMXFloatAnimation: array [1..4] of FFloatAnimation;
  • FMXButton: array [1..4] of FButton;

@BLACKFIRE69
HI, BLACKFIRE69
Thank you for the update.
Can you add BringToFront to "FLayer3D".
Attached Images
File Type: png SS2.png (1.33 MB, 121 views)
Attached Files
File Type: 7z Viewport 3D.7z (13.16 MB, 26 views)

Last edited by hitman797; 19-08-2023 at 14:06.
Reply With Quote
The Following User Says Thank You to hitman797 For This Useful Post:
audiofeel (19-08-2023)
  #427  
Old 19-08-2023, 21:44
audiofeel's Avatar
audiofeel audiofeel is offline
Registered User
 
Join Date: Jan 2013
Location: Russia
Posts: 382
Thanks: 451
Thanked 883 Times in 319 Posts
audiofeel is on a distinguished road
Quote:
Originally Posted by hitman797 View Post
FMXInno Viewport 3D Example using:
  • FMXForm: FForm;
  • FMXTAB: array [1..4] of FTabControl;
  • FMXEDIT: FEdit;
  • FMXViewport3D: FViewport3D;
  • FMXLayer3D: array [1..2] of FLayer3D;
  • FMXFloatAnimation: array [1..4] of FFloatAnimation;
  • FMXButton: array [1..4] of FButton;
@BLACKFIRE69
HI, BLACKFIRE69
Thank you for the update.
Can you add BringToFront to "FLayer3D".
@hitman797
Thanks for the work. Much better than I did. It turned out a little not what was expected. We took a wrong turn somewhere. We are waiting for the guru to clarify the situation.
__________________
https://t.me/FMXInno
Reply With Quote
The Following User Says Thank You to audiofeel For This Useful Post:
hitman797 (19-08-2023)
  #428  
Old 20-08-2023, 13:10
hitman797's Avatar
hitman797 hitman797 is offline
Registered User
 
Join Date: Feb 2013
Location: Algeria
Posts: 168
Thanks: 462
Thanked 182 Times in 118 Posts
hitman797 is on a distinguished road
3d delphi

Code:
    Form1: TForm;
    Viewport3D1: TViewport3D;
    Layer3D1: TLayer3D;
    FloatAnimation1: TFloatAnimation;
    Layer3D2: TLayer3D;
    FloatAnimation2: TFloatAnimation;
Code:
      object FloatAnimation1: TFloatAnimation
        Enabled = True
        Duration = 1
        Loop = True
        PropertyName = 'RotationAngle.X'
        StartValue = 0
        StopValue = 180
        OnProcess = FloatAnimation1Process
      end
      object FloatAnimation2: TFloatAnimation
        Enabled = True
        Duration = 1
        Loop = True
        PropertyName = 'RotationAngle.X'
        StartValue = 180
        StopValue = 360
        OnProcess = FloatAnimation2Process
      end
Code:
procedure TForm3.FloatAnimation1Process(Sender: TObject);
begin
  Layer3D2.BringToFront;
end;

procedure TForm3.FloatAnimation2Process(Sender: TObject);
begin
  Layer3D1.BringToFront;
end;
Attached Images
File Type: png Screenshot 2023-08-20 200727.png (202.8 KB, 90 views)
Attached Files
File Type: 7z 3D.7z (5.00 MB, 13 views)

Last edited by hitman797; 21-08-2023 at 18:26.
Reply With Quote
The Following User Says Thank You to hitman797 For This Useful Post:
audiofeel (20-08-2023)
  #429  
Old 24-08-2023, 03:34
hitman797's Avatar
hitman797 hitman797 is offline
Registered User
 
Join Date: Feb 2013
Location: Algeria
Posts: 168
Thanks: 462
Thanked 182 Times in 118 Posts
hitman797 is on a distinguished road
Talking Drive Media Type

Example-DiskList.iss
Code:
var
  FMXLabel  : FLabel;

procedure FMXInnoInit;
begin
  FMXLabel  := InitLabelHandle;
end;

procedure FMXDesigning;
begin
  FMXLabel.FCreate(FMXForm.Handle, '');
  if wGetDriveMediaType('D') = 1 then
  begin
   FMXLabel.Text('UNKNOWN');
  end;
  if wGetDriveMediaType('D') = 2 then
  begin
   FMXLabel.Text('HDD');
  end;
  if wGetDriveMediaType('D') = 3 then
  begin
   FMXLabel.Text('SSD');
  end;
  if wGetDriveMediaType('D') = 4 then
  begin
   FMXLabel.Text('SCM');
  end;
  FMXLabel.Left(50);
  FMXLabel.Top(50);
  FMXLabel.FontSetting('Segoe UI', 16, ALBlack);
end;
Attached Images
File Type: png Untitled 1.png (248.1 KB, 78 views)
Attached Files
File Type: 7z FMXInno_Examples_2.7z (7.10 MB, 17 views)
Reply With Quote
The Following 2 Users Say Thank You to hitman797 For This Useful Post:
audiofeel (24-08-2023), BLACKFIRE69 (26-08-2023)
  #430  
Old 24-08-2023, 07:27
audiofeel's Avatar
audiofeel audiofeel is offline
Registered User
 
Join Date: Jan 2013
Location: Russia
Posts: 382
Thanks: 451
Thanked 883 Times in 319 Posts
audiofeel is on a distinguished road
Quote:
Originally Posted by hitman797 View Post
Example-DiskList.iss
Code:
var
  FMXLabel  : FLabel;

procedure FMXInnoInit;
begin
  FMXLabel  := InitLabelHandle;
end;

procedure FMXDesigning;
begin
  FMXLabel.FCreate(FMXForm.Handle, '');
  if wGetDriveMediaType('D') = 1 then
  begin
   FMXLabel.Text('UNKNOWN');
  end;
  if wGetDriveMediaType('D') = 2 then
  begin
   FMXLabel.Text('HDD');
  end;
  if wGetDriveMediaType('D') = 3 then
  begin
   FMXLabel.Text('SSD');
  end;
  if wGetDriveMediaType('D') = 4 then
  begin
   FMXLabel.Text('SCM');
  end;
  FMXLabel.Left(50);
  FMXLabel.Top(50);
  FMXLabel.FontSetting('Segoe UI', 16, ALBlack);
end;
Something went wrong. does not correctly determine the type of disk
__________________
https://t.me/FMXInno
Reply With Quote
The Following User Says Thank You to audiofeel For This Useful Post:
hitman797 (24-08-2023)
  #431  
Old 24-08-2023, 09:33
crachlow's Avatar
crachlow crachlow is offline
Registered User
 
Join Date: Nov 2017
Location: Eka-burg
Posts: 21
Thanks: 40
Thanked 10 Times in 6 Posts
crachlow is on a distinguished road
Wink Type disk

You didn't look at the constants.
const
HDD_MEDIA_TYPE_UNKNOWN = $0000;
HDD_MEDIA_TYPE_HDD = $0003;
HDD_MEDIA_TYPE_SSD = $0004;
HDD_MEDIA_TYPE_SCM = $0005;
[IMG]
https://i.ibb.co/HC1cpzn/2023-08-24-202555.png
[/IMG]
Attached Files
File Type: 7z FMXInno_Examples_2.7z (7.22 MB, 32 views)
Reply With Quote
The Following 2 Users Say Thank You to crachlow For This Useful Post:
audiofeel (24-08-2023), BLACKFIRE69 (26-08-2023)
  #432  
Old 24-08-2023, 09:40
crachlow's Avatar
crachlow crachlow is offline
Registered User
 
Join Date: Nov 2017
Location: Eka-burg
Posts: 21
Thanks: 40
Thanked 10 Times in 6 Posts
crachlow is on a distinguished road
Quote:
Originally Posted by audiofeel View Post
Something went wrong. does not correctly determine the type of disk
And in general, you are not going to manually register the disks that may be in the system?
Reply With Quote
  #433  
Old 24-08-2023, 09:59
hitman797's Avatar
hitman797 hitman797 is offline
Registered User
 
Join Date: Feb 2013
Location: Algeria
Posts: 168
Thanks: 462
Thanked 182 Times in 118 Posts
hitman797 is on a distinguished road
Quote:
Originally Posted by crachlow View Post
You didn't look at the constants.
const
HDD_MEDIA_TYPE_UNKNOWN = $0000;
HDD_MEDIA_TYPE_HDD = $0003;
HDD_MEDIA_TYPE_SSD = $0004;
HDD_MEDIA_TYPE_SCM = $0005;
[IMG]
https://i.ibb.co/HC1cpzn/2023-08-24-202555.png
[/IMG]
Code:
var
  FMXLabel  : FLabel;

procedure FMXInnoInit;
begin
  FMXLabel  := InitLabelHandle;
end;

procedure FMXDesigning;
begin
  FMXLabel.FCreate(FMXForm.Handle, '');
  if wGetDriveMediaType('D') = 0 then
  begin
   FMXLabel.Text('UNKNOWN');
  end;
  if wGetDriveMediaType('D') = 3 then
  begin
   FMXLabel.Text('HDD');
  end;
  if wGetDriveMediaType('D') = 4 then
  begin
   FMXLabel.Text('SSD');
  end;
  if wGetDriveMediaType('D') = 5 then
  begin
   FMXLabel.Text('SCM');
  end;
  FMXLabel.Left(50);
  FMXLabel.Top(50);
  FMXLabel.FontSetting('Segoe UI', 16, ALBlack);
end;
Code:
var
  FMXLabel  : FLabel;

procedure FMXInnoInit;
begin
  FMXLabel  := InitLabelHandle;
end;

procedure FMXDesigning;
begin
  FMXLabel.FCreate(FMXForm.Handle, '');
  case wGetDriveMediaType('D') of
  0: FMXLabel.Text('UNKNOWN');
  3: FMXLabel.Text('HDD');
  4: FMXLabel.Text('SSD');
  5: FMXLabel.Text('SCM');
  end;
  FMXLabel.Left(50);
  FMXLabel.Top(50);
  FMXLabel.FontSetting('Segoe UI', 16, ALBlack);
end;
Reply With Quote
The Following User Says Thank You to hitman797 For This Useful Post:
audiofeel (24-08-2023)
  #434  
Old 24-08-2023, 11:00
audiofeel's Avatar
audiofeel audiofeel is offline
Registered User
 
Join Date: Jan 2013
Location: Russia
Posts: 382
Thanks: 451
Thanked 883 Times in 319 Posts
audiofeel is on a distinguished road
Quote:
Originally Posted by hitman797 View Post
Code:
var
  FMXLabel  : FLabel;

procedure FMXInnoInit;
begin
  FMXLabel  := InitLabelHandle;
end;

procedure FMXDesigning;
begin
  FMXLabel.FCreate(FMXForm.Handle, '');
  if wGetDriveMediaType('D') = 0 then
  begin
   FMXLabel.Text('UNKNOWN');
  end;
  if wGetDriveMediaType('D') = 3 then
  begin
   FMXLabel.Text('HDD');
  end;
  if wGetDriveMediaType('D') = 4 then
  begin
   FMXLabel.Text('SSD');
  end;
  if wGetDriveMediaType('D') = 5 then
  begin
   FMXLabel.Text('SCM');
  end;
  FMXLabel.Left(50);
  FMXLabel.Top(50);
  FMXLabel.FontSetting('Segoe UI', 16, ALBlack);
end;
Code:
var
  FMXLabel  : FLabel;

procedure FMXInnoInit;
begin
  FMXLabel  := InitLabelHandle;
end;

procedure FMXDesigning;
begin
  FMXLabel.FCreate(FMXForm.Handle, '');
  case wGetDriveMediaType('D') of
  0: FMXLabel.Text('UNKNOWN');
  3: FMXLabel.Text('HDD');
  4: FMXLabel.Text('SSD');
  5: FMXLabel.Text('SCM');
  end;
  FMXLabel.Left(50);
  FMXLabel.Top(50);
  FMXLabel.FontSetting('Segoe UI', 16, ALBlack);
end;
and if like this? even better...
Code:
procedure DiskListOnChange(Sender: TObject);
var
  S: String;
begin
  S := DirEdt.GetText;
  StringChange(S, ExtractFileDrive(S), DiskList.GetSelectedDisk);
  DirEdt.Text(S);
   case wGetDriveMediaType(S) of
   0: FMXLabel.Text('Unknown');
   3: FMXLabel.Text('HDD');
   4: FMXLabel.Text('SSD');
   5: FMXLabel.Text('SCM');
   end;
end;
__________________
https://t.me/FMXInno
Reply With Quote
The Following 3 Users Say Thank You to audiofeel For This Useful Post:
BLACKFIRE69 (26-08-2023), crachlow (24-08-2023), hitman797 (24-08-2023)
  #435  
Old 24-08-2023, 11:45
crachlow's Avatar
crachlow crachlow is offline
Registered User
 
Join Date: Nov 2017
Location: Eka-burg
Posts: 21
Thanks: 40
Thanked 10 Times in 6 Posts
crachlow is on a distinguished road
Quote:
Originally Posted by audiofeel View Post
and if like this? even better...
Code:
procedure DiskListOnChange(Sender: TObject);
var
  S: String;
begin
  S := DirEdt.GetText;
  StringChange(S, ExtractFileDrive(S), DiskList.GetSelectedDisk);
  DirEdt.Text(S);
   case wGetDriveMediaType(S) of
   0: FMXLabel.Text('Unknown');
   3: FMXLabel.Text('HDD');
   4: FMXLabel.Text('SSD');
   5: FMXLabel.Text('SCM');
   end;
end;
Well, what did you do?
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows Fluent Effects Standalone API - InnoSetup / VCL / FXM BLACKFIRE69 Conversion Tutorials 0 15-11-2023 18:35
Windows Phone Installer similar to razor12911's original design? Kitsune1982 Conversion Tutorials 0 02-07-2020 14:04
INDEX - Conversion Tutorial Index Razor12911 Conversion Tutorials 5 11-06-2020 03:05
Frequently Asked Questions Joe Forster/STA PC Games - Frequently Asked Questions 0 29-11-2005 10:48



All times are GMT -7. The time now is 04:19.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright 2000-2020, FileForums @ https://fileforums.com