Autor Beitrag
Mr.Anderson
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 29

Win XP Prof
D7
BeitragVerfasst: So 31.08.03 14:25 
Hallo
ist es möglich eine ScrollBox zu einer bestimmten Stelle zu scrollen, auch wenn die Eigenschaft AutoScroll aus ist?
falls ja wie lautet der sourcecode?

danke
FeG
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 77

Win XP Home, SuSE Linux 8.2 Prof
D3 Prof, D7 Prof
BeitragVerfasst: So 31.08.03 14:35 
Hi,

klar ist das möglich, wie sonst auch mit "ScrollBy()"...

MfG,
FeG
Mr.Anderson Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 29

Win XP Prof
D7
BeitragVerfasst: So 31.08.03 14:40 
hab schon probiert, aber wenn ich z.B.

if ComboBox.ItemIndex = 1 then ScrollBy(DBEdit1);

eingebe, will der nicht.
FeG
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 77

Win XP Home, SuSE Linux 8.2 Prof
D3 Prof, D7 Prof
BeitragVerfasst: So 31.08.03 14:43 
Mr.Anderson hat folgendes geschrieben:
hab schon probiert, aber wenn ich z.B.

if ComboBox.ItemIndex = 1 then ScrollBy(DBEdit1);

eingebe, will der nicht.


Was soll er da auch machen??

1. muss das wenn überhaupt dann ScrollBox1.ScrollBy() heißen
und
2. Hast du dir mal die Parameter angeguckt??? Die heißen "DeltaX" und "DeltaY" - da kannst du doch nicht ein Objekt übergeben... Du musst die gewünschte Veränderung in Pixeln übergeben!

MfG,
FeG
Mr.Anderson Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 29

Win XP Prof
D7
BeitragVerfasst: So 31.08.03 14:58 
ouch, anfängerblödheit tut so richtig weh, vielen dank für die hilfe, werde beim nächsten mal etwas mehr MEIN hirn arbeiten lassen. 8)