Autor Beitrag
mimi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 3458

Ubuntu, Win XP
Lazarus
BeitragVerfasst: Do 24.04.03 20:18 
Hallo,
ich möchte gerne die Grafiken der Komponenten aus so genaten Skins dateien laden wie geht das ?
habe bis jetzt noch keine Freeware Komponenten gefunden dafür, auch sonst fällt mir dafür nichts ein

_________________
MFG
Michael Springwald, "kann kein englisch...."
Da_Knuddelbaer
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 485



BeitragVerfasst: Fr 25.04.03 09:35 
Meinst du jetzt in einen deiner Programme oder in Delphi die Kompo-bildchen??? :roll:
mimi Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 3458

Ubuntu, Win XP
Lazarus
BeitragVerfasst: Fr 25.04.03 20:05 
ich meine in MEINEM PROGRAMME

_________________
MFG
Michael Springwald, "kann kein englisch...."
Da_Knuddelbaer
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 485



BeitragVerfasst: Fr 25.04.03 20:17 
Hmm, nen bissel genauer könnts schon noch sein...
was für Kompos meinst du denn so? Menu beispielsweise doch wohl kaum... welche Kompos haben den überhaupt Bildchen???
mimi Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 3458

Ubuntu, Win XP
Lazarus
BeitragVerfasst: Fr 25.04.03 20:40 
OK:
kennst du WinAmp ?
dort wird die oberfläche aus einer datei geladen, genau so wollte ich es auch haben...

_________________
MFG
Michael Springwald, "kann kein englisch...."
Da_Knuddelbaer
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 485



BeitragVerfasst: Fr 25.04.03 20:45 
AH! *bing* Jetzt versteh' ich!!!

Ich werd mal direkt drüber nachdenken :)
Weil bisher konnt ich mir da nicht wirklich was drunter vorstellen...
mimi Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 3458

Ubuntu, Win XP
Lazarus
BeitragVerfasst: Fr 25.04.03 21:05 
ok, hätte ich gleich nehmen sollen als beispiel ;)

_________________
MFG
Michael Springwald, "kann kein englisch...."
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Sa 26.04.03 10:20 
www.tmssoftware.com > SkinFactory Komponenten Pack !

_________________
In the beginning was the word.
And the word was content-type: text/plain.
maxk
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1696
Erhaltene Danke: 1

Win XP, Debian Lenny
Delphi 6 Personal
BeitragVerfasst: Sa 26.04.03 10:28 
mimi hat folgendes geschrieben:
kennst du WinAmp ?
dort wird die oberfläche aus einer datei geladen, genau so wollte ich es auch haben...
Nicht vollkommen richtig :!: WinAmp entpackt diese SkinDatei (nix anderes als eine ZIP Datei) ins TEMP-Verzeichnis und liest diese Dateien dann aus.

_________________
Ein Computer wird das tun, was Du programmierst - nicht das, was Du willst.
fcg
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 360

WinXP
D3 Prof, D6 Pers
BeitragVerfasst: Sa 26.04.03 15:13 
so mache ich das auch bei meinen progs.

_________________
.: Wer für alles offen ist, kann nicht ganz dicht sein! :.
mimi Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 3458

Ubuntu, Win XP
Lazarus
BeitragVerfasst: Mo 28.04.03 15:42 
genau so was will ich haben...

_________________
MFG
Michael Springwald, "kann kein englisch...."
Aya
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1964
Erhaltene Danke: 15

MacOSX 10.6.7
Xcode / C++
BeitragVerfasst: Do 01.05.03 16:29 
Hi,

einfach dein Programm aus vielen vielen TImages zusammenbasteln... klappt wunderbar ;)
Es ist zwar bei manchen Komponenten recht umständlich (z.B. bei ner ComboBox oder nem MainMenü), aber machbar ist auf diese art und weise ALLES.. :)

Au'revoir,
Aya~

_________________
Aya
I aim for my endless dreams and I know they will come true!
tommie-lie
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 4373

Ubuntu 7.10 "Gutsy Gibbon"

BeitragVerfasst: Do 01.05.03 19:59 
Viele TImages?
Wieso einen Wrapper für einen Wrapper bauen? Gleich eigene Kompos vom TCustomControl ableiten und selber zeichnen und die Messages handlen. ;-)
Aber mit weniger Arbeit verbunden ist natürlich eine Fremdkompo.

_________________
Your computer is designed to become slower and more unreliable over time, so you have to upgrade. But if you'd like some false hope, I can tell you how to defragment your disk. - Dilbert


Zuletzt bearbeitet von tommie-lie am Fr 02.05.03 19:47, insgesamt 1-mal bearbeitet
mimi Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 3458

Ubuntu, Win XP
Lazarus
BeitragVerfasst: Fr 02.05.03 14:41 
ich habe mal davon gehört das die grafik angaben und so in RES dateien gespeichert sind, kann man die nicht einfach ändern ?
@tommie-lie:
könntes du mal bitte ein beispiel geben ?

_________________
MFG
Michael Springwald, "kann kein englisch...."
tommie-lie
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 4373

Ubuntu 7.10 "Gutsy Gibbon"

BeitragVerfasst: Fr 02.05.03 16:55 
Die "Grafiken" werden nicht in Ressourcen gespeichert, weil es keine Grafiken sind. Sie werden vom Fenstermanager (meistens Explorer.exe bei Windows-Systemen) gezeichnet, und der schreibt vor wie das Ding aussieht.

Ein Beispiel mit einer abgeleiteten Klasse habe ich nicht. Du musst halt deine Klasse erstellen (zum Beispiel TmimisButton ;-) ) und dann dich so verhalten, wie eine Komponente. OnPaint abfangen, deine eigenen Bilder zeichnen (auf den Canvas) Regions setzen (bei nicht-rechtwinkligen Buttons) usw. Eben selbst die gesamte Komponente erzeugen. Aya hätte (wenn ich das richtig verstanden habe, das was er mir damals mal erklärt hat und was er eben gesagt hat), dann würde er eine Klasse erzeugen, die im Create ein TImage erzeugt und auf dessen Canvas zeichnet. Da TCustomControl schon einen Canvas (und ein Handle) hat, kannst du statt einer Instanz des TImages auch direkt ein TCustomControl nehmen.

_________________
Your computer is designed to become slower and more unreliable over time, so you have to upgrade. But if you'd like some false hope, I can tell you how to defragment your disk. - Dilbert


Zuletzt bearbeitet von tommie-lie am Fr 02.05.03 19:50, insgesamt 1-mal bearbeitet
Aya
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1964
Erhaltene Danke: 15

MacOSX 10.6.7
Xcode / C++
BeitragVerfasst: Fr 02.05.03 19:36 
huhu,

ein TWinControl hat ein Canvas??? Wär mir aber neu *guckt misstrauisch*
Kann mich auch täuschen grad, bin mir aber ziemlich sicher... ;) (Hab leider kein Delphi zum testen *seufzt*)

Für nen Canvas würd ich von TGraphicControl ableiten, oder halt dem WinControl nen Canvas verpassen, bzw dort mit API befehlen draufzeichnen.

Au'revoir,
Aya~

_________________
Aya
I aim for my endless dreams and I know they will come true!
tommie-lie
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 4373

Ubuntu 7.10 "Gutsy Gibbon"

BeitragVerfasst: Fr 02.05.03 19:46 
Hmm, du verunsicherst mich auch...
Moment...
Mist! Hab' nachgeschaut und habe mich tatäsclich mal geirrt. TCustomControl muss es natürlich sein. Das war das Ding mit dem Canvas und Handle...

TWinControl hab' ich natürlich nie gesagt *schnell alle Beweise verwisch* :mrgreen:

_________________
Your computer is designed to become slower and more unreliable over time, so you have to upgrade. But if you'd like some false hope, I can tell you how to defragment your disk. - Dilbert
mimi Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 3458

Ubuntu, Win XP
Lazarus
BeitragVerfasst: Sa 03.05.03 22:50 
lol.... könntet ihr mir mal bitte ein beispiel geben wie ich das anstellen soll ?
kann mir irgenwie nichts darunter vorstellen.

_________________
MFG
Michael Springwald, "kann kein englisch...."