LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Full Screen run

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!!

0 Kudos
Message 1 of 6
(5,190 Views)

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.

0 Kudos
Message 2 of 6
(5,183 Views)

Hi Nelu F,

 

I just tried your suggestion (using CVI2013f1): setting Title Bar Visible to false does not work... it remains visible

 

title.png

0 Kudos
Message 3 of 6
(5,180 Views)

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.

0 Kudos
Message 4 of 6
(5,176 Views)

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?

0 Kudos
Message 5 of 6
(5,147 Views)

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.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 6 of 6
(5,140 Views)