Autor Beitrag
Bob
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 19



BeitragVerfasst: Sa 17.06.06 20:39 
Nabend,

Ich würde gerne in mein Projekt en Pull-Down Menü einbauen,aber irgendwie versteh ich nicht wie das geht.Aus der Delphi-Hilfe werd ich zumindest net schlau...man soll zwischen den Zahlen von 0-9 wälen können...kann mir vllt jemand behilflich sein...?
Blawen
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 616
Erhaltene Danke: 33

Win XP, Vista, 7
Delphi 5 Prof., BDS 2006 Prof. RAD Studio XE
BeitragVerfasst: Sa 17.06.06 20:47 
user profile iconBob hat folgendes geschrieben:
Ich würde gerne in mein Projekt en Pull-Down Menü einbauen,aber irgendwie versteh ich nicht wie das geht.Aus der Delphi-Hilfe werd ich zumindest net schlau...man soll zwischen den Zahlen von 0-9 wälen können...kann mir vllt jemand behilflich sein...?

Was willst Du genau? Zumindest verstehe ich Deine Frage nicht ganz.

Ein normales MainMenu oder ein PopUpMenu ?

_________________
Es kompilert, wir können ausliefern.
Und es kompiliert wieder - das Update ist fertig - bitte 100 Euro ;-)
Bob Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 19



BeitragVerfasst: Sa 17.06.06 20:51 
ääähm..ich möchte so ein Menü wie rechts bei Quciklinks...da wo steht

Seit x Stunden....

Dass man dann eben zwischen Zahlen von 0-9 wählen kann wie rechts zwischen den Zahlen

Seit 1 2 3 4 5 8 12 15 20 24 36 48 Stunden ...ist das jetzt verständlicher?^^
DarkLord05
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 449

WinXP Pro SP2
Opera; Delphi 3 Pro; Delphi 2005, Turbo Delphi, dev-c++, Eclipse, MS Visual Studio .NET 2003, MS Visual C++
BeitragVerfasst: Sa 17.06.06 20:55 
Stichwort: Combobox
Bob Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 19



BeitragVerfasst: Sa 17.06.06 21:37 
Also ich hab ja jetzt die ComboBox drauf...und ich hab ma gesucht und herausgefunden,dass man mit ComboBox.Items.Add(), ComboBox.Items.Insert(), ComboBox.Items.Append() neue Einträge hinzugfügen kann.

Wenn cih jetzt jedoch in die ComboBox den Befehl ComboBox.Items.Add() wähle,erscheint die Fehlermeldung:

Record,Object oder Klassentyp erforderlich...?
Marco D.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: Sa 17.06.06 21:39 
Welchen Namen trägt deine ComboBox? Ich schätze mal ComboBox1 und nicht nur ComboBox.
ausblenden Delphi-Quelltext
1:
ComboBox1.Items.Add('bla');					

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
Bob Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 19



BeitragVerfasst: Sa 17.06.06 22:08 
Also des war falsch geschätzt... war nur Combobox...^^ hab aber die eins jetzt hinzugefügt...wenn ich in die Klammer jetzt das Wort oder eine Zahl einfüge dann deklariert des programm zwar,aber in der Comobox ist es nicht auswählbar,Fehlermeldung:

Variable combobox wurde deklariert,aber in 'TForm1.combobox1change nicht verwendet...
Marco D.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: Sa 17.06.06 22:46 
user profile iconBob hat folgendes geschrieben:
dann deklariert des programm zwar,aber in der Comobox ist es nicht auswählbar,Fehlermeldung:

Variable combobox wurde deklariert,aber in 'TForm1.combobox1change nicht verwendet...

Meinst du, es compiliert? ;) Wann kommt die Fehlermeldung? Oder compiliert es nicht und die Fehlermeldung tritt vorher auf? Dann poste doch mal den Code.

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
Bob Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 19



BeitragVerfasst: Sa 17.06.06 22:53 
Ja ich meine compiliert....^^ ich dachte des wär des gleiche,kenn mich mit den Begriffen net so aus :cry: ^^
Also des compiliert....und führt das Programm aus...aber da unten wo die Fehlermeldungen erscheint,steht eben dieser TEst wie cih eben gesagt hab...und man kann wie gesagt nichts auswählen in der Combobox
Blackheart666
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2195

XP
D3Prof, D6Pers.
BeitragVerfasst: Sa 17.06.06 22:59 
Wie gesagt, etwas Code würde helfen !
Aber ItemIndex würd Ich mal schätzen.
Bob Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 19



BeitragVerfasst: Sa 17.06.06 23:05 
Sry aber was denn für en Code...? Weil es compiliert ja und man kann des Programm optimal ausführen...nur man kann nix in der Box auswählen...
Blackheart666
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2195

XP
D3Prof, D6Pers.
BeitragVerfasst: Sa 17.06.06 23:13 
Wie möchtset Du denn ohne Code etwas programmieren ?
zb.
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
procedure TForm1.FormCreate(Sender: TObject);
begin
  ComboBox1.Items.Add('Eintrag 1');
  ComboBox1.Items.Add('Eintrag 2');
end;

procedure TForm1.ComboBox1Change(Sender: TObject);
begin
  If ComboBox1.ItemIndex = 0 then ShowMessage('Erster Eintrag');
  If ComboBox1.ItemIndex = 1 then ShowMessage('Zweiter Eintrag');
end;