RichTextBox - single click to select line 
Author Message
 RichTextBox - single click to select line
Hi Folks,

I followed a thread about this some time back, but as far as I could see,
there was no final conclusion. I now find myself suffering from the same
problem and was wondering if anyone had bottomed it out. It goes like this:-

In theory, indenting the left margin of a RichTextBox should leave a column
down the left hand side where a single click will select an entire line of
text. This is indicated by the mouse pointer changing to an arrow pointing
up and to the right.

I am running W98SE and VB6 SP5, and (like others at the time) I can't get
this to happen. I create the indent, but in this region the mouse pointer
stays as the edit cursor, and I can't select a line of text with a single
click.

Anybody had any further  ideas?

    Best regards,

        Nick Tipping.

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system ( http://www.*-*-*.com/ ).
Version: 6.0.320 / Virus Database: 179 - Release Date: 30/01/02



Sat, 28 Aug 2004 19:29:08 GMT  
 RichTextBox - single click to select line
Hi,

 You can try these 2 ways if you want!

 First) You can Use E.Marcillo's Rich Edit that is more power to do what you
want and I guess that your problem will solved this way...

Second) You can do it yourself, It's as easy as to drink a glass of
water!Just use EM_LINELENGTH ang get the Line Length In Char then use
SelStart and SelLength to higlight the Line! (but how you can find Selstart?
Think of this,it's also easy!:))

HTH
Hamed


Quote:
> Hi Folks,

> I followed a thread about this some time back, but as far as I could see,
> there was no final conclusion. I now find myself suffering from the same
> problem and was wondering if anyone had bottomed it out. It goes like
this:-

> In theory, indenting the left margin of a RichTextBox should leave a
column
> down the left hand side where a single click will select an entire line of
> text. This is indicated by the mouse pointer changing to an arrow pointing
> up and to the right.

> I am running W98SE and VB6 SP5, and (like others at the time) I can't get
> this to happen. I create the indent, but in this region the mouse pointer
> stays as the edit cursor, and I can't select a line of text with a single
> click.

> Anybody had any further  ideas?

>     Best regards,

>         Nick Tipping.

> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.320 / Virus Database: 179 - Release Date: 30/01/02



Sat, 28 Aug 2004 21:53:07 GMT  
 RichTextBox - single click to select line
Hi Hamed,

Thanks for the advice.

    Best Regards,
        Nick Tipping.


Quote:
> Hi,

>  You can try these 2 ways if you want!

>  First) You can Use E.Marcillo's Rich Edit that is more power to do what
you
> want and I guess that your problem will solved this way...

> Second) You can do it yourself, It's as easy as to drink a glass of
> water!Just use EM_LINELENGTH ang get the Line Length In Char then use
> SelStart and SelLength to higlight the Line! (but how you can find
Selstart?
> Think of this,it's also easy!:))

> HTH
> Hamed



> > Hi Folks,

> > I followed a thread about this some time back, but as far as I could
see,
> > there was no final conclusion. I now find myself suffering from the same
> > problem and was wondering if anyone had bottomed it out. It goes like
> this:-

> > In theory, indenting the left margin of a RichTextBox should leave a
> column
> > down the left hand side where a single click will select an entire line
of
> > text. This is indicated by the mouse pointer changing to an arrow
pointing
> > up and to the right.

> > I am running W98SE and VB6 SP5, and (like others at the time) I can't
get
> > this to happen. I create the indent, but in this region the mouse
pointer
> > stays as the edit cursor, and I can't select a line of text with a
single
> > click.

> > Anybody had any further  ideas?

> >     Best regards,

> >         Nick Tipping.

> > ---
> > Outgoing mail is certified Virus Free.
> > Checked by AVG anti-virus system (http://www.grisoft.com).
> > Version: 6.0.320 / Virus Database: 179 - Release Date: 30/01/02

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.320 / Virus Database: 179 - Release Date: 30/01/02


Sun, 29 Aug 2004 00:25:18 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. HELP: how to select a datapoint in mschart with a single-click

2. Select an item ListBox in single click

3. DataGrid: Selecting a row by single/double clicking

4. How to make multi select in listview like ListBox with single click

5. RichTextBox - Select/Click Prolems - Bug?

6. Selecting a line of text from a RichTextBox

7. Selecting a line from a RichTextBox

8. How to select a line in RichTextbox

9. Double-click vs single-click on macro button

10. System tray icon, single click event fires before double click

11. Double clicks and single clicks

12. How to differ double click from single click?

 

 
Powered by phpBB® Forum Software