Title: windowState maximized has no effect Post by: Stefan S. 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 Title: Re: windowState maximized has no effect Post by: Bernard M. 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. |