Autor Beitrag
JayK
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1013



BeitragVerfasst: Do 21.04.05 20:43 
Hallo,

weiß jemand wo man Komponenten wie LabeledEdit, nur als ComboBox oder was anderem, als Freeware herbekommt, bzw. wie man sie selbst schreibt?
Soweit ich weiß, sind solche bei den LMD-Tools bei, aber die kosten ja was :( .


Zuletzt bearbeitet von JayK am Sa 30.04.05 13:20, insgesamt 1-mal bearbeitet
JayK Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1013



BeitragVerfasst: Sa 30.04.05 13:19 
Okay,
nach einer Woche ohne jegliche neuen Beiträge kann ich ja mal ein bisschen was neues schreiben.
Ich glaub die Suche nach solchen Komponenten werde ich mal abblasen, hab keine solche Kompos gefunden mit Google, etc.

Also wie proggt man eine LabeledComboBox selbst?.
Kann mir wenigstens da einer weiterhelfen?

Ich werde auch mal schnell den Titel des Threads ändern...
hansa
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3079
Erhaltene Danke: 9



BeitragVerfasst: Sa 30.04.05 13:37 
Du mußt ein Label an die Combobox dranhängen. Aber ich sags gleich : das wird nicht einfach werden ! Brauchst Du weniger als 20 Comboboxen oder hast von Komponentenentwicklung keinen Plan, dann würde ichs vergessen. 8)

_________________
Gruß
Hansa
JayK Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1013



BeitragVerfasst: So 01.05.05 10:37 
user profile iconhansa hat folgendes geschrieben:
Du mußt ein Label an die Combobox dranhängen.
Das hat mir mein Vater dazu auch schon gesagt. Irgentwie müsste man die Top und Left des labels immer in Bezug auf die ComboBox setzen oder so? Könntest du mir bitte ein paar Sourcecode Beispiel posten?
bitte, bitte, bitte... ;)
user profile iconhansa hat folgendes geschrieben:
Aber ich sags gleich : das wird nicht einfach werden ! Brauchst Du weniger als 20 Comboboxen
Ich brauche bestimmt mehr als 20! :)
user profile iconhansa hat folgendes geschrieben:
oder hast von Komponentenentwicklung keinen Plan, dann würde ichs vergessen. 8)
Nun jaaaaaaa.... :? , aber irgentwann muss man sowas doch auch mal lernen, oder?
Wenn man immer nur gesagt kriegt: "Wenn du keine Ahnung hast, dann lass es sein.", wird man es ja nie können... :idea:
hansa
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3079
Erhaltene Danke: 9



BeitragVerfasst: So 01.05.05 13:00 
Lese das hier mal durch :

www.delphipraxis.net...ight=oop&start=0

Wenn du nur die Seitenanzahl des Threads siehst, dann wird dir wohl klar, warum ich dich gewarnt habe. Es gilt folgendes :

1. Es ist viel bequemer (auf kurze Sicht) notfalls 500 Labels und 500 Comboboxen auf ein 10-seitiges Pagecontrol zu ziehen, als mühsam die Materie zu lernen. So denkt bei weitem die Mehrzahl der Delphi-User.

2. In Foren ist auf wenig Hilfe zu hoffen, da fast keiner richtig weiß, was OOP ist, obwohl vielfach behauptet wird, das zu wissen. 8)

Deshalb:

3. Alles selber zusammenstückeln. Vernünftige Bücher für Dein Vorhaben kenne ich keines. IMHO ist nicht mal die Delphi-Hilfe dafür sehr brauchbar.

Suche mal hier : www.dsdt.info/ nach einem Tutorial. Da wird aus einem Panel eine Art Button gebaut. Wenn Du das enigermaßen verstanden hast, dann gehts eventuell weiter und zwar mit obigem Link.

_________________
Gruß
Hansa
JayK Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1013



BeitragVerfasst: Di 03.05.05 20:03 
Das Tutorial hab ich gefunden und gamcht: geschafft :) .
Thread in der DP hab ich mir durchgelesen und den Source des TRealEdit, oder wie es dann am Ende hieß angeguckt. War mehr oder weniger verständlich :| .
Ich hab mal probiert, das Ding einfach von TComboBox abzuleiten, aber dabei kommt das (siehe Anhang) heraus.
Kannst du mir noch weiterhelfen?
Einloggen, um Attachments anzusehen!
Motzi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2931

XP Prof, Vista Business
D6, D2k5-D2k7 je Prof
BeitragVerfasst: Di 03.05.05 20:58 
@Hansa: warum rückst du nicht einfach den Source unsres LabeledEdit raus? Dann braucht er im Prinzip nur das Edit auf ne Combobox umändern und fertig..!

_________________
gringo pussy cats - eef i see you i will pull your tail out by eets roots!
hansa
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3079
Erhaltene Danke: 9



BeitragVerfasst: Di 03.05.05 21:53 
Ja, gute Idee. Ich mache das mal. Mittlerweile kann ich ja was anhängen. Aber nur, wenn funktionierender weiterentwickelter Code auch hier landet. :lol:
Einloggen, um Attachments anzusehen!
_________________
Gruß
Hansa
Motzi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2931

XP Prof, Vista Business
D6, D2k5-D2k7 je Prof
BeitragVerfasst: Di 03.05.05 22:02 
Sehr schön! ;)
Ist die Version jetzt eigentlich soweit fertig und funktionierend? Oder gibts noch irgendwelche bekannten Probleme..?

_________________
gringo pussy cats - eef i see you i will pull your tail out by eets roots!
hansa
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3079
Erhaltene Danke: 9



BeitragVerfasst: Di 03.05.05 22:07 
Die geht schon. Kein Fehler bekannt.

_________________
Gruß
Hansa
JayEff
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2971

Windows Vista Ultimate
D7 Enterprise
BeitragVerfasst: Di 03.05.05 23:10 
Solche Komponenten gibt es aber. hab eine gefunden. bin mir nicht sicher wo, glaube bei torry.net... sie heist: TLabeledComboBox und liegt bei mir unter der Registerkarte Jedi Componentes ... das sollte reichen, oder? ;)

_________________
>+++[>+++[>++++++++<-]<-]<++++[>++++[>>>+++++++<<<-]<-]<<++
[>++[>++[>>++++<<-]<-]<-]>>>>>++++++++++++++++++.+++++++.>++.-.<<.>>--.<+++++..<+.
hansa
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3079
Erhaltene Danke: 9



BeitragVerfasst: Mi 04.05.05 00:32 
user profile iconJayEff hat folgendes geschrieben:
... sie heist: TLabeledComboBox und liegt bei mir unter der Registerkarte Jedi Componentes ... das sollte reichen, oder? ;)


Leider nicht. Weder sagst Du wo die her ist, nicht mal wer sie gemacht hat. 8) Torry ? na gut. Rest : siehe Thread. Es geht auch anders.

_________________
Gruß
Hansa
JayK Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1013



BeitragVerfasst: Mi 04.05.05 15:43 
@hansa: Muss man bei dem Code das ganze einfach nur noch von TCustomComboBox oder so ableiten oder ist da noch was anderes zu tun?

@JayEff: Ich finde es auf diesewr Seite nicht. Durch die VCL Sparte kann ich auch überhaupt nbicht navigieren, denn die Java-Dingsbums funktionieren gar nicht.
JayEff
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2971

Windows Vista Ultimate
D7 Enterprise
BeitragVerfasst: Mi 04.05.05 16:21 
also ich hab leider keine ahnung wo ich sie her hab. was ich meinte war: zu SELBST GOOGLEN reicht das oder? anscheinend nicht, ich google mal für euch...
Torry:
www.torry.net/pages....bf611c3ffd55ea19715a unter "J": Jedi Components

torry.net hat folgendes geschrieben:
Jedi Components v1
By Enio Rodrigo Marconcini. Jedi Components is a package created with Delphi 6 and compatible with Delphi 7.

2 components are Data-Aware:
DBLabeledEdit: inherit the class TDBEdit with the functionaly of LabeledEdit;
DBLabeledComboBox: inherit the class TDBLookupComboBox with the functionaly of LabeledEdit.

3 Non Data-Aware:
ColorLabeledEdit: woks like LabeledEdit, but has properties to change color on focus;
LabeledComboBox: its like the DBLabeledComboBox but dont are data-aware; inherit the class TComboBox;
LabeledDateTimePicker: inherits the class TDateTimePicker, but has the functionaly of LabeledEdit.


Fully functional
Source: Included


Das reicht jetzt aber oder? xD

_________________
>+++[>+++[>++++++++<-]<-]<++++[>++++[>>>+++++++<<<-]<-]<<++
[>++[>++[>>++++<<-]<-]<-]>>>>>++++++++++++++++++.+++++++.>++.-.<<.>>--.<+++++..<+.
Motzi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2931

XP Prof, Vista Business
D6, D2k5-D2k7 je Prof
BeitragVerfasst: Mi 04.05.05 16:41 
Das LabeledEdit, das Hansa und ich damals zusammen gemacht haben (eben das, das obenangehängt ist), bietet aber wesentlich mehr Flexibilität, als das "normale" LabeledEdit von Delphi...

_________________
gringo pussy cats - eef i see you i will pull your tail out by eets roots!
hansa
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3079
Erhaltene Danke: 9



BeitragVerfasst: Mi 04.05.05 18:33 
Das Delphi-LabeledEdit ist zwar schon gut, aber es hat folgende Nachteile : D6 ist gefordert. Hat aber nicht jeder. Ich habe die Standardeinstellungen verändert. Das Label ist standardmäßig links vom Edit. Dann sind einige Typ-Überprüfungen enthalten. Somit ist es möglich damit Integer und reals richtig zu behandeln. Insbesondere die Eingaben (z.B. nur Zahlen oder nur ein Dezimalzeichen) werden berücksichtigt. Nun gut, wie wäre es das jetzt auszuweiten auf eine Combobox ? Warum nicht.

_________________
Gruß
Hansa
JayK Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1013



BeitragVerfasst: Mi 04.05.05 18:38 
Also, das Resultat ist in etwa das selbe wie oben, wenn man einfach nur die Kompo von TComboBox ableitet.

Aber ich hab bemerkt, dass man das Label wie ein normales handhaben kann nur, dass es immer "mit dem Edit mit springt". Das finde ich echt gut ;) .

Ich werd jetzt erstmal die labeledEdits von hansa, so wie sie sind (als Edit) installieren :) .
hansa
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3079
Erhaltene Danke: 9



BeitragVerfasst: Mi 04.05.05 18:58 
user profile iconJayK hat folgendes geschrieben:
...Aber ich hab bemerkt, dass man das Label wie ein normales handhaben kann nur, dass es immer "mit dem Edit mit springt". Das finde ich echt gut ;) .


Und genau darum ging es eigentlich : ich wollte weder herrenlose Labels haben, noch dubiose Edits. Und die DB-Anbindung mußte auch sein. Von dem Abfangen von Eingabefehlern ganz zu schweigen. Mindestens 3 neue Komponenten müßten aufzufinden sein.

_________________
Gruß
Hansa
JayK Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1013



BeitragVerfasst: Mi 04.05.05 20:14 
Ich habe noch einen Bug in euren llbEdits gefunden:
Wenn ich mit dem markierten Label die Eigenschaft Position auf Left stelle und danach auf Right ändern will, passiert nichts.
Dasselbe in grün für Above und Below, also immer das Gegenüberliegende von der aktuellen Position wird nicht gemacht.

EDIT: Was muss man denn nun machen, damit das mit der ComboBox klappt?
hansa
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3079
Erhaltene Danke: 9



BeitragVerfasst: Mi 04.05.05 20:41 
Du hast tatsächlich einen Bug entdeckt. Das Label wird nicht neu gezeichnet. Zumindest ich brauche das Label aber sowieso nur links. :P Insofern würde es auf der Hand liegen die Position zumindest im OI zu eliminieren. Muß mal sehen, was man da machen kann. Was die LabeledComboBox angeht : eine bessere Steilvorlage wie diese hier, wirst Du kaum finden.

_________________
Gruß
Hansa