Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

WSpell and the RichText DataWindow

6 posts in Objects Last posting was on 2007-08-27 04:33:50.0Z
amanda.posey Posted on 2007-05-02 20:10:31.0Z
From: amanda.posey@assetpoint.com
Newsgroups: sybase.public.powerbuilder.objects
Subject: WSpell and the RichText DataWindow
Date: 2 May 2007 13:10:31 -0700
Organization: http://groups.google.com
Lines: 27
Message-ID: <1178136631.135397.229320@p77g2000hsh.googlegroups.com>
NNTP-Posting-Host: 208.213.81.72
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
X-Trace: posting.google.com 1178136631 21104 127.0.0.1 (2 May 2007 20:10:31 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Wed, 2 May 2007 20:10:31 +0000 (UTC)
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727),gzip(gfe),gzip(gfe)
Complaints-To: groups-abuse@google.com
Injection-Info: p77g2000hsh.googlegroups.com; posting-host=208.213.81.72; posting-account=H0JnDw0AAABSUB049An9z92XbbKWGr-5
Path: forums-1-dub!forums-master!newswest.sybase.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!p77g2000hsh.googlegroups.com!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:9340
Article PK: 736501

I'm having trouble using the WSpell spell checker with the RichText
DataWindow when trying to use the "CheckBackgroundNotify"
functionality and I was wondering if anyone else has had better luck.
It appears (to me anyway) that at the time when the spell check is
performed, the text in the control i'm passing to the WSpell method
isn't what was entered. I say that because spelling errors are caught
some of the time, but I can't figure out when/why it works when it
does and when/why it doesn't.
Perhaps I'm using the wrong datawindow event?

In my RichText datawindow's ItemChanged event, i'm doing the
following:

ulong hWin
long ll_wspell_return

hWin = Handle ( this )
hWin = FindWindowEx ( hWin, 0, "PBTxTextControl", 0 )
hWin = FindWindowEx ( hWin, 0, "AfxOleControl42u", 0 )
hWin = FindWindowEx ( hWin, 0, "TX11P", 0 )

ll_wspell_return = ole_wspell.object.CheckBackgroundNotify ( hWin,
FALSE, FALSE, FALSE, TRUE, 255 )

ole_wspell is an OLE object that uses the Wintertree WSpell active x
control.


Philip Salgannik Posted on 2007-05-02 22:32:41.0Z
Reply-To: "Philip Salgannik" <PhilipSalgannik@work.com>
From: "Philip Salgannik" <PhilipSalgannik@work.com>
Newsgroups: sybase.public.powerbuilder.objects
References: <1178136631.135397.229320@p77g2000hsh.googlegroups.com>
Subject: Re: WSpell and the RichText DataWindow
Lines: 33
Organization: ATWORK
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3028
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028
NNTP-Posting-Host: host41.155.212.59.conversent.net
X-Original-NNTP-Posting-Host: host41.155.212.59.conversent.net
Message-ID: <46391189$1@forums-1-dub>
Date: 2 May 2007 15:32:41 -0700
X-Trace: forums-1-dub 1178145161 155.212.59.41 (2 May 2007 15:32:41 -0700)
X-Original-Trace: 2 May 2007 15:32:41 -0700, host41.155.212.59.conversent.net
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:9341
Article PK: 736497

First that comes to mind is why is this being done in the itemchanged event?

<amanda.posey@assetpoint.com> wrote in message
news:1178136631.135397.229320@p77g2000hsh.googlegroups.com...
> I'm having trouble using the WSpell spell checker with the RichText
> DataWindow when trying to use the "CheckBackgroundNotify"
> functionality and I was wondering if anyone else has had better luck.
> It appears (to me anyway) that at the time when the spell check is
> performed, the text in the control i'm passing to the WSpell method
> isn't what was entered. I say that because spelling errors are caught
> some of the time, but I can't figure out when/why it works when it
> does and when/why it doesn't.
> Perhaps I'm using the wrong datawindow event?
>
> In my RichText datawindow's ItemChanged event, i'm doing the
> following:
>
> ulong hWin
> long ll_wspell_return
>
> hWin = Handle ( this )
> hWin = FindWindowEx ( hWin, 0, "PBTxTextControl", 0 )
> hWin = FindWindowEx ( hWin, 0, "AfxOleControl42u", 0 )
> hWin = FindWindowEx ( hWin, 0, "TX11P", 0 )
>
> ll_wspell_return = ole_wspell.object.CheckBackgroundNotify ( hWin,
> FALSE, FALSE, FALSE, TRUE, 255 )
>
> ole_wspell is an OLE object that uses the Wintertree WSpell active x
> control.
>


amanda Posted on 2007-05-03 13:14:29.0Z
From: amanda <amanda.posey@assetpoint.com>
Newsgroups: sybase.public.powerbuilder.objects
Subject: Re: WSpell and the RichText DataWindow
Date: 3 May 2007 06:14:29 -0700
Organization: http://groups.google.com
Lines: 61
Message-ID: <1178198069.343502.95900@e65g2000hsc.googlegroups.com>
References: <1178136631.135397.229320@p77g2000hsh.googlegroups.com> <46391189$1@forums-1-dub>
NNTP-Posting-Host: 208.213.81.72
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
X-Trace: posting.google.com 1178198069 23458 127.0.0.1 (3 May 2007 13:14:29 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Thu, 3 May 2007 13:14:29 +0000 (UTC)
In-Reply-To: <46391189$1@forums-1-dub>
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727),gzip(gfe),gzip(gfe)
Complaints-To: groups-abuse@google.com
Injection-Info: e65g2000hsc.googlegroups.com; posting-host=208.213.81.72; posting-account=H0JnDw0AAABSUB049An9z92XbbKWGr-5
Path: forums-1-dub!forums-master!newswest.sybase.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!e65g2000hsc.googlegroups.com!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:9342
Article PK: 736502

On May 2, 6:32 pm, "Philip Salgannik" <PhilipSalgan...@work.com>

wrote:
> First that comes to mind is why is this being done in the itemchanged event?
>
> <amanda.po...@assetpoint.com> wrote in message
>
> news:1178136631.135397.229320@p77g2000hsh.googlegroups.com...
>
>
>
> > I'm having trouble using the WSpell spell checker with the RichText
> > DataWindow when trying to use the "CheckBackgroundNotify"
> > functionality and I was wondering if anyone else has had better luck.
> > It appears (to me anyway) that at the time when the spell check is
> > performed, the text in the control i'm passing to the WSpell method
> > isn't what was entered. I say that because spelling errors are caught
> > some of the time, but I can't figure out when/why it works when it
> > does and when/why it doesn't.
> > Perhaps I'm using the wrong datawindow event?
>
> > In my RichText datawindow's ItemChanged event, i'm doing the
> > following:
>
> > ulong hWin
> > long ll_wspell_return
>
> > hWin = Handle ( this )
> > hWin = FindWindowEx ( hWin, 0, "PBTxTextControl", 0 )
> > hWin = FindWindowEx ( hWin, 0, "AfxOleControl42u", 0 )
> > hWin = FindWindowEx ( hWin, 0, "TX11P", 0 )
>
> > ll_wspell_return = ole_wspell.object.CheckBackgroundNotify ( hWin,
> > FALSE, FALSE, FALSE, TRUE, 255 )
>
> > ole_wspell is an OLE object that uses the Wintertree WSpell active x
> > control.- Hide quoted text -
>
> - Show quoted text -

Philip,

Thanks for your fast reply!

The purpose of the WSpell CheckBackgroundNotify method is to check the
text in the specified control and then "highlight" any mispelled
words. The end result would be a spell check like the MS Word
spellchecker which checks the text as you type then underlines any
mistakes. When used with the RichTextEdit control, this method can be
called in the Modified() event handler and it works as expected. Since
the spell checker doesn't have a listener to check the control for
changes, the method must be called every time the control's content
changes for the behavior to work as expected.

I'm new to PowerBuilder and have a lot more to learn about the event
model, but it seems to me that the ItemChanged event would be the best
place to do this check. I'm guessing I'm wrong though since it isn't
working.

Thanks ahead for any help!
Amanda


Philip Salgannik Posted on 2007-05-03 16:52:08.0Z
Reply-To: "Philip Salgannik" <PhilipSalgannik@work.com>
From: "Philip Salgannik" <PhilipSalgannik@work.com>
Newsgroups: sybase.public.powerbuilder.objects
References: <1178136631.135397.229320@p77g2000hsh.googlegroups.com> <46391189$1@forums-1-dub> <1178198069.343502.95900@e65g2000hsc.googlegroups.com>
Subject: Re: WSpell and the RichText DataWindow
Lines: 81
Organization: ATWORK
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3028
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028
NNTP-Posting-Host: host41.155.212.59.conversent.net
X-Original-NNTP-Posting-Host: host41.155.212.59.conversent.net
Message-ID: <463a1338$1@forums-1-dub>
Date: 3 May 2007 09:52:08 -0700
X-Trace: forums-1-dub 1178211128 155.212.59.41 (3 May 2007 09:52:08 -0700)
X-Original-Trace: 3 May 2007 09:52:08 -0700, host41.155.212.59.conversent.net
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:9343
Article PK: 736500


> the spell checker doesn't have a listener to check the control for
> changes, the method must be called every time the control's content
> changes for the behavior to work as expected.

If RTF datawindow uses the same event model as the regular datawindow
control, then itemchanged event is triggered by the edit control that is
floating above the datawindow (and the content of datawindow control has NOT
changed yet anyway, only the succesfull return from this event allows the
"contents" of the datwindow to be "updated"). So the big question is to know
where is it exactly that you are typing in when you are tyoing in an RTE
datawindow.
My personal advice - ABANDON the idea of using CheckBackgroundNotify with
datawindows.

"amanda" <amanda.posey@assetpoint.com> wrote in message
news:1178198069.343502.95900@e65g2000hsc.googlegroups.com...
> On May 2, 6:32 pm, "Philip Salgannik" <PhilipSalgan...@work.com>
> wrote:
>> First that comes to mind is why is this being done in the itemchanged
>> event?
>>
>> <amanda.po...@assetpoint.com> wrote in message
>>
>> news:1178136631.135397.229320@p77g2000hsh.googlegroups.com...
>>
>>
>>
>> > I'm having trouble using the WSpell spell checker with the RichText
>> > DataWindow when trying to use the "CheckBackgroundNotify"
>> > functionality and I was wondering if anyone else has had better luck.
>> > It appears (to me anyway) that at the time when the spell check is
>> > performed, the text in the control i'm passing to the WSpell method
>> > isn't what was entered. I say that because spelling errors are caught
>> > some of the time, but I can't figure out when/why it works when it
>> > does and when/why it doesn't.
>> > Perhaps I'm using the wrong datawindow event?
>>
>> > In my RichText datawindow's ItemChanged event, i'm doing the
>> > following:
>>
>> > ulong hWin
>> > long ll_wspell_return
>>
>> > hWin = Handle ( this )
>> > hWin = FindWindowEx ( hWin, 0, "PBTxTextControl", 0 )
>> > hWin = FindWindowEx ( hWin, 0, "AfxOleControl42u", 0 )
>> > hWin = FindWindowEx ( hWin, 0, "TX11P", 0 )
>>
>> > ll_wspell_return = ole_wspell.object.CheckBackgroundNotify ( hWin,
>> > FALSE, FALSE, FALSE, TRUE, 255 )
>>
>> > ole_wspell is an OLE object that uses the Wintertree WSpell active x
>> > control.- Hide quoted text -
>>
>> - Show quoted text -
>
> Philip,
>
> Thanks for your fast reply!
>
> The purpose of the WSpell CheckBackgroundNotify method is to check the
> text in the specified control and then "highlight" any mispelled
> words. The end result would be a spell check like the MS Word
> spellchecker which checks the text as you type then underlines any
> mistakes. When used with the RichTextEdit control, this method can be
> called in the Modified() event handler and it works as expected. Since
> the spell checker doesn't have a listener to check the control for
> changes, the method must be called every time the control's content
> changes for the behavior to work as expected.
>
> I'm new to PowerBuilder and have a lot more to learn about the event
> model, but it seems to me that the ItemChanged event would be the best
> place to do this check. I'm guessing I'm wrong though since it isn't
> working.
>
> Thanks ahead for any help!
> Amanda
>


Carleen Posted on 2007-08-26 21:59:39.0Z
Sender: 40d8.46d1f6bb.1804289383@sybase.com
From: Carleen
Newsgroups: sybase.public.powerbuilder.objects
Subject: Re: WSpell and the RichText DataWindow
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <46d1f7cb.40e6.1681692777@sybase.com>
References: <463a1338$1@forums-1-dub>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 26 Aug 2007 14:59:39 -0700
X-Trace: forums-1-dub 1188165579 10.22.241.41 (26 Aug 2007 14:59:39 -0700)
X-Original-Trace: 26 Aug 2007 14:59:39 -0700, 10.22.241.41
Lines: 89
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:9429
Article PK: 736588

I am having issues with the licensing protocol using WSpell
in PB. Unless I put the "xx.lic" file in the path, spell
checker fails. Suggestion.

> > the spell checker doesn't have a listener to check the
> > control for changes, the method must be called every
> > time the control's content changes for the behavior to
> work as expected.
>
> If RTF datawindow uses the same event model as the regular
> datawindow control, then itemchanged event is triggered
> by the edit control that is floating above the datawindow
> (and the content of datawindow control has NOT changed
> yet anyway, only the succesfull return from this event
> allows the "contents" of the datwindow to be "updated").
> So the big question is to know where is it exactly that
> you are typing in when you are tyoing in an RTE
> datawindow. My personal advice - ABANDON the idea of using
> CheckBackgroundNotify with datawindows.
>
> "amanda" <amanda.posey@assetpoint.com> wrote in message
> news:1178198069.343502.95900@e65g2000hsc.googlegroups.com.
> > .. On May 2, 6:32 pm, "Philip Salgannik"
> > <PhilipSalgan...@work.com> wrote:
> >> First that comes to mind is why is this being done in
> the itemchanged >> event?
> >>
> >> <amanda.po...@assetpoint.com> wrote in message
> >>
> >>
> news:1178136631.135397.229320@p77g2000hsh.googlegroups.com
> .. >>
> >>
> >>
> >> > I'm having trouble using the WSpell spell checker
> with the RichText >> > DataWindow when trying to use the
> "CheckBackgroundNotify" >> > functionality and I was
> wondering if anyone else has had better luck. >> > It
> appears (to me anyway) that at the time when the spell
> check is >> > performed, the text in the control i'm
> passing to the WSpell method >> > isn't what was entered.
> I say that because spelling errors are caught >> > some of
> the time, but I can't figure out when/why it works when it
> >> > does and when/why it doesn't. >> > Perhaps I'm using
> the wrong datawindow event? >>
> >> > In my RichText datawindow's ItemChanged event, i'm
> doing the >> > following:
> >>
> >> > ulong hWin
> >> > long ll_wspell_return
> >>
> >> > hWin = Handle ( this )
> >> > hWin = FindWindowEx ( hWin, 0, "PBTxTextControl", 0 )
> >> > hWin = FindWindowEx ( hWin, 0, "AfxOleControl42u", 0
> ) >> > hWin = FindWindowEx ( hWin, 0, "TX11P", 0 )
> >>
> >> > ll_wspell_return =
> ole_wspell.object.CheckBackgroundNotify ( hWin, >> > FALSE
> , FALSE, FALSE, TRUE, 255 ) >>
> >> > ole_wspell is an OLE object that uses the Wintertree
> WSpell active x >> > control.- Hide quoted text -
> >>
> >> - Show quoted text -
> >
> > Philip,
> >
> > Thanks for your fast reply!
> >
> > The purpose of the WSpell CheckBackgroundNotify method
> > is to check the text in the specified control and then
> > "highlight" any mispelled words. The end result would be
> > a spell check like the MS Word spellchecker which checks
> > the text as you type then underlines any mistakes. When
> > used with the RichTextEdit control, this method can be
> called in the Modified() event handler and it works as
> > expected. Since the spell checker doesn't have a
> > listener to check the control for changes, the method
> > must be called every time the control's content changes
> for the behavior to work as expected. >
> > I'm new to PowerBuilder and have a lot more to learn
> > about the event model, but it seems to me that the
> > ItemChanged event would be the best place to do this
> > check. I'm guessing I'm wrong though since it isn't
> working. >
> > Thanks ahead for any help!
> > Amanda
> >
>
>


Philip Salgannik Posted on 2007-08-27 04:33:50.0Z
From: "Philip Salgannik" <philemaxNOSPAM@comcast.net>
Newsgroups: sybase.public.powerbuilder.objects
References: <463a1338$1@forums-1-dub> <46d1f7cb.40e6.1681692777@sybase.com>
Subject: Re: WSpell and the RichText DataWindow
Lines: 94
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: c-24-34-73-19.hsd1.ma.comcast.net
X-Original-NNTP-Posting-Host: c-24-34-73-19.hsd1.ma.comcast.net
Message-ID: <46d2542e$1@forums-1-dub>
Date: 26 Aug 2007 21:33:50 -0700
X-Trace: forums-1-dub 1188189230 24.34.73.19 (26 Aug 2007 21:33:50 -0700)
X-Original-Trace: 26 Aug 2007 21:33:50 -0700, c-24-34-73-19.hsd1.ma.comcast.net
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:9430
Article PK: 736586

Suggestion: Put it in the path :-)

<Carleen> wrote in message news:46d1f7cb.40e6.1681692777@sybase.com...
>I am having issues with the licensing protocol using WSpell
> in PB. Unless I put the "xx.lic" file in the path, spell
> checker fails. Suggestion.
>
>> > the spell checker doesn't have a listener to check the
>> > control for changes, the method must be called every
>> > time the control's content changes for the behavior to
>> work as expected.
>>
>> If RTF datawindow uses the same event model as the regular
>> datawindow control, then itemchanged event is triggered
>> by the edit control that is floating above the datawindow
>> (and the content of datawindow control has NOT changed
>> yet anyway, only the succesfull return from this event
>> allows the "contents" of the datwindow to be "updated").
>> So the big question is to know where is it exactly that
>> you are typing in when you are tyoing in an RTE
>> datawindow. My personal advice - ABANDON the idea of using
>> CheckBackgroundNotify with datawindows.
>>
>> "amanda" <amanda.posey@assetpoint.com> wrote in message
>> news:1178198069.343502.95900@e65g2000hsc.googlegroups.com.
>> > .. On May 2, 6:32 pm, "Philip Salgannik"
>> > <PhilipSalgan...@work.com> wrote:
>> >> First that comes to mind is why is this being done in
>> the itemchanged >> event?
>> >>
>> >> <amanda.po...@assetpoint.com> wrote in message
>> >>
>> >>
>> news:1178136631.135397.229320@p77g2000hsh.googlegroups.com
>> .. >>
>> >>
>> >>
>> >> > I'm having trouble using the WSpell spell checker
>> with the RichText >> > DataWindow when trying to use the
>> "CheckBackgroundNotify" >> > functionality and I was
>> wondering if anyone else has had better luck. >> > It
>> appears (to me anyway) that at the time when the spell
>> check is >> > performed, the text in the control i'm
>> passing to the WSpell method >> > isn't what was entered.
>> I say that because spelling errors are caught >> > some of
>> the time, but I can't figure out when/why it works when it
>> >> > does and when/why it doesn't. >> > Perhaps I'm using
>> the wrong datawindow event? >>
>> >> > In my RichText datawindow's ItemChanged event, i'm
>> doing the >> > following:
>> >>
>> >> > ulong hWin
>> >> > long ll_wspell_return
>> >>
>> >> > hWin = Handle ( this )
>> >> > hWin = FindWindowEx ( hWin, 0, "PBTxTextControl", 0 )
>> >> > hWin = FindWindowEx ( hWin, 0, "AfxOleControl42u", 0
>> ) >> > hWin = FindWindowEx ( hWin, 0, "TX11P", 0 )
>> >>
>> >> > ll_wspell_return =
>> ole_wspell.object.CheckBackgroundNotify ( hWin, >> > FALSE
>> , FALSE, FALSE, TRUE, 255 ) >>
>> >> > ole_wspell is an OLE object that uses the Wintertree
>> WSpell active x >> > control.- Hide quoted text -
>> >>
>> >> - Show quoted text -
>> >
>> > Philip,
>> >
>> > Thanks for your fast reply!
>> >
>> > The purpose of the WSpell CheckBackgroundNotify method
>> > is to check the text in the specified control and then
>> > "highlight" any mispelled words. The end result would be
>> > a spell check like the MS Word spellchecker which checks
>> > the text as you type then underlines any mistakes. When
>> > used with the RichTextEdit control, this method can be
>> called in the Modified() event handler and it works as
>> > expected. Since the spell checker doesn't have a
>> > listener to check the control for changes, the method
>> > must be called every time the control's content changes
>> for the behavior to work as expected. >
>> > I'm new to PowerBuilder and have a lot more to learn
>> > about the event model, but it seems to me that the
>> > ItemChanged event would be the best place to do this
>> > check. I'm guessing I'm wrong though since it isn't
>> working. >
>> > Thanks ahead for any help!
>> > Amanda
>> >
>>
>>