Skip to main content

Hi Chris.. I know you knew this.

I'm using NetExpress V3.10 and now I'm having problem with my program.GS where sizes of my GUI windows varies according to the size of the monitor.

When I MAXIMIZE the window, it places my buttons (and fields) in different places with adjusted sizes. Do we have a "default" dynamic resizing for .GS files? So that it won't resize (or it will resize in perfect sizes)... depending of the size of the monitors.


#dialogsystem
#netexpress3.10

Hi Chris.. I know you knew this.

I'm using NetExpress V3.10 and now I'm having problem with my program.GS where sizes of my GUI windows varies according to the size of the monitor.

When I MAXIMIZE the window, it places my buttons (and fields) in different places with adjusted sizes. Do we have a "default" dynamic resizing for .GS files? So that it won't resize (or it will resize in perfect sizes)... depending of the size of the monitors.


#dialogsystem
#netexpress3.10
There is a demo of how to do resizing under the Examples\\Dialog System\\sizetest folder.
The NX docs for this are: (You are using 3.1 which is quite old so I don't expect that newer resolutions will be reported)

Multiple Resolution and Dynamic Window Sizing
Both the multiple resolution and dynamic window sizing features are enabled by a CALLOUT to "dsrtcfg" with a flag of 9 and an identifier that tells Dialog System what resolution the screenset was defined in.

Dialog System uses Panels V2 generic coordinates, which provides a basis for cross-resolution support and compatibility with differing graphics adapters. This results in differing coordinate values for what otherwise appear to be the same resolution value.

To check the value you need for your definition platform, a verification program is supplied with Dialog System: this displays a message box identifying the resolution identifier you need to use to implement the changes.

This is executed as follows:

runw dsreschk
This program displays a resolution identifier to be passed to the Dialog System run-time call as detailed below. Code the following dialog in your SCREENSET-INITIALIZED, or other dialog table which will be executed before the windows creation:

CLEAR-CALLOUT-PARAMETERS $NULL
CALLOUT-PARAMETER 1 CONFIG-FLAG $NULL
CALLOUT-PARAMETER 2 CONFIG-VALUE $NULL
MOVE 9 CONFIG-FLAG
MOVE <resolution id> CONFIG-VALUE
CALLOUT "dsrtcfg" 3 $PARMLIST
* CONFIG-FLAG and CONFIG-VALUE should be C5 4 byte data fields.
The demonstration screenset sizetest.gs demonstrates the use of this functionality.

Once enabled, you can switch off dynamic sizing by a further CALLOUT as detailed above, with a CONFIG-VALUE set to 0.

This screenset was defined under 1024x768 resolution. Simply run the screenset on any resolution monitor. The windows will be created at an appropriate size, and any resizing by dragging of the windows size border automatically repositions all windows and gadgets in an appropriate position.

Hi Chris.. I know you knew this.

I'm using NetExpress V3.10 and now I'm having problem with my program.GS where sizes of my GUI windows varies according to the size of the monitor.

When I MAXIMIZE the window, it places my buttons (and fields) in different places with adjusted sizes. Do we have a "default" dynamic resizing for .GS files? So that it won't resize (or it will resize in perfect sizes)... depending of the size of the monitors.


#dialogsystem
#netexpress3.10
what is the 1024x768 resolution <resolution id>?

What I have in my code is as follows;
CALLOUT-PARAMETER 1 CONFIG-FLAG $NULL
CALLOUT-PARAMETER 2 CONFIG-VALUE $NULL
MOVE 9 CONFIG-FLAG
*// MOVE 3 CONFIG-VALUE
MOVE 0 CONFIG-VALUE
CALLOUT "dsrtcfg" 3 $PARMLIST

Currently I'm using '0'; how many resolution IDs we have in NetExpress v3.10 Chris?

Hi Chris.. I know you knew this.

I'm using NetExpress V3.10 and now I'm having problem with my program.GS where sizes of my GUI windows varies according to the size of the monitor.

When I MAXIMIZE the window, it places my buttons (and fields) in different places with adjusted sizes. Do we have a "default" dynamic resizing for .GS files? So that it won't resize (or it will resize in perfect sizes)... depending of the size of the monitors.


#dialogsystem
#netexpress3.10
If you set your screen to the desired resolution and then run the command "run dsreschk" it should show you the value to use. When I set mine to 1024 x 769 the value returned is 8.

I am really not sure how many are supported in 3.1. If you set your resolution to a value that is not recognized by run dsreschk it will display a message that it is not supported. We have been adding new ones to the NX 5.1 product as they become necessary.

Hi Chris.. I know you knew this.

I'm using NetExpress V3.10 and now I'm having problem with my program.GS where sizes of my GUI windows varies according to the size of the monitor.

When I MAXIMIZE the window, it places my buttons (and fields) in different places with adjusted sizes. Do we have a "default" dynamic resizing for .GS files? So that it won't resize (or it will resize in perfect sizes)... depending of the size of the monitors.


#dialogsystem
#netexpress3.10
Thanks Chris... yes Im going to just do that. Thanks.