Simplicty and flexibility!

DataEase Service Windows

The new service windows are the new way of controlling both DataEase and your application. 

The old toolbars/file menus etc. are way to rigid and inflexible for a fast evolving product like DataEase. They have hampered the flexibility of the product since its inception in 1992.

You can define the service windows as property of your DataEase (we will do that) or as part of your application.
DATAEASE.INI or RDRRxAAA.INI

[SERVICE WINDOW1]
[SERVICE WINDOW2]
[SERVICE WINDOW3]
[SERVICE WINDOW4]

Service windows has priority so 1/2 is the highest and  3/4 is the lowest. This means that if you have 1 at top or bottom, it will go left to right and if you have it at left or right it will go top to bottom.
3 and 4 will give way so will squeeze between 1 and 2.

if you have 3 at top and 4 at left then 3 will go left to right and 4 will squeeze under 3 and go to bottom.

This means you can build a "toolbar" structure any way you like by simply using the correct Service Window in the right place.

If you want a full toolbar at top and a object bar to the right going all the way to the bottom and then a status bar at the bottom starting after the object bar and going all to the right and a squeezed info bar to the right you would do:
S1 - Top

S2 - Left
S3 - Bottom
s4 - Right.

Parameters:
ServiceWindowSwitchMode = 0 -- 0 (default) do not reload on context change, 1 do reload on context change.

ServiceWindowLocation = 1 -- 1 through 5 where 1 is top, 2 is bottom, 3 is left and 4 is right and finally 5 is floating.

ServiceWindowSize = 45 -- width or height of service window depending 
ServiceWindowStyle = (Default no style) WINDOW *1) ex. WS_CAPTION will give Caption.

SrvWndDef = http://localhost:8787/RT1

SrvWndRT = http://localhost:8787/RT1

SrvWndDT = http://localhost:8787/DT1

SrvWndSE = http://localhost:8787/RT1

System Version:

We also use SetState() to show ServiceWindows which is the new "toolbars" in DE8.6 onwards. These are 4 browser windows that can be utilised as part of your application as well.

SetState("ServiceWindow1","Show")
SetState("ServiceWindow4","Hide")
SetState("ServiceWIndow3","Refresh") -- refresh/reload content of service window.

Also see MoveObject()

Ex.
MoveObject("ServiceWindow1","L150","") 

*1) https://msdn.microsoft.com/en-us/library/windows/d....aspx

Published: 13/08/17 - 11:14:04 (Amanda Higgins)

Related Articles

DataEase Service Windows