Reading apl top level window ?

forum.cdk (1998-2005) & forum.td.cdk (2005-2010)
Artb

Reading apl top level window ?

Post by Artb » 18 Feb 2003, 16:48

 Posted by:  Artb 

Hi there,

Does anybody know how to read/access the top level windows loaded through a
APL in an application's library? Is it possible without opening the APL file
apart?

Using EnumTopLevelWindows() I just have access to the windows that belong to
the APP.

Using only CDK SAL classes/functions here.

Regards,

Art

Jonas Mandahl Pedersen

Re: Rreading apl top level window ?

Post by Jonas Mandahl Pedersen » 19 Feb 2003, 09:55

 Posted by:  Jonas Mandahl Pedersen 

You have to initialize the cdk application object with the wanted apl:

Code: Select all

If CDK_App.InitFromFile( APL FILE NAME)
    Set nWindows = CDK_App.EnumTopLevelWindows()
Regards
Jonas

W.P.Nijhof

Re: Rreading apl top level window ?

Post by W.P.Nijhof » 19 Feb 2003, 10:05

 Posted by:  W.P.Nijhof 

In article , a_barca@hotmail.com
says...
You can either
1. Start your CDK app as a user tool from the IDE; you'll see all
objects in the app
2. Use SalOutlineMergeIncludes( HOUTLINE )

Success,
--
WayPay

Charles McLouth

Re: Rreading apl top level window ?

Post by Charles McLouth » 19 Feb 2003, 18:56

 Posted by:  Charles McLouth 

In the CDK, Refresh the Libraries after InitFromFile. Then you will see
them all.

charlie

Artb

Re: Rreading apl top level window ?

Post by Artb » 19 Feb 2003, 20:35

 Posted by:  Artb 

Thanks Charlie, it works!!!
Art

Charles McLouth

Re: Rreading apl top level window ?

Post by Charles McLouth » 20 Feb 2003, 02:15

 Posted by:  Charles McLouth 

The reason why it works is that a "Refresh Libraries" is not performed, when
you open a source file with the CDK (it only happens when you open a source
file in the IDE.)

charlie

Return to “td.cdk”

Who is online

Users browsing this forum: [Ccbot] and 0 guests