Autor Beitrag
orakel
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 92

Win XP

BeitragVerfasst: Fr 20.02.04 15:56 
Hi,
ich hab schon wieder ein Problem mit der Toolbar, bei dem ich einfach nicht weiterkomme!:

Ich habe eine senkrechte ToolBare(Align ist Left). Wenn ich nun zur Laufzeit Buttons erstelle, erscheinen die aber nur in der ersten Zeile, sprich: ab dem 2. Button sind sie nicht mehr sichtbar.
Wie kann ich es machen, dass die Buttons nicht nebeneinander, sondern untereinander angeordnet werden??


Andi

_________________
Nicht verzagen, orakel fragen!
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Fr 20.02.04 17:13 
und musst die eigenschaft wrapable der toolbar auf true setzten und die eigenschaft wrap der buttons auch true setzten.
dann sollte es gehen !

_________________
In the beginning was the word.
And the word was content-type: text/plain.
orakel Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 92

Win XP

BeitragVerfasst: Fr 20.02.04 17:33 
Ähhm, ich habe gerade bemerkt, dass ich bisher gar keine ToolButtons, sonder normale Buttons erstellt habe.
Jetzt habe ich das ganze mit ToolButons versucht, das funkt aber nicht:
ausblenden Delphi-Quelltext
1:
var Btn: TToolButton;					

da bringt er mir schon die erste fehlermeldung.
Ich hätte dann so weiter gemacht:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
begin
Btn:=TToolButton.create(self);
...
end;


Warum erkennt Delphi TToolButton nicht an?

Ps: Trotzdem Danke erstmal!

_________________
Nicht verzagen, orakel fragen!
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Fr 20.02.04 23:14 
hast du die unit comctrls in der uses klausels ??

_________________
In the beginning was the word.
And the word was content-type: text/plain.
orakel Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 92

Win XP

BeitragVerfasst: Sa 21.02.04 14:15 
War ein anderes Problem:
Ich wollte in Unit 2 den Quelltext schreiben, die Toolbar war aber in Unit1 (Form1);
Danke

_________________
Nicht verzagen, orakel fragen!
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: So 22.02.04 10:42 
bitte

_________________
In the beginning was the word.
And the word was content-type: text/plain.