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.

Empfohlene Antworten

Veröffentlicht

Ich habe mehrere Buttons, die aber alle ein und die selbe Funktion haben sollen. Ich kann nicht für alle den gleichen Quellcode nehmen und will daher nur EINE Funktion coden und die Buttons sollen diese dann aufrufen. ich habe dazu diese allgemeine Funktion erstellt:

void font()

{

Skript

}

In den Buttons steht dann:

void__.....(...)

{

font();

}

Warum geht das nicht?

Das steht alles in der PTexteditor.cpp. font() ist eine von mir egschriebene Funktion.

void font()

{

if (FontDialog1->Execute()) {

txt_eingabe->Font = FontDialog1->Font;

}

}

Und damit will ich es aufrufen:

void __fastcall TForm1::Schriftart1Click(TObject *Sender) /* das ist ein Button in der Symbolleiste */

{

font();

}

Beim kompilieren wird die Zeile mit font(); rot markiert und beim coden kommt die Fehlermeldung, dass void font() Fehler enthält. Noch Fragen?

Hallo,

Noch Fragen?

Ja. Du postest schliesslich nur unvollständige Bruchstücke Deines codes. Woher soll hier jemand wissen, was für ein "ding" beispielsweise FontDialog1 oder txt_eingabe sind? Der Compiler wird schon recht haben.

Nic

Hab selber die Lösung gefunden. Man muss das mit ActionList amchen und nicht ala Konsolen-Quellcode.

mal was adneres, wie markiere ich mit FinDialog den gefunden Text in meinem RichEdit-Textfeld? Ich meine, wie heißt die Eigenschaft von FindDialog1->.....;????

Erstelle ein Konto oder melde dich an, um einen Kommentar zu schreiben.

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.