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.

Spell Check Dialogue Problem in PB 11.5

4 posts in DataWindow Last posting was on 2009-09-14 14:21:26.0Z
vidhya Posted on 2009-09-07 05:23:01.0Z
From: vidhya <vidhyadaran.a@gmail.com>
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Spell Check Dialogue Problem in PB 11.5
Date: Sun, 6 Sep 2009 22:23:01 -0700 (PDT)
Organization: http://groups.google.com
Lines: 69
Message-ID: <797a6511-9a4a-4fca-9d82-fc150da41047@f18g2000prf.googlegroups.com>
NNTP-Posting-Host: 122.248.163.1
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
X-Trace: posting.google.com 1252301001 15346 127.0.0.1 (7 Sep 2009 05:23:21 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Mon, 7 Sep 2009 05:23:21 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: f18g2000prf.googlegroups.com; posting-host=122.248.163.1; posting-account=DsoyLAoAAACZ-sz872y7GyAGpK2vWTMj
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; InfoPath.1),gzip(gfe),gzip(gfe)
Path: forums-1-dub!forums-master!newssvr.sybase.com!news-sj-1.sprintlink.net!news-peer1.sprintlink.net!nntp1.phx1.gblx.net!nntp.gblx.net!nntp.gblx.net!border2.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!f18g2000prf.googlegroups.com!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:89910
Article PK: 419098

Hi


I am recently upgrade the OS XP to Vista. My powerbuilder version is
11.5.1.


I had a problem with one window a problem related to spellcheck.
Spellcheck dialogue box does not come in front but is behind the my
application, Alt + Tab is used as a workaround it is working fine.


But we didn't facing the above problem in XP OS.
The problem is occur only Vista OS.


Does any one have facing the releated issue?

Herewith I am attaching the Source Code

Long ll_RC

// First off check that word is available
IF NOT IsWord() THEN RETURN -1

SetPointer( HourGlass! )

// Connect to Word
iole_SpChk = CREATE OleObject
ll_RC = iole_SpChk.ConnectToNewObject( 'Word.Application' )

IF ll_RC <> 0 THEN
DESTROY iole_SpChk
RETURN ll_RC
END IF

SetPointer( HourGlass! )

Long ll_return,ll_len,ll_counter
String ls_replace

// Replace all CRLF's with CR's
this.ReplaceChar( as_Text, '~r~n', '~r' )

// Do the Word stuff - SPELL CHECK
iole_SpChk.Application.Visible = False
iole_SpChk.Application.WindowState = 2
iole_SpChk.Documents.Add()
iole_SpChk.Selection.TypeText( as_Text )
iole_SpChk.Selection.HomeKey()
iole_SpChk.Selection.MoveStart()
//new code
//iole_SpChk.Application.WindowState = 1
iole_SpChk.ActiveDocument.CheckSpelling()
//iole_SpChk.Application.WindowState = 2
iole_SpChk.ActiveDocument.Select()
as_Text = iole_SpChk.Selection.Text
iole_SpChk.ActiveDocument.Close( False )




Please help us..


Thanks
Vidhyadaran.A


Chris Pollach Posted on 2009-09-08 13:43:33.0Z
From: "Chris Pollach" <cpollach@travel-net.com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <797a6511-9a4a-4fca-9d82-fc150da41047@f18g2000prf.googlegroups.com>
Subject: Re: Spell Check Dialogue Problem in PB 11.5
Lines: 95
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <4aa65f85$1@forums-1-dub>
Date: 8 Sep 2009 06:43:33 -0700
X-Trace: forums-1-dub 1252417413 10.22.241.152 (8 Sep 2009 06:43:33 -0700)
X-Original-Trace: 8 Sep 2009 06:43:33 -0700, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:89921
Article PK: 419110

Hi Vidhyadaran;

Yes ... aren't O/S version nuances great <bg>?

I would suggest trying a FindWindow ( ) followed by a
SetForeGroundWindow ( ) SDK call to get the Spell Check dialog in front of
your PB application on Vista.

FYR;
FUNCTION ulong FindWindow ( ref string lpClassName, ref string
lpWindowName) Library "USER32.DLL" ALIAS FOR "FindWindowW"
FUNCTION boolean SetForegroundWindow (uLong hWindow) Library "USER32.DLL"


HTH

--
Regards ... Chris
ISUG - NA RUG Director
http://chrispollach.pbdjmagazine.com

"vidhya" <vidhyadaran.a@gmail.com> wrote in message
news:797a6511-9a4a-4fca-9d82-fc150da41047@f18g2000prf.googlegroups.com...
> Hi
>
>
> I am recently upgrade the OS XP to Vista. My powerbuilder version is
> 11.5.1.
>
>
> I had a problem with one window a problem related to spellcheck.
> Spellcheck dialogue box does not come in front but is behind the my
> application, Alt + Tab is used as a workaround it is working fine.
>
>
> But we didn't facing the above problem in XP OS.
> The problem is occur only Vista OS.
>
>
> Does any one have facing the releated issue?
>
> Herewith I am attaching the Source Code
>
> Long ll_RC
>
> // First off check that word is available
> IF NOT IsWord() THEN RETURN -1
>
> SetPointer( HourGlass! )
>
> // Connect to Word
> iole_SpChk = CREATE OleObject
> ll_RC = iole_SpChk.ConnectToNewObject( 'Word.Application' )
>
> IF ll_RC <> 0 THEN
> DESTROY iole_SpChk
> RETURN ll_RC
> END IF
>
> SetPointer( HourGlass! )
>
> Long ll_return,ll_len,ll_counter
> String ls_replace
>
> // Replace all CRLF's with CR's
> this.ReplaceChar( as_Text, '~r~n', '~r' )
>
> // Do the Word stuff - SPELL CHECK
> iole_SpChk.Application.Visible = False
> iole_SpChk.Application.WindowState = 2
> iole_SpChk.Documents.Add()
> iole_SpChk.Selection.TypeText( as_Text )
> iole_SpChk.Selection.HomeKey()
> iole_SpChk.Selection.MoveStart()
> //new code
> //iole_SpChk.Application.WindowState = 1
> iole_SpChk.ActiveDocument.CheckSpelling()
> //iole_SpChk.Application.WindowState = 2
> iole_SpChk.ActiveDocument.Select()
> as_Text = iole_SpChk.Selection.Text
> iole_SpChk.ActiveDocument.Close( False )
>
>
>
>
> Please help us..
>
>
> Thanks
> Vidhyadaran.A
>
>


vidhya Posted on 2009-09-14 14:21:26.0Z
From: vidhya <vidhyadaran.a@gmail.com>
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Re: Spell Check Dialogue Problem in PB 11.5
Date: Mon, 14 Sep 2009 07:21:26 -0700 (PDT)
Organization: http://groups.google.com
Lines: 167
Message-ID: <267b5f4b-c4aa-46ba-b2f9-bce140b26564@o36g2000vbl.googlegroups.com>
References: <797a6511-9a4a-4fca-9d82-fc150da41047@f18g2000prf.googlegroups.com> <4aa65f85$1@forums-1-dub>
NNTP-Posting-Host: 192.128.134.68
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1252938086 4765 127.0.0.1 (14 Sep 2009 14:21:26 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Mon, 14 Sep 2009 14:21:26 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: o36g2000vbl.googlegroups.com; posting-host=192.128.134.68; posting-account=DsoyLAoAAACZ-sz872y7GyAGpK2vWTMj
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; InfoPath.1),gzip(gfe),gzip(gfe)
Path: forums-1-dub!forums-master!newssvr.sybase.com!news-sj-1.sprintlink.net!news-peer1.sprintlink.net!nntp1.phx1.gblx.net!nntp.gblx.net!nntp.gblx.net!border2.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!o36g2000vbl.googlegroups.com!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:89948
Article PK: 419136

Hi ,

Thanks for your Suggesion.

I didn't called SDK method previously. When I include the below code,
I am always getting syntax error.

Please Help me. Where i put the below code.

Here is my actual Code structure.

Window Name - W_emp_appl_id
Window Function Name - Wf_spell_check

Window Function Code:

string ls_text
nvo_word_toolkit lnvo_word

If lnvo_word.SpChk_Init() = 1 Then
ls_text = dw_detail.Object.eai_notes[1]
If Len(ls_text) > 0 Then
lnvo_word.SpChk_Check(ls_text)
dw_detail.Object.eai_notes[1] = ls_text
End If
// close Word/OLE object
lnvo_word.SpChk_Close()



//SpChk_Init() Code:

Long ll_RC
IF NOT IsWord() THEN RETURN -1
SetPointer( HourGlass! )
iole_SpChk = CREATE OleObject
ll_RC = iole_SpChk.ConnectToNewObject( 'Word.Application' )

IF ll_RC <> 0 THEN
DESTROY iole_SpChk
RETURN ll_RC
END IF
RETURN 1
End if



//spchk_check Code

SetPointer( HourGlass! )

Long ll_return,ll_len,ll_counter
String ls_replace
iole_SpChk.Application.Visible = False
iole_SpChk.Application.WindowState = 2
iole_SpChk.Documents.Add()
iole_SpChk.Selection.TypeText( as_Text )
iole_SpChk.Selection.HomeKey()
iole_SpChk.Selection.MoveStart()
iole_SpChk.ActiveDocument.CheckSpelling()
iole_SpChk.ActiveDocument.Select()
as_Text = iole_SpChk.Selection.Text
iole_SpChk.ActiveDocument.Close( False )
RETURN 1


//SpChk_Close - Code

iole_SpChk.Application.Quit
iole_SpChk.DisconnectObject()
DESTROY iole_SpChk
RETURN 1

Please help me ...

Thanks
Vidhyadaran.A

On Sep 8, 6:43 pm, "Chris Pollach" <cpoll...@travel-net.com> wrote:
> Hi Vidhyadaran;
>
>     Yes ... aren't O/S version nuances great <bg>?
>
>     I would suggest trying a FindWindow ( ) followed by a
> SetForeGroundWindow ( ) SDK call to get theSpellCheckdialog in front of
> yourPBapplication on Vista.
>
> FYR;
> FUNCTION ulong  FindWindow ( ref string lpClassName, ref string
> lpWindowName) Library "USER32.DLL" ALIAS FOR "FindWindowW"
> FUNCTION boolean SetForegroundWindow (uLong hWindow) Library "USER32.DLL"
>
> HTH
>
> --
> Regards ... Chris
> ISUG - NA RUG Directorhttp://chrispollach.pbdjmagazine.com
>
> "vidhya" <vidhyadara...@gmail.com> wrote in message
>
> news:797a6511-9a4a-4fca-9d82-fc150da41047@f18g2000prf.googlegroups.com...
>
>
>
> > Hi
>
> > I am recently upgrade the OS XP to Vista. My powerbuilder version is
> > 11.5.1.
>
> > I had a problem with one window a problem related to spellcheck.
> > Spellcheck dialogue box does not come in front but is behind the my
> > application, Alt + Tab is used as a workaround it is working fine.
>
> > But we didn't facing the above problem in XP OS.
> > The problem is occur only Vista OS.
>
> > Does any one have facing the releatedissue?
>
> > Herewith I am attaching the Source Code
>
> > Long ll_RC
>
> > // First offcheckthat word is available
> > IF NOT IsWord() THEN RETURN -1
>
> > SetPointer( HourGlass! )
>
> > // Connect to Word
> > iole_SpChk = CREATE OleObject
> > ll_RC = iole_SpChk.ConnectToNewObject( 'Word.Application' )
>
> > IF ll_RC <> 0 THEN
> > DESTROY iole_SpChk
> > RETURN ll_RC
> > END IF
>
> > SetPointer( HourGlass! )
>
> > Long  ll_return,ll_len,ll_counter
> > String ls_replace
>
> > // Replace all CRLF's with CR's
> > this.ReplaceChar( as_Text, '~r~n', '~r' )
>
> > // Do the Word stuff -SPELLCHECK
> > iole_SpChk.Application.Visible = False
> > iole_SpChk.Application.WindowState = 2
> > iole_SpChk.Documents.Add()
> > iole_SpChk.Selection.TypeText( as_Text )
> > iole_SpChk.Selection.HomeKey()
> > iole_SpChk.Selection.MoveStart()
> > //new code
> > //iole_SpChk.Application.WindowState = 1
> > iole_SpChk.ActiveDocument.CheckSpelling()
> > //iole_SpChk.Application.WindowState = 2
> > iole_SpChk.ActiveDocument.Select()
> > as_Text = iole_SpChk.Selection.Text
> > iole_SpChk.ActiveDocument.Close( False )
>
> > Please help us..
>
> > Thanks
> > Vidhyadaran.A- Hide quoted text -
>
> - Show quoted text -


Bruce Armstrong Posted on 2009-09-09 03:48:58.0Z
From: Bruce Armstrong <NOCANSPAM_bruce.armstrong@yahoo.com>
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Re: Spell Check Dialogue Problem in PB 11.5
Reply-To: NOCANSPAM_bruce.armstrong@yahoo.com
Message-ID: <o99ea5lg80nsshgc20pkv5ghrt0sjtli1i@4ax.com>
References: <797a6511-9a4a-4fca-9d82-fc150da41047@f18g2000prf.googlegroups.com>
X-Newsreader: Forte Agent 5.00/32.1171
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Date: 8 Sep 2009 20:48:58 -0700
X-Trace: forums-1-dub 1252468138 10.22.241.152 (8 Sep 2009 20:48:58 -0700)
X-Original-Trace: 8 Sep 2009 20:48:58 -0700, vip152.sybase.com
Lines: 89
X-Authenticated-User: TeamSybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:89931
Article PK: 419119

You might want to consider a third party spell check solution (e.g.,
WSPELL http://www.wintertree-software.com/support/wspell/index.html).

Particularly if the target of the spell check is the RTF control. PB
11.5 has properties available that allow you to have spell check
interactive with that control.

On Sun, 6 Sep 2009 22:23:01 -0700 (PDT), vidhya

<vidhyadaran.a@gmail.com> wrote:

>Hi
>
>
>I am recently upgrade the OS XP to Vista. My powerbuilder version is
>11.5.1.
>
>
>I had a problem with one window a problem related to spellcheck.
>Spellcheck dialogue box does not come in front but is behind the my
>application, Alt + Tab is used as a workaround it is working fine.
>
>
> But we didn't facing the above problem in XP OS.
> The problem is occur only Vista OS.
>
>
>Does any one have facing the releated issue?
>
>Herewith I am attaching the Source Code
>
>Long ll_RC
>
>// First off check that word is available
>IF NOT IsWord() THEN RETURN -1
>
>SetPointer( HourGlass! )
>
>// Connect to Word
>iole_SpChk = CREATE OleObject
>ll_RC = iole_SpChk.ConnectToNewObject( 'Word.Application' )
>
>IF ll_RC <> 0 THEN
> DESTROY iole_SpChk
> RETURN ll_RC
>END IF
>
>SetPointer( HourGlass! )
>
>Long ll_return,ll_len,ll_counter
>String ls_replace
>
>// Replace all CRLF's with CR's
>this.ReplaceChar( as_Text, '~r~n', '~r' )
>
>// Do the Word stuff - SPELL CHECK
>iole_SpChk.Application.Visible = False
>iole_SpChk.Application.WindowState = 2
>iole_SpChk.Documents.Add()
>iole_SpChk.Selection.TypeText( as_Text )
>iole_SpChk.Selection.HomeKey()
>iole_SpChk.Selection.MoveStart()
>//new code
>//iole_SpChk.Application.WindowState = 1
>iole_SpChk.ActiveDocument.CheckSpelling()
>//iole_SpChk.Application.WindowState = 2
>iole_SpChk.ActiveDocument.Select()
>as_Text = iole_SpChk.Selection.Text
>iole_SpChk.ActiveDocument.Close( False )
>
>
>
>
>Please help us..
>
>
>Thanks
>Vidhyadaran.A
>

-----------------------------------

My Web 2.0 Stuff

Blog: http://bruce.pbdjmagazine.com/
Facebook: http://www.facebook.com/people/Bruce-Armstrong/1600223798
Fotki: http://public.fotki.com/brucearmstrong/
LinkedIn: http://www.linkedin.com/in/bruceaarmstrong
Twitter: http://twitter.com/bruce_armstrong
YouTube: http://www.youtube.com/user/brucearmstrong