Solved Increase font size for visually impaired (1 Viewer)

rondon

Member
Local time
Today, 23:17
Joined
May 16, 2020
Messages
53
I have a user who is visual impair I was wondering if there is a way to increase the font size of a list box by clicking on a command button. For example font is currently 14 if the user clicks the command button it increases the font to 22. But if another user logs on it has returned to 14.

Thanks Ron
 

Cronk

Registered User.
Local time
Today, 23:17
Joined
Jul 4, 2013
Messages
2,770
You could do that but unless the column widths are large enough, the whole text may not be readable.

Code for button's click event

Code:
if me.Yourlistname.fontsize <> 22 then
    Me.yourListName.fontsize=22
else
    Me.yourListName.fontsize=14
endif
 

strive4peace

AWF VIP
Local time
Today, 07:17
Joined
Apr 3, 2020
Messages
1,003
Ron, adding on ... you might also want to change:
  • ColumnWidths
  • ListWidth
and, if you have space:
  • Width
 

strive4peace

AWF VIP
Local time
Today, 07:17
Joined
Apr 3, 2020
Messages
1,003
ps, Ron, if you keep track of users in a table, you could keep track of their preferences too -- and set the listbox (and other control) properties in the Form Open event

Actually, I use database properties to keep track of things for each person's front-end
 

isladogs

MVP / VIP
Local time
Today, 12:17
Joined
Jan 14, 2017
Messages
18,186
Ron
Whilst you can increase the size of a listbox, surely the user will still have trouble with reading the rest of the form.

Another approach is to allow users with visual impairments to zoom the entire form.
I have code to do exactly that as part of my automatic form resizing routines.

1590648782441.png


For more information, see my extended website article at http://www.mendipdatasystems.co.uk/automatic-form-resizing-2/4594565280.
The zoom feature is on page 2
 

Attachments

  • 1590648338183.png
    1590648338183.png
    286.5 KB · Views: 333

rondon

Member
Local time
Today, 23:17
Joined
May 16, 2020
Messages
53
Thank you all I have started at the listbox and will look at the form as an option. My user will really appreciate you help. Thanks Ron
 

Users who are viewing this thread

Top Bottom