|
Home > Archive > Programming with dBASE > July 2005 > Scroll Grid Horizontally
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Scroll Grid Horizontally
|
|
| Roger Sauer 2005-07-11, 11:23 am |
| I have a multi-column grid that's wider than the notebook page it sits on, so it has a horizontal scrollbar. First two columns are locked. Trying to programmatically scroll the grid horizontally (using commands such as keyboard "{Ctrl-RightArrow}" or keyb
oard "{Crtl-End}") works sometimes but not all the time. Unlocking the columns seems to help but is not desired.
What's needed, I think, is a scroll() method like form/subform has or the appropriate Windows API call to accomplish the horizontal scrolling.
If anyone has this knowledge, I would appreciate hearing from you.
Thanks.
Roger Sauer
| |
| Ken Mayer [dBVIPS] 2005-07-11, 11:23 am |
| Roger Sauer wrote:
> I have a multi-column grid that's wider than the notebook page it sits on, so it has a horizontal scrollbar. First two columns are locked. Trying to programmatically scroll the grid horizontally (using commands such as keyboard "{Ctrl-RightArrow}" or ke
yboard "{Crtl-End}") works sometimes but not all the time. Unlocking the columns seems to help but is not desired.
>
> What's needed, I think, is a scroll() method like form/subform has or the appropriate Windows API call to accomplish the horizontal scrolling.
>
> If anyone has this knowledge, I would appreciate hearing from you.
Roger -- please follow the newsgroup guidelines and don't post the same
message in multiple newsgroups. Most folk who read these newsgroups read
all of them, not just a single one, and if someone has an answer,
posting in more than one newsgroup isn't going to get it faster than
posting in a single one.
Ken
--
/(Opinions expressed are purely my own, not those of dataBased
Intelligence, Inc.)/
*Ken Mayer* [dBVIPS]
/Golden Stag Productions/
dBASE at goldenstag dot net
http://www.goldenstag.net/GSP
http://www.goldenstag.net/dbase
| |
| Roger Sauer 2005-07-13, 8:23 pm |
| Success Report:
I noticed that the grid's horizontal slider was not returning to the leftmost ("home") position even though the grid display was. So I tried setting lockedColumns = 0 and sending keyboard "{Ctrl-Home}" before that "{Ctrl-End}". Worked when typed Ctrl-Home
, but not programmatically... until I inserted _app.executeMessages() after each of the keyboard commands. That did it!
Roger
Roger Sauer Wrote:
> I have a multi-column grid that's wider than the notebook page it sits on, so it has a horizontal scrollbar. First two columns are locked. Trying to programmatically scroll the grid horizontally (using commands such as keyboard "{Ctrl-RightArrow}" or ke
yboard "{Crtl-End}") works sometimes but not all the time. Unlocking the columns seems to help but is not desired.
>
> What's needed, I think, is a scroll() method like form/subform has or the appropriate Windows API call to accomplish the horizontal scrolling.
>
> If anyone has this knowledge, I would appreciate hearing from you.
>
> Thanks.
>
> Roger Sauer
>
|
|
|
|
|