Combo Box and Touch Screen

twosides

Registered User.
Local time
Today, 05:37
Joined
Jul 19, 2005
Messages
38
Hi Folks,
Hope you can help. I have a touch screen small format PC (A5 size).
I have written a small database to log survey results as I go around a site etc.
To make it more 'touch screen' friendly I have made the combo boxes bigger. This has worked to an extent but not brilliant. How can I make the combo box arrow on the right hand side of the combo filed larger? (So that it is easy to touch with a finger on the screen and not the stylus).
OR How could I make it so that the combo box expands when the actual field itself is touched (equivalent to a mouse click). As the field size at present is just right for that.
Cheers
 
You can use the (i.e.) "Got focus" event to do this
Use "ComboName.Dropdown" to expand the dropdown list.

Good luck !
 
I was doing touch screen stuff in the early 90s with VB. As Mailman pointed out, when the control gets focus (Got Focus event), you need to increase the width and height and font size. You may also want to move the .Top and .Left properties so it "looks like" the control has stayed in the same place.

I found this difficult to do back then and I don't anticipate it will be any easier now. An issue that came up is when a control was near the border of the screen, it would go partially off the screen...so I had to put in logic to fix that.

You also need to "save" the properties you change so you can put them back on "Lost Focus".

I found it tedious to code this for all of my objects so I wrote a public subroutine to do all the work and just used the current object to "work" on.

HTH.
 

Users who are viewing this thread

Back
Top Bottom