Thema: Delphi Regler gesucht

Einzelnen Beitrag anzeigen

Benutzerbild von s.h.a.r.k
s.h.a.r.k

Registriert seit: 26. Mai 2004
3.159 Beiträge
 
#8

AW: Regler gesucht

  Alt 4. Apr 2011, 17:07
Ich glaub, ich würde sowas fast selbst basteln. Idee: Leite einfach von TControl ab, dann hast eine graphische Zeichenfläche (oder war es TGraphicControl?! ) zur Verfügung. Ich würde da eine Verknüpfung zu einer TCustomImageList einbauen und noch eine "Mapping"-Property. Die Mapping-Property stellt die Verknüpfung von ImageIndex und einem internen Zustand her. Beispiel für die Auswahl einer Sound-Quelle:

Bild mit Schalter nach oben, Index 0 -> Status: Aus
Bild mit Schalter nach rechts, Index 1 -> Status: Radio
Bild mit Schalter nach unten, Index 2 -> Status: CD-Player
Bild mit Schalter nach links, Index 3 -> Status: PC

Dann hast du auch 100% Einfluss auf alle Teile. Aber ist halt etwas mehr Aufwand, als man evtl. haben will
»Remember, the future maintainer is the person you should be writing code for, not the compiler.« (Nick Hodges)
  Mit Zitat antworten Zitat