Alaska Software Inc. - WAA UI
Username: Password:
AuthorTopic: WAA UI
Bruce AndersonWAA UI
on Tue, 21 Sep 2004 14:19:23 -0500
I am running WAA 1.80.  The UI is a window that cannot be resized, the 
Statistics window has the vars stepping on the captions, and the Server log 
window is not wide enough to show the line messages.  Is there an improved 
version of this UI?
Thomas Braun Re: WAA UI
on Wed, 22 Sep 2004 09:00:45 +0200
Bruce Anderson wrote:

> I am running WAA 1.80.  The UI is a window that cannot be resized, the 
> Statistics window has the vars stepping on the captions, and the Server log 
> window is not wide enough to show the line messages.  Is there an improved 
> version of this UI?

You can use the following approach to manipulate the WAA main window from
within the _register() function:

   oDlg  := AppDesktop():Childlist()[1]
   oDlg:Hide()

   oStat  := AppDesktop():Childlist()[1]:drawingarea:childlist()[2]
   oStat2 := oStat:ChildList()[1]
   oList  := oStat:ChildList()[2]
   oList:Clear()
   oList:SetFontCompoundName("8.Courier New")

   oDlg:SetPosAndSize({50,150}, {753,307})
   oStat:SetSize({574,276})
   oStat2:SetSize({574,24})
   oList:SetSize({574,240})
   oDlg:Show()

You can use oList:AddItem() to add your own log messages to the log display
(unfortunately, you can't add anything to the log file this way...)

HTH 
Thomas Braun
Bruce AndersonRe: WAA UI
on Thu, 23 Sep 2004 06:05:45 -0500
I t helps quite a bit.  Can the other child objects be accessed so that I 
can expand the window on the left with the tree and open up the server 
statistics window?  Also, what happens when WAA has more than one DLL 
package loaded, each with its own possible dialog modifications?
Thomas Braun Re: WAA UI
on Thu, 23 Sep 2004 13:44:40 +0200
Bruce Anderson wrote:

> I t helps quite a bit.  Can the other child objects be accessed so that I 
> can expand the window on the left with the tree and open up the server 
> statistics window?

Of course, but it is quite a bit of a detective work to find out how the
object hierarchy is constructed...

> Also, what happens when WAA has more than one DLL 
> package loaded, each with its own possible dialog modifications?

I'mnot quite sure what you are meaning... I think the package detail page
is the same for all packages.

Thomas Braun
Phil Ide
Re: WAA UI
on Thu, 23 Sep 2004 14:59:48 +0100
Bruce,

>> I t helps quite a bit.  Can the other child objects be accessed so that I 
>> can expand the window on the left with the tree and open up the server 
>> statistics window?
> 
> Of course, but it is quite a bit of a detective work to find out how the
> object hierarchy is constructed...

Take a look at:

  36 Retrieve WAA stats and set WAA console page 

on my site.  This has these definitions in the project:

 Order of items in the treeview
#define TV_ITEM_HOSTINFO    1
#define TV_ITEM_DBE         2
#define TV_ITEM_PACKAGES    3
#define TV_ITEM_STATISTICS  4
#define TV_ITEM_SERVERLOG   5

 order of items on the Statistics page
#define WAA_STATS_DAYS_RUNNING      01
#define WAA_STATS_WORKER_THREADS    02
#define WAA_STATS_WORKLOAD_PEAK     03
#define WAA_STATS_MAX_SERVICE_TIME  04
#define WAA_STATS_AVG_SERVICE_TIME  05
#define WAA_STATS_TOTAL             06
#define WAA_STATS_COMMIT            07
#define WAA_STATS_ABORT             08
#define WAA_STATS_PKG_ERROR         09
#define WAA_STATS_PKG_NA            10
#define WAA_STATS_SIZE              10

>> Also, what happens when WAA has more than one DLL 
>> package loaded, each with its own possible dialog modifications?

The packages are loaded one at a time.  As each is loaded, it will impose
it's own specifications on the dialog - the last package loaded will have
the final say 

Regards,

Phil Ide

***************************************
* Xbase++ FAQ, Libraries and Sources: *
* goto: http://www.idep.org.uk/xbase  *
***************************************

Does Tasha have a Data entry problem?
Thomas Braun
Re: WAA UI
on Thu, 23 Sep 2004 21:09:53 +0200
On Thu, 23 Sep 2004 14:59:48 +0100, Phil Ide wrote:

> Take a look at:
>
>   36 Retrieve WAA stats and set WAA console page
>
> on my site.  This has these definitions in the project:

noooohhhh... I had to find it out all on my own... If I just had remembered
your web site, it would have saved me a lot of time 


Thomas

Xbase++ FAQ : www.software-braun.de/xbasecentral/xbfaq/
Sometimes I lie awake at night, and I ask, "Where have I gone wrong?" Then
a voice says to me, "This is going to take more than one night."
	         -- Charlie Brown, "Peanuts" [Charles Schulz]