1. James Beck
  2. PowerBuilder
  3. Tuesday, 19 April 2022 20:02 PM UTC

We use the following code to be able to get a reference to the TX Text Control ActiveX 15:

uLong iul_hWin//, iul_hWin2

iul_hWin = Handle ( rte_note)
iul_hWin = FindWindowEx ( iul_hWin, 0, "PBTxTextControl", 0 )
iul_hWin = FindWindowEx ( iul_hWin, 0, "AfxOleControl42u", 0 )
iul_hWin = FindWindowEx ( iul_hWin, 0, "TX15P", 0 )

And then can use the uLong reference for the Sentry SpellCheck:

SSCE_CheckCtrlBackgroundRecheckAll(iul_hWin, 8, RGB (255, 0, 0 ))

Does anyone know how to get the Refence to the TX Text Control ActiveX 28 in Powerbuilder 2021, Build 1506.

Thanks
Jim

 

 

Accepted Answer
Mark Lee @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 20 April 2022 07:37 AM UTC
  2. PowerBuilder
  3. # Permalink

Hi Jim,

Please try to work around it with the following code:

iul_hWin = FindWindowEx ( iul_hWin, 0, "PBTxTextControl", 0 )
iul_hWin = FindWindowEx ( iul_hWin, 0, "AfxOleControl90u", 0 )
iul_hWin = FindWindowEx ( iul_hWin, 0, "TX28", 0 )

 

If it still doesn't resolve the issue, please provide a reproducible test case(PBT/PBL) to us for more analysis.

BTW, for the different class names for different PB versions, you can use the Spy++ tool that comes with VS to get the relevant information.

 

Regards,

Comment
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 20 April 2022 14:44 PM UTC
  2. PowerBuilder
  3. # 1

Hi Jim;

  Here is my WinExplorer PB App that I mentioned in an earlier reply. Note that can it locate the classes in memory as Mark suggests. It's a great App for seeing everything in any MS-Windows O/S including internal tasks, services, system tray, etc processes. Also, if you do not own the Enterprise Version of VS to get SPY++ - WinExplorer is also free. PLus, it's all written in PowerScript - so you can see the full "power" of PowerBuilder at work! ;-)

Regards ... Chris

Comment
There are no comments made yet.
James Beck Accepted Answer Pending Moderation
  1. Wednesday, 20 April 2022 12:34 PM UTC
  2. PowerBuilder
  3. # 2

Thanks, the following works:

uLong iul_hWin

iul_hWin = Handle ( rte_note)
iul_hWin = FindWindowEx ( iul_hWin, 0, "PBTxTextControl", 0 )
iul_hWin = FindWindowEx ( iul_hWin, 0, "AfxOleControl90u", 0 )
iul_hWin = FindWindowEx ( iul_hWin, 0, "TX28", 0 )


SSCE_CheckCtrlBackgroundRecheckAll(iul_hWin, 8, RGB (255, 0, 0 ))


Thanks
Jim

 

 

Comment
There are no comments made yet.
Miguel Leeuwe Accepted Answer Pending Moderation
  1. Wednesday, 20 April 2022 07:16 AM UTC
  2. PowerBuilder
  3. # 3

Hi,

There's a little program called WinID: https://dennisbabkin.com/winid/

 

Use "TX28" and "AfxOleControl90u".

Regards

MiguelL

Comment
There are no comments made yet.
Andreas Mykonios Accepted Answer Pending Moderation
  1. Wednesday, 20 April 2022 06:33 AM UTC
  2. PowerBuilder
  3. # 4

Does iul_hWin = FindWindowEx ( iul_hWin, 0, "TX28", 0 ) works?

Andreas.

 

Comment
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 19 April 2022 20:51 PM UTC
  2. PowerBuilder
  3. # 5

Hi Jim;

  My guess is that they changed the "Class" names.  This might help you snoop around for them...

http://chrispollach.blogspot.com/2022/03/explorer.html

HTH

Regards ... Chris

 

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.