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

Hallo,

ist es möglich, ein Label zu formatieren.

Ich würde gern die Textgröße ändern und

wenn möglich das ganze noch fett machen.

Gruß

TripleD

Nein eine normale Beschriftung kannst du nicht formatieren.

Du kannst aber ein RichEdit eingabefeld machen.... und dass so formatieren dass man nicht mehr merkt dass es ein eingabefeld ist (z.b. Eingabe deaktivieren.... Rahmen weg..... Hintergrund grau!)

Und in dem RichEdit kannst du auch andere Schriften und Größen verwenden.

oder auch nur die schrift FETT machen.

Ciao SwordMaster

Danke erst mal für deine Hilfe.

Wie mach ich den Hintergrund grau?

Und geht das gante auch mit SetDlgItemText?

TripleD

Hi,

kannst du mir vieleicht ein Beispielcode zukommen lassen,

wie ich das ganze zu machen habe?

TripleD

Klar kann man. Man darf nur nicht die vorbelegte Steuerlement-ID (IDC_STATIC) verwenden, dann kann man mit GetDlgItem drankommen und dann SetFont benutzen.

Und wieder mal was dazugelernt.... :-)

@TribleD: wenn du in Google etwas suchst hättest auch selbst sehr schnell ein beispiel gefunden.

Aber ich habs sowieso mal ausprobiert weil ich das noch nie gemacht hab.

CWnd *wnd = GetDlgItem(IDC_TEXT);

CFont m_font;

m_font.CreateFont(20,0,0,0,FW_BOLD,FALSE,FALSE,0,ANSI_CHARSET,OUT_DEFAULT_PRECIS,

CLIP_DEFAULT_PRECIS,DEFAULT_QUALITY,DEFAULT_PITCH|FF_SWISS,

"Arial");

wnd->SetFont(&m_font);

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.