Autor Beitrag
faboulus
Hält's aus hier
Beiträge: 5



BeitragVerfasst: Di 20.03.07 20:48 
wir programmieren in der schule ein ufo spiel, funktion ist für mein problem nicht relevant. hier erstmal ein bild, wom mein problem deutlich wird

wochenendetl.wo.funpic.de/ufogame.JPG

naja, die bmps auf den bitbtn rechts und links werden so abgeschnitten angezeit. NumGlyph ist auf 1. aber es klappt nicht. Die bilder werden erst beim draufklicken angezeigt. aso und die bilder sind auf unsichtbaren bitbtns drauf und werden von denen sozusagen geladen.

einer ne ahnung was da net stimmt? mein lehrer hat auch nich wirklich ne ahnung
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10183
Erhaltene Danke: 1256

W10ent
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Di 20.03.07 20:52 
Moin und :welcome: im Forum!

Die transparente Farbe der Glyphs wird durch die Farbe des Pixels links/oben (glaub ich :gruebel:) vorgegeben. Liegt´s vielleicht daran? :nixweiss:

Ansonsten pack doch mal das Projekt (ohne die EXE) als ZIP hier in den Anhang, sonst raten wir doch eh nur... :P

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.
rizla
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 417
Erhaltene Danke: 2

XP
FPC mit Lazarus
BeitragVerfasst: Di 20.03.07 20:56 
@narses: nicht ganz, es ist links unten ;)

grüße
:r!a:

_________________
if you have what they want - they'll find a way to take it (bruce sterling)
WOW - 10 JAHRE Mitglied beim Delphi-Forum. Wie die Zeit vergeht, Freunde.
faboulus Threadstarter
Hält's aus hier
Beiträge: 5



BeitragVerfasst: Di 20.03.07 22:54 
jop, hier isses, das meisterwerk :D
Einloggen, um Attachments anzusehen!
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10183
Erhaltene Danke: 1256

W10ent
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Mi 21.03.07 00:02 
Moin!

Ich habe mir den Code jetzt nicht intensiv angesehen, aber das hier ist sicherlich falsch:
ausblenden Delphi-Quelltext
1:
Knopf (platz).Glyph := BitBtn111.glyph ;					

So geht´s dann richtig:
ausblenden Delphi-Quelltext
1:
Knopf (platz).Glyph.Assign(BitBtn111.glyph) ;					

Da du im Programmverlauf die Bitmaps von den Buttons per Zuweisung von NIL entfernst, dürftest du damit auch gleich das Original-Glyph verwerfen, weil du nicht kopiert hast... :?

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.