Autor Beitrag
Newhack
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 38



BeitragVerfasst: Sa 14.02.04 19:43 
Kann man die form der buttons mit ändern?
also z.b. einen button malen und den dan einsetzen?

Moderiert von user profile iconDeCodeGuru: Topic verschoben
JJ
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 100

Windows XP 64 bit!
delphi 5
BeitragVerfasst: So 15.02.04 01:02 
klar ...
benutz doch einfach speedbuttons .. in die kannst du wie in ein image bilder einladen ...
und die funzen wie normale buttons ...
aber benutz für so kleine fragen doch bitte das nächste mal die suchfunktion oben rechts ...

_________________
Hallo!
Newhack Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 38



BeitragVerfasst: So 15.02.04 10:08 
ok danke

das mit der suche wird gemacht
rokdd
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 329

Win XP
D6
BeitragVerfasst: So 15.02.04 10:29 
hallo,
Newhack hat folgendes geschrieben:
also z.b. einen button malen und den dan einsetzen?


was meinst du damit ein button zu malen? ich verwende zum beispiel auch als ersatz für buttons, tpanels (die kann man auch mit tshape kombinieren)

Rokdd
Newhack Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 38



BeitragVerfasst: Mo 16.02.04 11:37 
kann man auch runde buttons machen??
rokdd
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 329

Win XP
D6
BeitragVerfasst: Mo 16.02.04 11:44 
letztendlich kannst du alle formen benutzen die tshape besitzt: rundes rechteck,rechteck, elipse,...
Du must dazu das tshape unter das panel liegen. das panel darüber dann so einstellen so dass es die gleiche farbe wie das tshape darunter hat und auch rein passt. das tpanel ist dann dein button(onclick event)!

rokdd
Newhack Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 38



BeitragVerfasst: Mo 16.02.04 12:10 
ist das ein extra programm oder so?
rokdd
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 329

Win XP
D6
BeitragVerfasst: Mo 16.02.04 12:21 
bei mir nicht. was hast du denn für eine Delphiversion???

Rokdd
Newhack Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 38



BeitragVerfasst: Mo 16.02.04 13:02 
delphi6 enterprise
Chatfix
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1583
Erhaltene Danke: 10

Win 10, Win 8, Win 7, Win Vista, Win XP
VB.net (VS 2015), MsSQL (T-SQL), HTML, CSS, PHP, MySQL
BeitragVerfasst: Mo 16.02.04 13:14 
D6 müsste die Shapes und Panels mitbringen *gg*

Panels findest du unter "Standard"
Shapes sind unter "Zusätzlich"

_________________
Gehirn: ein Organ, mit dem wir denken, daß wir denken. - Ambrose Bierce
Newhack Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 38



BeitragVerfasst: Mo 16.02.04 13:58 
aha und wie geht das jetzt? :oops:
minnime
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 171

Win 7
Delphi Prism 2011, C# (VS 2010)
BeitragVerfasst: So 04.04.04 01:50 
rokdd hat folgendes geschrieben:
das panel darüber dann so einstellen so dass es die gleiche farbe wie das tshape darunter hat und auch rein passt. rokdd


Du meinst wohl, das Panel soll Transparent gemacht werden (mit AlphaBlend := True), sonst sieht amn nur das Panel nicht die Tshape.
Weiteres Problem, der "Button" ist dann nicht wirklich Rund, er sieht nur so aus und das PAnel kann ich wohl nicht rund machen. Was wenn der Button wirklich rund sein soll. Dabei fällt mir ein, man könnte doch gleich das OnClick Ereignis des Tshape nehmen, dann kann man sich das Panel sparen.
NetZwerg
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 448

Slackware 10.1
Kylix 3, D5 Standard
BeitragVerfasst: So 04.04.04 08:30 
an deiner stelle würde ich mir mal ein Anfänger-Tutorial reinziehen... www.delphi-treff.de hat eins, das ist ganz gut (finde ich)!

Shapes haben keinen OnClick Effekt, zumindest bei delphi 3, 5 und 6! Man müsste das ganze so machen:

OnMousUp wird ein Boolean auf true gesetzt, OnMouseDown auf false. Ein timer kontrolliert ob gekilckt wird. Wenn der entsprechende boolean auf true ist, sobald geklickt wird, passiert die aktion.

_________________
"Manche Leute drücken nur deshalb ein Auge zu, damit sie besser zielen können."
Billy Wilder, amer. Filmregisseur
rokdd
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 329

Win XP
D6
BeitragVerfasst: So 04.04.04 09:57 
minnime hat folgendes geschrieben:
rokdd hat folgendes geschrieben:
das panel darüber dann so einstellen so dass es die gleiche farbe wie das tshape darunter hat und auch rein passt. rokdd


Du meinst wohl, das Panel soll Transparent gemacht werden (mit AlphaBlend := True), sonst sieht amn nur das Panel nicht die Tshape.
.


nein das meinte ich nciht. man legt das panel über das tshape aber so das das tpanel, den rand des tshapes nicht überdeckt.

rokdd
NetZwerg
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 448

Slackware 10.1
Kylix 3, D5 Standard
BeitragVerfasst: So 04.04.04 10:41 
es gibt auch im internet so praktische komponente mit runden buttons und so weiter... einfach mal googlen!

_________________
"Manche Leute drücken nur deshalb ein Auge zu, damit sie besser zielen können."
Billy Wilder, amer. Filmregisseur
SuperS
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 102

Win XP Home, Win XP Prof, Win 98

BeitragVerfasst: So 04.04.04 11:13 
Tu doch ein Bild über die Buttons :D
Luzifer666
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 41

Win XP
D6 Personal, D7 Personal
BeitragVerfasst: So 04.04.04 11:27 
Hab ein wenig gegoogelt und gleich mal ein paar nette runde Buttons gefunden :) :

Bei Bedarf: www.delphi-tutorials...ponenten_buttons.htm

_________________
I can see unknown errors. 8[
Cya & enjoy!
rokdd
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 329

Win XP
D6
BeitragVerfasst: So 04.04.04 12:45 
wenn du ein bild drüberlegst musst du die bilder immer extra zum Programm mitgeben. ich weiß nicht inwieweit das für dich wichtig ist... außerdem wird das package bei dem verzicht auf bilder kleiner. keine ahnung wie das bei dem link von luziffer666 ist, aber wenn du selber bilder machen willst, würdest du dann problem schon haben.

robert