![]() |
nonvcl Font problem (ListBox)
Ich erstelle einen DefaultFont
Delphi-Quellcode:
TMListBox.hFont := DefaultFont;
Delphi-Quellcode:
und weise den der Listbox zu!
function TListBox.DefaultFont: HWND;
begin if hFDefault = 0 then hFDefault := GetStockObject(ANSI_VAR_FONT); Result := hFDefault; end;
Delphi-Quellcode:
SetCTLFont(TMListBox.hWnd, TMListBox.hFont);
Delphi-Quellcode:
Anwendung startet alles ok.
procedure TListBox.SetCTLFont(hCtL: HWND; Font: hFont);
begin SendMessage(hCtL, WM_SETFONT, Font, 1); end; Sobald ich nun die Listbox aufrufe kracht es. gruss Emil |
Re: nonvcl Font problem (ListBox)
Wenn es kracht, musst du deine IDE leiser Stellen. An welcher Stelle im Code strürzt das Programm ab? Bist du mal mit dem Debugger durchgegangen?
|
Re: nonvcl Font problem (ListBox)
Zitat:
Hat sich erledigt das stimmt schon so hatte ein problem in meiner DrawItem Function. gruss Emil |
Alle Zeitangaben in WEZ +1. Es ist jetzt 09:53 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