Autor Beitrag
iPlayboy
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 43



BeitragVerfasst: Mi 16.01.08 19:34 
Hallo,

Kann ich in Delphi irendwie einstellen das er das Icon Transparent wiedergibt?

Hier seht ihr wie es grade ist....

user defined image
Mike19
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 256

Win XP, Vista, Win 7
Delphi 2005, Turbo Delphi
BeitragVerfasst: Mi 16.01.08 19:44 
Hallo,

Du müsstest Dein Problem schon etwas genauer schildern.

Gruß Micha
iPlayboy Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 43



BeitragVerfasst: Mi 16.01.08 19:48 
so sollte das Icon eigentlich aussehen :

user defined image
Xentar
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2077
Erhaltene Danke: 2

Win XP
Delphi 5 Ent., Delphi 2007 Prof
BeitragVerfasst: Mi 16.01.08 19:52 
Das Icon ist schon transparent.
Das, was da du da siehst, ist der Schatten.

Bei Icons wird soweit ich weiß die Farbe in der oberen linken Ecke (oder war es unten links?) als Transparent-color genommen. Und da die Farbe des Schattens leicht davon abweicht, wird dieser eben mit angezeigt.

Abhilfe: Icon bearbeiten, Schatten entfernen.
Mike19
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 256

Win XP, Vista, Win 7
Delphi 2005, Turbo Delphi
BeitragVerfasst: Mi 16.01.08 19:52 
Hallo,

ist ja gut und schön, wenn es immer so aussehen soll, ändere es. Soll es nach einer Eingabe, z.B. "OnClick" musst Du das deklarieren.

Gruß Micha
iPlayboy Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 43



BeitragVerfasst: Mi 16.01.08 19:54 
Uff so ein mist....das hab ich schon gemacht aber das sieht dann nichtmehr so gut aus....muss ich mir wohl andere icons raussuchen...

@Xentar

du bist nicht zufällig der macher von Xentare , oder ?
Xentar
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2077
Erhaltene Danke: 2

Win XP
Delphi 5 Ent., Delphi 2007 Prof
BeitragVerfasst: Mi 16.01.08 19:56 
Was für ein Ding? :D
Da mir das absolut nichts sagt, behaupte ich mal, nein ;)
elundril
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3747
Erhaltene Danke: 123

Windows Vista, Ubuntu
Delphi 7 PE "Codename: Aurora", Eclipse Ganymede
BeitragVerfasst: Mi 16.01.08 20:00 
auch ein tipp: Icon32 runterladen. Is ne "Image"-Komponente die Transparenz glaub ich unterstützt. Durch die OnClickfunktion kann man die auch zu Buttons umfunktionieren.

lg elundril

_________________
This Signature-Space is intentionally left blank.
Bei Beschwerden, bitte den Beschwerdebutton (gekennzeichnet mit PN) verwenden.
Xion
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
EE-Maler
Beiträge: 1952
Erhaltene Danke: 128

Windows XP
Delphi (2005, SmartInspect), SQL, Lua, Java (Eclipse), C++ (Visual Studio 2010, Qt Creator), Python (Blender), Prolog (SWIProlog), Haskell (ghci)
BeitragVerfasst: Mi 16.01.08 20:03 
am besten du nimmst statt icons einfach pngs, damit geht sowas problemlos

_________________
a broken heart is like a broken window - it'll never heal
In einem gut regierten Land ist Armut eine Schande, in einem schlecht regierten Reichtum. (Konfuzius)
iPlayboy Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 43



BeitragVerfasst: Mi 16.01.08 20:06 
user profile iconXion hat folgendes geschrieben:
am besten du nimmst statt icons einfach pngs, damit geht sowas problemlos
Das wäre sogar nochbesser ! Allerdings unterstützt Delphi doch nur BMP datein......oder sehe ich das falsch?
iPlayboy Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 43



BeitragVerfasst: Mi 16.01.08 20:11 
user profile iconiPlayboy hat folgendes geschrieben:
user profile iconXion hat folgendes geschrieben:
am besten du nimmst statt icons einfach pngs, damit geht sowas problemlos
Das wäre sogar nochbesser ! Allerdings unterstützt Delphi doch nur BMP datein

EDIT:

In einer ImageList

......oder sehe ich das falsch?



Sorry für doppelpost!!!!


Zuletzt bearbeitet von iPlayboy am Mi 16.01.08 20:18, insgesamt 1-mal bearbeitet
Xion
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
EE-Maler
Beiträge: 1952
Erhaltene Danke: 128

Windows XP
Delphi (2005, SmartInspect), SQL, Lua, Java (Eclipse), C++ (Visual Studio 2010, Qt Creator), Python (Blender), Prolog (SWIProlog), Haskell (ghci)
BeitragVerfasst: Mi 16.01.08 20:14 
von Haus aus schon (auch jpg soviel ich weiß). Es gibt aber eine geniale Komponente namens pngimage
pngdelphi.sourceforge.net/
damit kannst du pngs wie es dir passt in TImages laden (allerdings nur zur runtime).

_________________
a broken heart is like a broken window - it'll never heal
In einem gut regierten Land ist Armut eine Schande, in einem schlecht regierten Reichtum. (Konfuzius)
Yogu
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2598
Erhaltene Danke: 156

Ubuntu 13.04, Win 7
C# (VS 2013)
BeitragVerfasst: Mi 16.01.08 20:19 
Wenn du die Units richtig installierst, wird der Dateityp PNG auch in den Delphi Formular Designer eingefügt. Ich jedenfalls kann PNGs ganz einfach laden.
iPlayboy Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 43



BeitragVerfasst: Mi 16.01.08 20:29 
user profile iconYogu hat folgendes geschrieben:
Wenn du die Units richtig installierst, wird der Dateityp PNG auch in den Delphi Formular Designer eingefügt. Ich jedenfalls kann PNGs ganz einfach laden.


Kannst du mir erklären wie ich das den "richtig" installiere? Wäre echt klasse von dir...
du sprichst ja von den PNGDelphi richtig?
Yogu
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2598
Erhaltene Danke: 156

Ubuntu 13.04, Win 7
C# (VS 2013)
BeitragVerfasst: Mi 16.01.08 20:59 
user profile iconiPlayboy hat folgendes geschrieben:
du sprichst ja von den PNGDelphi richtig?

Ja, genau davon spreche ich. Und meines Wissens* nach habe ich nichts mehr gemacht, als die Units geöffnet und in Delphi auf "Komponente installieren..." geklickt. Dann werden die ganzen Komponenten etc. registriert, und in einem TOpenDialog von einem Image kannst du auch PNGs öffnen.

* Und mein Wissen habe ich eben bestätigt bekommen.
iPlayboy Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 43



BeitragVerfasst: Mi 16.01.08 22:31 
Ok hab das PNGDelphi installiert....

Allerdings versteh ich nicht wie ich das jetzt mit der Toolbar zusammen benuten kann :D

das Bild ist ja in der TBXToolbar , und die unterstützt ja keine .png's

nur Bitmap und Icon files.
Xion
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
EE-Maler
Beiträge: 1952
Erhaltene Danke: 128

Windows XP
Delphi (2005, SmartInspect), SQL, Lua, Java (Eclipse), C++ (Visual Studio 2010, Qt Creator), Python (Blender), Prolog (SWIProlog), Haskell (ghci)
BeitragVerfasst: Do 17.01.08 13:54 
hmmm, also ein Versuch wäre es das hier mal wert: Du versuchst das Bild zur runtime zu laden. Wenn das nicht geht musst du Wohl oder Übel Abschied von der ToolBar nehmen, wenn du pngs verwendest.

_________________
a broken heart is like a broken window - it'll never heal
In einem gut regierten Land ist Armut eine Schande, in einem schlecht regierten Reichtum. (Konfuzius)
elundril
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3747
Erhaltene Danke: 123

Windows Vista, Ubuntu
Delphi 7 PE "Codename: Aurora", Eclipse Ganymede
BeitragVerfasst: Do 17.01.08 14:06 
bei der mitgelieferten Toolbarkomponente kann man ja auch andere Komponenten reingeben. rb eine Combobox. kann man nicht auch bei TBX eine andere komponente, in deinem Fall ein Image, reingeben??

lg elundril

_________________
This Signature-Space is intentionally left blank.
Bei Beschwerden, bitte den Beschwerdebutton (gekennzeichnet mit PN) verwenden.
Yogu
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2598
Erhaltene Danke: 156

Ubuntu 13.04, Win 7
C# (VS 2013)
BeitragVerfasst: Do 17.01.08 17:40 
Wenn du das mit PNGs nicht mehr hinbekommst, kannst du auch deine PNGs mit IcoFX in ein ICO umwanden. Das Programm unterstützt sowohl alle Bildgrößen von 1x1 bis 255x255, als auch 32Bit-Bilder mit Alpha-Kanal. Du hast ja gesagt, ICO-Dateien kann deine Toolbar laden.
elundril
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3747
Erhaltene Danke: 123

Windows Vista, Ubuntu
Delphi 7 PE "Codename: Aurora", Eclipse Ganymede
BeitragVerfasst: Do 17.01.08 17:56 
ja aber die TBX unterstützt keine Transparenz. deswegen auch dieses Topic. :roll:

lg elundril

_________________
This Signature-Space is intentionally left blank.
Bei Beschwerden, bitte den Beschwerdebutton (gekennzeichnet mit PN) verwenden.