Quick Links: Download Gideros Studio | Gideros Documentation | Gideros Development Center | Gideros community chat
win desktop export: windowed / full screen questions - Gideros Forum

win desktop export: windowed / full screen questions

piepie Member
edited August 2015 in General questions
Hi, I was playing with the windows desktop export and I was wondering:

1) Is there a method to set an app to start in "full screen"? I am thinking about something like: Application:setFullScreen(true)

2) Is there a way to switch back to "windowed mode" if desktop exported app has been set fullscreen with the Windows' "maximize window" button?

Thank you :)

Comments

  • tkhnomantkhnoman Member
    Accepted Answer
    1) On start of the app, you can just fire application:setFullScreen(true)

    2) If you use windowed mode, you need to provide with a button with application:setFullScreen(false) yourself within the app.

    Currently you also can do application:set() and application:get() in desktop export, you can obtain available API with application:set("help") and application:get("help")

    If you need another desktop window function, just tell me.
  • MoKaLuxMoKaLux Member
    edited January 2
    Hope you are all doing fine :) ,
    I have a question please.
    How can I get the position of my app on my windows screen?
    I tried this code:
    print(application:get("help"))
    print(application:get("help"))
    --[[
    	Accepted value for Desktop's application:get()
    	- [x,y] windowPosition
    	- [w,h] windowSize
    	- [w,h] screenSize
    	- [x,y] cursorPosition
    	- [text] clipboard
    	- [text] windowTitle
    	- [path] directory(where//help)
    	- [path] openDirectoryDialog(title|path//help)
    	- [path] openFileDialog(title|path|extensions//help)
    	- [path] saveFileDialog(title|path|extensions//help)
    	- [path] documentDirectory
    	- [path] temporaryDirectory
    	0
    ]]
    print(application:get("windowPosition"))
    print(application:get("windowSize"), application:get("screenSize"))
    All the results are always 0.
    Is my code correct?

    When I use application:set(...) this works fine:
    print(application:set("help"))
    application:set("windowTitle", "Gideros Rocks!")
    application:set("windowPosition", 64, 64)
    ...

    How can I position my app to be in the center of the screen (windows 10)?

    Thank you for your help.
    EDIT: I tried it in the gideros player and on a windows export.
  • I wanted to polish the current tool but this will have to wait. So here you have it.
    This tool allows you to test every transitions and easings available (as per gideros github samples). Enjoy!
    PS: you can compile it to windows so you have it as a normal windows app.
    zip
    zip
    Gideros_Transitions_Easings.zip
    341K
Sign In or Register to comment.