Subscribe for automatic updates: RSS icon RSS

Login icon Sign in for full access | Help icon Help
Advanced search

Pages: [1]
  Reply  |  Print  
Author Topic: windowState maximized has no effect  (Read 11497 times)
Stefan S.
Posts: 90


« on: February 01, 2008, 11:15:24 am »

Hello List,
I try to start a Program always "maximized", but the entry in the *.4st File has no effect

4st file
.....

  <Style name="Window.lutz">
     <StyleAttribute name="windowState" value="maximized" />
     <StyleAttribute name="windowType" value="modal" />
     <StyleAttribute name="windowOptionMinimize" value="yes" />
     <StyleAttribute name="windowOptionMaximize" value="yes" />
     <StyleAttribute name="sizable" value="yes" />
     <StyleAttribute name="actionPanelPosition" value="right" />
     <StyleAttribute name="ringMenuPosition" value="top" />
     <StyleAttribute name="ringMenuButtonSize" value="shrink" />
  </Style>
.....

per file
----
database formonly
layout (windowstyle="lutz")
   vbox
      group (text=%"Arbeitsplatz-Übersicht")
         table(style="zeile fett")
            {
             [f1  |f2                            |f3 |ff  |f4                        |f5      |f6|f7]
             [f1  |f2                            |f3 |ff  |f4                        |f5      |f6|f7]
             [f1  |f2                            |f3 |ff  |f4                        |f5      |f6|f7]
             [f1  |f2                            |f3 |ff  |f4                        |f5      |f6|f7]
             [f1  |f2                            |f3 |ff  |f4                        |f5      |f6|f7]
             [f1  |f2                            |f3 |ff  |f4                        |f5      |f6|f7]
             [f1  |f2                            |f3 |ff  |f4                        |f5      |f6|f7]
             [f1  |f2                            |f3 |ff  |f4                        |f5      |f6|f7]
             [f1  |f2                            |f3 |ff  |f4                        |f5      |f6|f7]
             [f1  |f2                            |f3 |ff  |f4                        |f5      |f6|f7]
             [f1  |f2                            |f3 |ff  |f4                        |f5      |f6|f7]
             [f1  |f2                            |f3 |ff  |f4                        |f5      |f6|f7]
            }
         end
      end
......

in the 4gl file
..
   call ui.Interface.loadStyles("LutzStyle.4st")
   call ui.Interface.loadActionDefaults("LutzAD")


   call startlog ("errorlog")

   options  prompt  line last,
            message line last,
            form line first + 2,
            input wrap,
            insert key   F17,
            delete key   F18,
            next key     F32,
            previous key F31

   open form f1 from "bde105_0_1"
   display form f1
---------------------------------------------
when changing the values of actionPanelPosition f.e. that works fine.

Has anybodoy an idea whats worng with my files ???

Many thanks in advance

Stefan Serwe




Bernard M.
Four Js
Posts: 45


« Reply #1 on: February 01, 2008, 02:49:01 pm »

Try with the forceDefaultSettings window style attibute set to 1:

   <StyleAttribute name="forceDefaultSettings" value="1" />

This style attribute indicates GDC that the settings of the window won't be stored and next time you restart the application it will have the parameters you defined in the .per.

And be careful when using ui.Interface.loadStyles(). If you give a simple file name to this method it has to be without the 4st extension!

Best regards. 
« Last Edit: February 01, 2008, 02:52:26 pm »
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines