12-17-2013 11:58 AM
Hello i ask here before but no answer given.
i wrote a game in cvi.
Is there a command to run the game in full screen mode? and i dont mean to just maximize the panel!!
12-17-2013 01:47 PM
Hello silentbilos,
I think a good start would be to set Titlebar Visible to false. This will hide the borders and title bar (including buttons).Then you could resize the application to the client's resolution or maximize the panel (using SetPanelAttribute([panel handle], ATTR_WINDOW_ZOOM , VAL_MAXIMIZE);), whichever works best for you.
Regards,
=Nelu F. || National Instruments.
12-17-2013 01:55 PM
Hi Nelu F,
I just tried your suggestion (using CVI2013f1): setting Title Bar Visible to false does not work... it remains visible
12-17-2013 02:07 PM
Hello silentbilos,
I attached a sample that is shipped with LabWindows/CVI that I modified as I suggested. Does it work for you?
Thanks!
=Nelu F. || National Instruments.
12-18-2013 02:21 AM
Hey thanks for helping.. the sample is not working but i successfully run it on full screen
now i have another problem... see if u can help me
i made a game kind of like super mario. and lets say i put a coin at x=100. and if mario is on it .. then bla bla bla...
now when i full screen it.. it change the resolution.. and although it looks like mario is on the coin.. he isnt! so the game doesnt do what it need to do
i tried all the panel attribute such as resolution adjustment and all other options when the items is resize with the panel.
visually, it looks good.. the panel and the items go full screen
but now i have to change all my code in order for the game to run as it need to be run.
is there a solutions?
12-18-2013 02:47 AM
silentbilos ha scritto:
Hello i ask here before but no answer given.
i wrote a game in cvi.
Is there a command to run the game in full screen mode? and i dont mean to just maximize the panel!!
Hello silentbilos,
the highlighted sentence is not true. I answered you here: did you read it and tried solution proposed int he link given? NeluF hint does not prevent the user from displaying the taskbar (and hence have access to the system) by pressing Windows button or Ctrl+Esc.