Please help with TextBox / Label properties 
Author Message
 Please help with TextBox / Label properties

I have a program which has a help component I want to display which
would be multiple lines/paragraphs/pages of read-only text displayed
within a fixed window.

My problem is that the textbox cannot do multiple paragraphs.  I tried
chr(10) and chr(13) but only get the unkown-character box displayed.
Also, the textbox only displays in light gray (too light) when enabled
is set to false (since it is read-only).

A label, on the other hand, presents a different problem - no
scrollbars so the amount of information is very limited.

So with a textbox, I would have to pad my paragraphs with spaces to
force line-feeds an live with the light gray text - or with a label, I
would have to break down the information into 40-50 seperate pieces
and force the user to click a button to go back and forth rather than
scrolling and live with the fact that they won't be able to cut and
paste sections freely.

I figure there MUST be some better way, but I cannot find it in any of
the help or reference material I have available.

???????????



Sat, 23 Feb 2002 03:00:00 GMT  
 Please help with TextBox / Label properties
Instead of Chr(10) and Chr(13), use the correct combination Chr(13) + Chr(10),
or the constant vbCrLf.  It will work perfectly.

Lee Weiner
weiner AT fuse DOT net
http://home.fuse.net/lweiner

Quote:

>I have a program which has a help component I want to display which
>would be multiple lines/paragraphs/pages of read-only text displayed
>within a fixed window.

>My problem is that the textbox cannot do multiple paragraphs.  I tried
>chr(10) and chr(13) but only get the unkown-character box displayed.
>Also, the textbox only displays in light gray (too light) when enabled
>is set to false (since it is read-only).

>A label, on the other hand, presents a different problem - no
>scrollbars so the amount of information is very limited.

>So with a textbox, I would have to pad my paragraphs with spaces to
>force line-feeds an live with the light gray text - or with a label, I
>would have to break down the information into 40-50 seperate pieces
>and force the user to click a button to go back and forth rather than
>scrolling and live with the fact that they won't be able to cut and
>paste sections freely.

>I figure there MUST be some better way, but I cannot find it in any of
>the help or reference material I have available.

>???????????



Sat, 23 Feb 2002 03:00:00 GMT  
 Please help with TextBox / Label properties

There is a better way!!! And quite frankly, I am surprised you didn't find this in the help sect.

  a.. JOHN Q :->>  My problem is that the textbox cannot do multiple paragraphs.  I tried
  chr(10) and chr(13) but only get the unkown-character box displayed.
  ANSWER:->> A text box has a property boolean called "Multiline".  You first need to set this property to TRUE.  Once you have this set to TRUE, you can use the "vbCrLf" to create your paragraphs. Don't forget to also change the property "ScrollBars" to both.

  a.. JOHN Q :->>  Also, the textbox only displays in light gray (too light) when enabled
  is set to false (since it is read-only)
  b.. ANSWER:->> Whoever said to enable or disable a text box was the best way to prevent user input or interaction? I personally use the "LOCKED" boolean.  By using the LOCKED boolean, the text will still display black during runtime, or any color during design time. "(since it is read-only)" has nothing to do with it!   If your so concerned, maybe you might consider writing your own text control, or using someone elses.
  a.. JOHN Q :->>  ....they won't be able to cut and
   paste sections freely.  
  b.. ANSWER: ->> You can cut and past considering you use the clipboard functions correctly.  You may need to get creative with event procedures, but it can be done.

Greg

Quote:



Quote:
> I have a program which has a help component I want to display which
> would be multiple lines/paragraphs/pages of read-only text displayed
> within a fixed window.

> My problem is that the textbox cannot do multiple paragraphs.  I tried
> chr(10) and chr(13) but only get the unkown-character box displayed.
> Also, the textbox only displays in light gray (too light) when enabled
> is set to false (since it is read-only).

> A label, on the other hand, presents a different problem - no
> scrollbars so the amount of information is very limited.

> So with a textbox, I would have to pad my paragraphs with spaces to
> force line-feeds an live with the light gray text - or with a label, I
> would have to break down the information into 40-50 seperate pieces
> and force the user to click a button to go back and forth rather than
> scrolling and live with the fact that they won't be able to cut and
> paste sections freely.

> I figure there MUST be some better way, but I cannot find it in any of
> the help or reference material I have available.

> ???????????



Sun, 24 Feb 2002 03:00:00 GMT  
 Please help with TextBox / Label properties

Lee,

That would work except the text is still light gray.  

Any way around that?

I am now using a rich text box, which does everything except
automatically format the line-lengths to fit in the box.

John



Instead of Chr(10) and Chr(13), use the correct combination Chr(13) +
Chr(10),
or the constant vbCrLf.  It will work perfectly.

Lee Weiner
weiner AT fuse DOT net
http://home.fuse.net/lweiner



Quote:
>I have a program which has a help component I want to display which
>would be multiple lines/paragraphs/pages of read-only text displayed
>within a fixed window.

>My problem is that the textbox cannot do multiple paragraphs.  I tried
>chr(10) and chr(13) but only get the unkown-character box displayed.
>Also, the textbox only displays in light gray (too light) when enabled
>is set to false (since it is read-only).

>A label, on the other hand, presents a different problem - no
>scrollbars so the amount of information is very limited.

>So with a textbox, I would have to pad my paragraphs with spaces to
>force line-feeds an live with the light gray text - or with a label, I
>would have to break down the information into 40-50 seperate pieces
>and force the user to click a button to go back and forth rather than
>scrolling and live with the fact that they won't be able to cut and
>paste sections freely.

>I figure there MUST be some better way, but I cannot find it in any of
>the help or reference material I have available.

>???????????



Wed, 27 Feb 2002 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. PLEASE HELP, PLEASE HELP, PLEASE HELP, PLEASE HELP, PLEASE HELP, PLEASE HELP, PLEASE HELP,

2. Changing TextBox.Text Property at Runtime- PLEASE HELP

3. property label / textbox

4. Invalid use of property please, please, please help!!!

5. List Property in Property Pane (PLEASE HELP!)

6. Labels for textboxes - help

7. help in assign an variable in textbox or label

8. Help:Textsize in Textbox/Label

9. Help with Manual Text Alignments in textboxes and labels

10. Can anyone HELP me PLEASE PLEASE PLEASE PLEASE PLEASE PLEASE PLEASE PLEASE PLEASE

11. Help with Label properties

12. Please help with strings/label

 

 
Powered by phpBB® Forum Software