Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   GUI-Design mit VCL / FireMonkey / Common Controls (https://www.delphipraxis.net/18-gui-design-mit-vcl-firemonkey-common-controls/)
-   -   Delphi Befehl Memo1.Scrollby(x,y) funkitoniert nicht! (https://www.delphipraxis.net/63425-befehl-memo1-scrollby-x-y-funkitoniert-nicht.html)

Elachiim 18. Feb 2006 18:14


Befehl Memo1.Scrollby(x,y) funkitoniert nicht!
 
Tag Leute!
Ich habe da ein Problem! Bei mir funktioniert der Befehl Memo1.Scrollby(x,y) nicht!
Der funktioniert bei mir weder bei ner ListBox, noch bei einem Memo Feld oder ValueListEditor.
Kann mir da jemand helfen?
Ich will ja nur auf Button-Klick die Scroll-Leiste hoch bzw. runter schieben!

Danke schon im Voraus für Antworten!

TStringlist 18. Feb 2006 18:54

Re: Befehl Memo1.Scrollby(x,y) funkitoniert nicht!
 
Mit den Api-Funktionen GetScrollInfo/SetScrollInfo sollte das aber in jedem Falle gehen.

Elachiim 21. Feb 2006 17:19

Re: Befehl Memo1.Scrollby(x,y) funkitoniert nicht!
 
Wie meinst du das? Ich habe noch nicht so viel Ahnung von Delphi!

TStringlist 21. Feb 2006 20:02

Re: Befehl Memo1.Scrollby(x,y) funkitoniert nicht!
 
Mit GetScrollInfo ermittelst du den Scroll-Zustand eines Controls (welches über Standard-Scrollbars verfügt und daher meist keine extra ScrollBar-Property besitzt). Und mit SetScrollInfo kannst du die Parameter im ScrollInfo dann je nach Bedarf geändert an das Control zurückschicken ...und woraufhin das Control gemäß dieser neuen ScrollInfo-Werte seinen Inhalt dann nach oben, unten, links o. rechts scrollt.


Alle Zeitangaben in WEZ +1. Es ist jetzt 02:38 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz