[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Get current character position of spell check in current string
- To: address@hidden
- Subject: Re: Get current character position of spell check in current string
- From: Raymond Kennington <address@hidden>
- Date: Wed, 25 Sep 2002 20:34:59 +0930
- Delivered-to: mailing list addict3list@mlm.addictive-software.com
- Mailing-list: contact addict3list-help@mlm.addictive-software.com; run by ezmlm
- Organization: Programming Solutions
- References: <32A0F6A8B727D511BFC800A0C9E4B97F45E610@EXCHANGESERVER>
- Reply-to: <address@hidden>
There's a parameter in CheckString that returns startPos and Length.
Raymond Kennington
Duncan McGregor Gunn wrote:
>
> Hi there,
>
> Unfortunately I'm not using the CheckWinControl method, but the CheckString
> method. This is to completely de-couple my Spell check code from the UI.
>
> Is there a different property to just get the char index, or can
> GetSelectionPosition actually return you the char index even if you are not
> using a control?
>
> Thanks again,
> Duncan
>
> -----Original Message-----
> From: Addictive Software [mailto:address@hidden
> Sent: 25 September 2002 05:23
> To: address@hidden
> Subject: RE: Get current character position of spell check in current
> string
>
> Hello Duncan,
>
> Try this out:
>
> Addict.ControlParser.GetSelectionPosition
>
> declaration:
> procedure GetSelectionPosition( var XPosStart:LongInt; var
> YPosStart:LongInt; var XPosEnd:LongInt; var YPosEnd:LongInt ); virtual;
>
> This should provide you with the positioning information for the current
> selection (which at the time the dialog is up, should be what you're looking
> for).
>
> Best Wishes,
>
> Michael Novak
> Addictive Software
> http://www.addictivesoftware.com
> mailto:address@hidden
>
> > -----Original Message-----
> > From: Duncan McGregor Gunn [mailto:address@hidden
> > Sent: Tuesday, September 24, 2002 1:53 AM
> > To: 'address@hidden'
> > Subject: Get current character position of spell check in current string
> >
> >
> > Hi,
> >
> > I had intended to use my own spell check dialog, and control the spell
> > checker using the API. I would like to display context information in the
> > dialog (e.g. MS Word style; text fragment with misspelled word highlighted
> > in red).
> >
> > However I am unable to do this as I cannot see a way of getting current
> > character index information back from the parser. The parser
> > seems to keep
> > tabs of the current character and index info, but this is not exposed.
> > Would I need to add this, or have I simply overlooked it?
> >
> > Thanks again for your help,
> > ----------------------------------
> > Duncan M. Gunn BSc (Hons)
> > Development Engineer
> > Gael Quality Ltd.
> > Tulloch Gael
> > East Kilbride
> > Scotland
> > G75 0QR
> > (Tel.) 01355 593419
> > address@hidden
> > www.ygnius.com
> > www.gaelquality.co.uk
> > ----------------------------------
> >
> > Have you tried our latest software product Ygnius yet?
> > Ygnius is an enhanced working technique that anybody can quickly
> > understand
> > - it is based around the tried and tested concept of Mind Mapping invented
> > 30 years ago by Tony Buzan.
> > Easily applied to regular daily activities, both you and your team will be
> > astounded by the improvement in your overall effectiveness - if
> > not, we will
> > return your investment without hesitation. Why not visit www.ygnius.com
> > today, for a free 30 day evaluation of Ygnius.
> >
> >
> >
> >
> > ________________________________________________________________________
> > This e-mail has been scanned for all viruses by Star Internet. The
> > service is powered by MessageLabs. For more information on a proactive
> > anti-virus service working around the clock, around the globe, visit:
> > http://www.star.net.uk
> > ________________________________________________________________________
> >
>
> ________________________________________________________________________
> This e-mail has been scanned for all viruses by Star Internet. The
> service is powered by MessageLabs. For more information on a proactive
> anti-virus service working around the clock, around the globe, visit:
> http://www.star.net.uk
> ________________________________________________________________________
>
> ________________________________________________________________________
> This e-mail has been scanned for all viruses by Star Internet. The
> service is powered by MessageLabs. For more information on a proactive
> anti-virus service working around the clock, around the globe, visit:
> http://www.star.net.uk
> ________________________________________________________________________
Please visit Addict Home Site.