[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ScrollView EnsureVisible Direction?


Le 03/12/2024 à 20:23, Bruce Steers a écrit :
wiki for ScrollView.EnsureVisible
https://gambaswiki.org/wiki/comp/gb.qt4/scrollarea/ensurevisible <https://gambaswiki.org/wiki/comp/gb.qt4/scrollarea/ensurevisible>

Function *EnsureVisible* ( _X_ As Integer, _Y_ As Integer, _W_ As Integer, _H_ As Integer *[* , _Direction_ As Integer *]* ) As Boolean

Re. the last arg "Direction As Integer"

The mystery is what class constants is it looking for ?
Is it Align?
Align.Bottom / Top / Left / Right

I want to add it to the wiki
Respects
BruceS


It's a method of ScrollArea, not ScrollView.

The 'Direction' argument takes one of the following values:
- Scroll.Both to allows scrolling in all directions (the default).
- Scroll.Horizontal to only scroll horizontally.
- Scroll.Vertical to only scroll vertically.

Regards,

--
Benoît Minisini.


Follow-Ups:
Re: ScrollView EnsureVisible Direction?Bruce Steers <bsteers4@xxxxxxxxx>
References:
ScrollView EnsureVisible Direction?Bruce Steers <bsteers4@xxxxxxxxx>