Autor Beitrag
Obscure
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 19


Delphi 5
BeitragVerfasst: Do 05.07.07 21:03 
Guten abend Leute :-)

Ich hab ein kleines Problem. Bei Form.Create wird ein Bitbtn (btnzurliste) enabled := false gesetzt. Das Icon/BMP in meinem Button wird dann leider auch nicht angezeigt. Kann man das irgendwie einstellen, dass es trotzdem angezeigt wird?


Vielen Dank!
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10185
Erhaltene Danke: 1261

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Do 05.07.07 21:52 
Moin!

Das liegt daran, dass dein Bitmap zu wenig Kontrast enthält, um beim automatisch erzeugten Disabled-Bitmap ein Ergebnis zu bringen. Mögliche Lösung: einfach selbst mit einem Grafikprog ein entsprechendes Symbol ableiten (im Zweifel einfach entfärben und etwas Kontrast rausnehmen) und rechts neben das "normale" Bild in eine Datei, diese dann als Glyph laden; der Property-Editor erkennt normalerweise, dass das zwei sind (Anhand des H/V-Verhältnisses 2:1) und setzt .NumGlyphs auf 2. So wird dann im Enabled-Mode das linke und im Disabled-Mode das rechte Bild aus dem Bitmap verwendet. :idea:

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.
Obscure Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 19


Delphi 5
BeitragVerfasst: Do 05.07.07 22:08 
cool, ich werds gleich porbieren! danke schonmal