Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Delphi Checkbox Help

Empfohlene Antworten

Veröffentlicht

Hi Leute wollte mal für meine Kumpels und mcih ein ProgrammGUI schreiben sprich spätere Verlinkung zu anderen Datein bzw. Programmen nun habe ich ein Problem

Hier erstmal Pic zur Veranschaulichung

installergui4e830fc2jpg.jpg

Nun mein Problem weiß nicht wie ich es mache mit den checkboxen wenn ich auf Select all drücke soll er alle makieren (checken) und wenn Clear gedrückt wird alle uncheckn^^

procedure Tfrm_application.btn_allClick(Sender: TObject);

begin


end;


end.
bzw für Clear
procedure Tfrm_application.btn_clearClick(Sender: TObject);

begin


end;


end.

wäre echt nett wenn einer mir dabei helfen könnte danke mit grEEtz°°MrWurm

Mal aus dem Kopf:



procedure setCheckboxState(aChecked: Boolean);

var i: Integer;

begin

  // grpApplications ist die GroupBox mit den Applications 

  // bzw den Checkboxen

  for i:= 0 to grpApplications.Controlcount-1 do  

  begin

    if (grpApplication.controls[i] is TCheckbox) then

    begin

      (grpApplications.Controls[i] as TCheckbox).Checked:= aChecked;

    end;

  end;

end;

Wie gesagt, ist aus dem Kopf. Probier es mal aus.

Das ganze könntest du auch noch besser bzw unabhängiger machen, indem du den Container mit übergibst als Parameter...

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.