AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

Gestures für Windows

Ein Thema von Alex_ITA01 · begonnen am 5. Dez 2024 · letzter Beitrag vom 10. Dez 2024
 
Der schöne Günther

Registriert seit: 6. Mär 2013
6.199 Beiträge
 
Delphi 10 Seattle Enterprise
 
#11

AW: Gestures für Windows

  Alt 5. Dez 2024, 16:16
Hier einfach ein paar Buttons in eine Scrollbox geworfen.

Delphi-Quellcode:
program Project1;

uses
   System.SysUtils,
   Vcl.Forms,
   Vcl.Controls,
   Vcl.WinXPanels,
   Vcl.StdCtrls;

begin
   const form = TForm.Create(nil);

   const scrollBox = TScrollBox.Create(form);
   scrollBox.Parent := form;
   scrollBox.Align := TAlign.alClient;

   for var buttonIndex := 0 to Pred(100) do
      begin
         const button = TButton.Create(scrollBox);
         button.Caption := buttonIndex.ToString();
         button.Name := 'button' + button.Caption;
         button.Parent := scrollBox;
         button.Left := 10;
         button.Top := 10 + buttonIndex * 32;

         scrollBox.InsertControl(button);
      end;

   form.ShowModal();
end.
Und hier, wie das ganze als Video aussehen sollte:
Screenshot 2024-12-05 171204.jpg
https://imgur.com/a/G8BadjN
  Mit Zitat antworten Zitat
 


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 05:29 Uhr.
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz