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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Control Tip Text - multiple lines? 4

Status
Not open for further replies.

MrPeds

Programmer
Joined
Jan 7, 2003
Messages
219
Location
GB
Hi,

I am writing a database in Access 2000.

Is it possible to have Control Tip text over multiple lines? If so how?

So instead of having:

"This is a long string of text..."

I have:

"This is a "
"long string of "
"text...."

Thanks,

MrPEds
 
What I usually do is create a mini form with no toolbars and type the tip on the form. I then program the element that I want the tip associated with to pop up the mini form on the MouseMove event. This way I can control the text style, font color and layout of my tips. Below is some sample code for the elements MouseMove event:

Private Sub ViewTip1_MouseMove(Button As Integer, Shift As Integer, X As Single, y As Single)
On Error GoTo ViewTip1_MouseMove_Err

DoCmd.OpenForm "frmTip1"

Exit_ViewTip1_MouseMove:
Exit Sub

ViewTip1_MouseMove_Err:
MsgBox Err.Description
Resume Exit_ViewTip1_MouseMove

End Sub
 
Use [CTRL]-[ENTER] to start a new line for your Tooltip using the Tooltip property in the control's Property Sheet. I believe that the character limit is 255 characters, although I've never reached this limit myself.

HTH
Lightning
 
thanks for this!

MrPeds
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top