UtterAccess.com
X   Site Message
(Message will auto close in 2 seconds)

Welcome to UtterAccess! Please ( Login   or   Register )

Custom Search
 
   Reply to this topicStart new topic
> Highlight When Text Box Is Too Small To Display All The Text., Any Version    
 
   
pere_de_chipstic...
post Jan 27 2015, 09:43 AM
Post#1


UtterAccess Editor
Posts: 10,112
Joined: 8-November 07
From: South coast, England


This demo highlights a text box when the text box size is too small to display all the text in the field.

Code in the Form's 'On Current' event and the Text Box's 'On Change' event call a common function that calculates the height required for the text box to display all the text, if it is greater than the text box's actual height, the border colour is changed to red and the border width changed to 2, otherwise the border colour is set to black and the border width to 1.

The demo is based on a modified Stephan Lebans database which truncated the text string to ensure that it fitted the text box.

Enjoy.
Attached File(s)
Attached File  ChangeMemoBorder_Demo.zip ( 30.2K )Number of downloads: 97
Attached File  ChangeMemoBorder_Demo_mdb.zip ( 27.58K )Number of downloads: 73
 
Go to the top of the page
 


Custom Search
RSSSearch   Top   Lo-Fi    17th December 2017 - 12:20 PM