treehousefrog Member Licensed User Longtime User Dec 16, 2013 #1 Hey! Amazing job on B4J Erel, you did it again! Had a pretty simple program I'd written with no libraries and was amazed to find I could pretty much cut and paste it to get it to run! This will be very useful :-D Anyway, I was wondering whether there's a way i could get my programs to run automatically in full screen? I've developed a game that I'm porting over and would love it to fill the screen... Am wondering whether there'd ever be a chance of getting it onto Steam... is that stupidly ambitious? Would they allow such a thing? (Assuming the game was good?) Thanks again! :-D
Hey! Amazing job on B4J Erel, you did it again! Had a pretty simple program I'd written with no libraries and was amazed to find I could pretty much cut and paste it to get it to run! This will be very useful :-D Anyway, I was wondering whether there's a way i could get my programs to run automatically in full screen? I've developed a game that I'm porting over and would love it to fill the screen... Am wondering whether there'd ever be a chance of getting it onto Steam... is that stupidly ambitious? Would they allow such a thing? (Assuming the game was good?) Thanks again! :-D
alienhunter Active Member Licensed User Longtime User Dec 17, 2013 #2 to your screen problem http://www.b4x.com/android/forum/threads/nodes-views-controls-tips.35032/ Upvote 0
treehousefrog Member Licensed User Longtime User Dec 17, 2013 #3 Hey man, thanks for answering but it wasn't quite what I meant I mean, is there a way to get an application to fill the screen - as in to be completely non-windowed? Thanks again all! Upvote 0
Hey man, thanks for answering but it wasn't quite what I meant I mean, is there a way to get an application to fill the screen - as in to be completely non-windowed? Thanks again all!
Erel B4X founder Staff member Licensed User Longtime User Dec 18, 2013 #4 You can use this code: Code: Sub AppStart (Form1 As Form, Args() As String) MainForm = Form1 Dim jmf As JavaObject = MainForm Dim stage As JavaObject = jmf.GetField("stage") stage.RunMethod("setFullScreen", Array As Object(True)) MainForm.Show End Sub http://docs.oracle.com/javafx/2/api/javafx/stage/Stage.html#setFullScreen(boolean) Upvote 0
You can use this code: Code: Sub AppStart (Form1 As Form, Args() As String) MainForm = Form1 Dim jmf As JavaObject = MainForm Dim stage As JavaObject = jmf.GetField("stage") stage.RunMethod("setFullScreen", Array As Object(True)) MainForm.Show End Sub http://docs.oracle.com/javafx/2/api/javafx/stage/Stage.html#setFullScreen(boolean)
treehousefrog Member Licensed User Longtime User Dec 18, 2013 #5 Excellent that did it :-D Thanks again Erel! Upvote 0