Four Js Development Tools Forum

Discussions by product => GDC => Topic started by: Gary C. on May 06, 2011, 09:34:17 pm



Title: Window Position
Post by: Gary C. on May 06, 2011, 09:34:17 pm
Hi

I have attached two screenshots of the initial login screen presented to our users, one using Linux and one Windows 7 (both pointing to the same GAS server).

As you can see the Linux version is centered as desired but on Windows it is positioned very low making it unusable.

Here is the style that is applied:


  <Style name='Window.login'>
    <StyleAttribute name='defaultStatusBar'      value='0'/>
    <StyleAttribute name='windowType'             value='modal' />
    <StyleAttribute name='sizable'                      value='no' />
    <StyleAttribute name='forceDefaultSettings' value='1' />
    <StyleAttribute name='position'                     value='center' />
    <StyleAttribute name='border'                       value='none' />
    <StyleAttribute name='actionPanelPosition'   value='none' />
    <StyleAttribute name='showDefaultActions'   value='none'/>
    <StyleAttribute name='ringMenuPosition'       value='none' />
    <StyleAttribute name='startMenuPosition'      value='none' />
    <StyleAttribute name='toolBarPosition'          value='none'/>
    <StyleAttribute name='statusBarType'           value='none'/>
    <StyleAttribute name="backgroundColor"      value="white"/>
  </Style>

Can anyone suggest what I may be doing wrong or how to get the form centered on both operating systems.

Thanks

Gary


Title: Re: Window Position
Post by: . on May 06, 2011, 10:47:49 pm
Hi Gary,

As this is more a support issue, I would recommend to contact your support center and give them all the details (ideally: exact version of GDC, FGL, GAS + a GDC log or a small application that reproduces the issue).
Please also give them your screen resolution.

You may also try without / clearing stored settings: for historical reasons, "center" is overwritten by stored settings, so if you moved the login window once, the position will be remembered. You may try "center2" value for position: it moves the window in the center of the previous one (you may need a refresh in between) without looking at the settings.


With all the details your support center should find what's going wrong.
Regards,
Pierre-Nicolas


Title: Re: Window Position
Post by: Reuben B. on May 09, 2011, 11:56:01 pm
Out of curiousity, is this a customized login box https://4js.com/online_documentation/fjs-gdc-manual-html/User/CustLogin.html, or a 4gl OPEN WINDOW, INPUT BY NAME login, password?

Also with regards to stored settings, I always recommend that developers disable stored settings on their GDC, and that your QA testers clear the stored settings each time before starting a test run.  That way the position and width attributes of the window/forms you see when you are developing will be as the user sees them the first time they run the application. 


Title: Re: Window Position
Post by: Gary C. on May 10, 2011, 08:50:39 am
Hi

It is the later, i.e. a 4gl/per INPUT BY NAME solution.

Following Pierre's advice I logged a support call. Neil was able to reproduce the issue and very quickly provided me with a very satisfactory workaround.