Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
instant line length?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Jim Y  
View profile  
 More options May 23 2004, 10:45 pm
Newsgroups: comp.lang.basic.visual.misc
From: "Jim Y" <j.s.yablon...@NOSPAMatt.net>
Date: Mon, 24 May 2004 02:45:49 GMT
Local: Sun, May 23 2004 10:45 pm
Subject: instant line length?
I know that I can determine the length of a line as in sngLineLnth = Printer.TextWidth(Text1.Text).
Because I have a limited printed space, say 5 inches, I want to control (?) the input length to
prevent losing the end of a line too long (like this sentence).  My idea is:  I set the printed font
size, say Arial 10, and as the user types the statement in a text box, a window/form continuously
displays the line length in inches and warns the user when the line length exceeds 5 inches.  I have
done something similar to this using a command button, but that is a type and click method.  (Kind
of crude method.)

Is it possible to indicate the length of a typed line (automatically update) as the user enters it
in the text box with no user action other than typing the message?  If yes, how do I do it?

Thank you,
Jim Y


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Joe Nuke Me Xemu Foster  
View profile  
 More options May 23 2004, 10:59 pm
Newsgroups: comp.lang.basic.visual.misc
From: "Joe \"Nuke Me Xemu\" Foster" <j...@bftsi0.UUCP>
Date: Sun, 23 May 2004 19:59:19 -0700
Local: Sun, May 23 2004 10:59 pm
Subject: Re: instant line length?

"Jim Y" <j.s.yablon...@NOSPAMatt.net> wrote in message <news:xldsc.21191$fF3.542434@bgtnsc05-news.ops.worldnet.att.net>...
> I know that I can determine the length of a line as in sngLineLnth = Printer.TextWidth(Text1.Text).
> Because I have a limited printed space, say 5 inches, I want to control (?) the input length to
> prevent losing the end of a line too long (like this sentence).  My idea is:  I set the printed font
> size, say Arial 10, and as the user types the statement in a text box, a window/form continuously
> displays the line length in inches and warns the user when the line length exceeds 5 inches.  I have
> done something similar to this using a command button, but that is a type and click method.  (Kind
> of crude method.)

> Is it possible to indicate the length of a typed line (automatically update) as the user enters it
> in the text box with no user action other than typing the message?  If yes, how do I do it?

Use Text1_Change?

--
Joe Foster <mailto:jlfoster%40znet.com>  "Regged" again? <http://www.xenu.net/>
WARNING: I cannot be held responsible for the above        They're   coming  to
because  my cats have  apparently  learned to type.        take me away, ha ha!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
J French  
View profile  
 More options May 23 2004, 11:27 pm
Newsgroups: comp.lang.basic.visual.misc
From: erew...@nowhere.com (J French)
Date: Mon, 24 May 2004 03:27:51 +0000 (UTC)
Local: Sun, May 23 2004 11:27 pm
Subject: Re: instant line length?
On Mon, 24 May 2004 02:45:49 GMT, "Jim Y"

<j.s.yablon...@NOSPAMatt.net> wrote:
>I know that I can determine the length of a line as in sngLineLnth = Printer.TextWidth(Text1.Text).
>Because I have a limited printed space, say 5 inches, I want to control (?) the input length to
>prevent losing the end of a line too long (like this sentence).  My idea is:  I set the printed font
>size, say Arial 10, and as the user types the statement in a text box, a window/form continuously
>displays the line length in inches and warns the user when the line length exceeds 5 inches.  I have
>done something similar to this using a command button, but that is a type and click method.  (Kind
>of crude method.)

>Is it possible to indicate the length of a typed line (automatically update) as the user enters it
>in the text box with no user action other than typing the message?  If yes, how do I do it?

Simply calc and display in the Textbox's Changed event

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jim Y  
View profile  
 More options May 24 2004, 12:11 pm
Newsgroups: comp.lang.basic.visual.misc
From: "Jim Y" <j.s.yablon...@NOSPAMatt.net>
Date: Mon, 24 May 2004 16:11:32 GMT
Local: Mon, May 24 2004 12:11 pm
Subject: Re: instant line length?
It does the job.  I appreciate the help.  Thanks to both of you.
I truly appreciate this newsgroup.  I have received answers to all of my questions, something the
texts that I purchased have not been able to do.

Thank you,
Jim Y

"Jim Y" <j.s.yablon...@NOSPAMatt.net> wrote in message

news:xldsc.21191$fF3.542434@bgtnsc05-news.ops.worldnet.att.net...
> I know that I can determine the length of a line as in sngLineLnth =

Printer.TextWidth(Text1.Text).


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Rogue Rabbit  
View profile  
 More options Oct 19 2004, 5:35 pm
Newsgroups: comp.lang.basic.visual.misc
From: Rogue Rabbit <rogue.rab...@ntlworld.com>
Date: Tue, 19 Oct 2004 21:35:04 GMT
Local: Tues, Oct 19 2004 5:35 pm
Subject: Re: instant line length?

Yup, just put your code in the Text1_Change() event.

rr


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »