Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Odd Behaviour of cursor and Scrollbars

Status
Not open for further replies.

tedsmith

Programmer
Nov 23, 2000
1,762
0
0
AU
I want to use the keyboard to vary the size and position of a picture, Cursor for position and +- for size.

A problem is I also have 4 HScreollBars on the form that do the same job.
(I use Keydown to change the scrollbar values)
All controls Tabstop=False

Pressing the cursor keys repeatedly to move the picture across also highlights the other command buttons in turn eventually tabbing the focus to the last scroolbar in the tab list even though it's tabstop is false. Tabstop doesn't seem to affect "tabbing" with the cursor keys.

Them after the next press it changes that Scrollbar.value

The effect of this is if you shift the picture with the cursor a few times it starts to then change the picture size because the size scrollbar is the last indexed

It only does it to whichever scrollbar has the highest tab index number.

I can get around this by having a fifth dummy scrollbar but I would have thought there is a better answer?
 
I ditched the use of the cursor keys and used the number keypad instead.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top