Menu

#136 Starting window dimension

V1.11
closed
nobody
None
2024-12-28
2023-03-14
Anonymous
No

Ticket type : Incident

Description : Hello !

congratulations for the project, I find it very useful and I intend to use this technology to create an accounting management software.

I have a question : in versions prior to 1.11.1 it was possible to set a predetermined size for the initial window, in case of autonomous mode : tabs. I noticed that in the current version, the window always opens at the (almost) full page size, ie it's not full screen, but it seems to calculate a size based on the system DPI.

Would it be possible in the next versions, to be able to set a default size programmatically ? And, eventually, to be able to set the window state to maximized if desired?

Thanks for the reply, and keep developing this nice IDE!

Cesare

System information : Windows 64 bits / Windows 10 Pro

Discussion

  • neuts-jl

    neuts-jl - 2023-04-06

    Hello I take notes and I put in place a solution for the next version

     
  • neuts-jl

    neuts-jl - 2023-04-16

    Hello, here is a solution applicable now, in lua code to place in the main form on the event "ActionOnTimer" and "ActionOnLoaded"

    function frmMain:ActionOnTimer()
      self.setProperty('TimerInterval',0)
      if nsbase.application.runmode then
        nsbase.application.width=900
        nsbase.application.height=600
        nsbase.application.centerForm()
      end
    end
    
    function frmMain:ActionOnLoaded()
      self.setProperty('TimerInterval',1)
    end               
    
     

    Last edit: neuts-jl 2023-04-16
    • Anonymous

      Anonymous - 2023-06-01

      Hello, it works ! There's just a little delay until resizing, but it's acceptable.

      Thank you

       
  • Neuts-jl

    Neuts-jl - 2024-12-28
    • status: --> closed
    • Group: --> V1.11
     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB