Autor Beitrag
moloch
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 451

Win 2000
D5 Prof
BeitragVerfasst: Mo 05.05.08 15:09 
Hallo,
ich brauchte farbige knöpfe und habe daher je knopf ein panel und ein label für die beschriftung genommen. klickereignis ist auf dem label. so jetzt möchte ich wissen ob es eine möglichkeit gibt das nachzuprogrammieren das es aussieht als würde ich einen knopf drücken.. oder andere elegante dinge die man machen kann um es mehr wie einen knopf wirken zu lassen..
gruß


Moderiert von user profile iconNarses: Topic aus Delphi Language (Object-Pascal) / CLX verschoben am Mo 05.05.2008 um 16:51
passiv
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 270

WIN XP Professional
Delphi 7 Enterprise, Java (Eclipse), Python 2.5, Django 1.1
BeitragVerfasst: Mo 05.05.08 15:11 
die einfachste variante wäre den onmousedown und onmouseup irgendwie den font zu ändern und das panel.style (oder so) umzudrehen. oder wie bei nem' echten button das label 1 nach unten und 1 nach rechts zu verschieben beim runter und wieder zurück beim rauf ...

_________________
Die Probleme, die es in der Welt gibt, sind nicht mit der gleichen Denkweise zu lösen, die sie erzeugt hat.
Albert Einstein
FinnO
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1331
Erhaltene Danke: 123

Mac OSX, Arch
TypeScript (Webstorm), Kotlin, Clojure (IDEA), Golang (VSCode)
BeitragVerfasst: Mo 05.05.08 15:35 
ein Panel hat auch die eigenschaft 'Caption'
du könntest das Label doch weglassen oder?
Jakob_Ullmann
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1747
Erhaltene Danke: 15

Win 7, *Ubuntu GNU/Linux*
*Anjuta* (C, C++, Python), Geany (Vala), Lazarus (Pascal), Eclipse (Java)
BeitragVerfasst: Mo 05.05.08 15:44 
user profile iconpassiv hat folgendes geschrieben:
das panel.style (oder so) umzudrehen


Du meinst sicher Panel.BevelOuter und Panel.BevelInner.
Hidden
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 2242
Erhaltene Danke: 55

Win10
VS Code, Delphi 2010 Prof.
BeitragVerfasst: Mo 05.05.08 16:19 
Warum nicht einen BitBtn, da kannst du ein Bild reinladen und musst dir nicths basteln?

_________________
Centaur spears can block many spells, but no one tries to block if they see that the spell is a certain shade of green. For this purpose it is useful to know some green stunning hexes. (HPMoR)
Jakob_Ullmann
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1747
Erhaltene Danke: 15

Win 7, *Ubuntu GNU/Linux*
*Anjuta* (C, C++, Python), Geany (Vala), Lazarus (Pascal), Eclipse (Java)
BeitragVerfasst: Mo 05.05.08 16:24 
BitBtn dürfte schwierig werden. Aber ich hab noch was in meiner Komponentenpalette gefunden: TColorButton, guck mal hier: delphi.about.com/od/...ance/l/aa061104a.htm.
moloch Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 451

Win 2000
D5 Prof
BeitragVerfasst: Di 06.05.08 06:54 
hey leute danke für die antworten..
colorbtn ist erst ab delphi 7 oder ?in 5 hab ich sowas nicht gefunden.. wäre jetzt auch zu aufwändig. .habe schon ziemlich viel gebaut.. ich denke mit bevelinner outer werde ich mal versuchen danke..
moloch Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 451

Win 2000
D5 Prof
BeitragVerfasst: Di 06.05.08 08:25 
also klappt super. das reicht mir so..
dank euch