 |
 |

03-11-2003, 07:47 AM
|
|
Regular
|
|
Join Date: May 2002
Posts: 89
|
|
listbox larger scroll bar/buttons
|
Hi guys,
I searched the forum but didn't come up with any info. My question is in regards to using a listbox, what i'd like to do is have a larger (more wider) scroll bar. Because i'm creating a small application that runs on a touch screen I was hoping for some way to allow for a larger listbox scroll button that is more easier to click on.
An alternative I guess would be if there was a way to create something else that can be clicked that would serve as the scroll buttons instead (like an image that mimics the scroll button being clicked or something.)
Any suggestions would be appreciated,
Thank you.
|
|

03-11-2003, 07:50 AM
|
 |
Lost Soul
Super Moderator * Guru *
|
|
Join Date: May 2001
Location: Vorlon
Posts: 18,883
|
|
|
You can always add buttons with up/down arrow images
|
|

03-11-2003, 08:03 AM
|
|
Regular
|
|
Join Date: May 2002
Posts: 89
|
|
Quote:
|
Originally Posted by Flyguy
You can always add buttons with up/down arrow images
|
Thanks for the quick reply, I was thinking I could do this but didn't know how to, like in my image_click event what do i tell it to do if the listbox is called list1. I tried raiseEvents but didn't know what even to raise...
|
|

03-11-2003, 08:54 AM
|
 |
Lost Soul
Super Moderator * Guru *
|
|
Join Date: May 2001
Location: Vorlon
Posts: 18,883
|
|
Code:
Private Sub cmdUp_Click()
Dim lIndex As Long
lIndex = List1.ListIndex - 1
If lIndex < 0 Then lIndex = 0
List1.ListIndex = lIndex
End Sub
Private Sub cmdDown_Click()
Dim lIndex As Long
lIndex = List1.ListIndex + 1
If lIndex > List1.ListCount - 1 Then lIndex = List1.ListCount - 1
List1.ListIndex = lIndex
End Sub
|
|

03-11-2003, 08:56 AM
|
 |
Junior Contributor
|
|
Join Date: Jan 2003
Location: UK
Posts: 403
|
|
|
flyguy, i once played with a VB control with was two up/down command buttons built it, just for what your talking about, i just cant remember what it was (it came with VB i think)
|
__________________
=Uplink2069=
|

03-11-2003, 08:58 AM
|
 |
Junior Contributor
|
|
Join Date: Jan 2003
Location: UK
Posts: 403
|
|
|
woohoo, found it. its called the UpDown control: Microsoft Windows Common Controls-2 6.0(SP3)
|
__________________
=Uplink2069=
|

03-11-2003, 08:58 AM
|
 |
Lost Soul
Super Moderator * Guru *
|
|
Join Date: May 2001
Location: Vorlon
Posts: 18,883
|
|
|
It's called the UpDown control and is in Microsoft Windows Common Control-2
But my example is just for two normal command buttons.
|
|

03-11-2003, 09:00 AM
|
 |
Junior Contributor
|
|
Join Date: Jan 2003
Location: UK
Posts: 403
|
|
yea, i also think it may not be suitable for a touch screen input device (quite thin!) go with flyguy's idea! 
|
__________________
=Uplink2069=
|

03-11-2003, 02:28 PM
|
|
Regular
|
|
Join Date: May 2002
Posts: 89
|
|
|
Hi guys,
Flyguy's idea would work, however the only problem is that it would move up and down by selecting the items, I however still wanted the option of scrolling up and down without actually changing the selected item. (Thus I was hoping to find a way to simply enlarge the width of the scroll bar.)
However if that's not possible I guess flyguy's idea is the only one that I can use (although the problem i see with that is it not continusouly scrolling as long as the button is pressed... I guess i could always implement a timer for that...)
Thanks
|
|

03-11-2003, 04:04 PM
|
 |
Lost Soul
Super Moderator * Guru *
|
|
Join Date: May 2001
Location: Vorlon
Posts: 18,883
|
|
|
Try the .TopIndex property, this well set/return the topmost list item.
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|
|
|
|
 |
|