Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
vs GUI Updates - the latest from b+
#6
If you want to start a GUI app from the Controls Editor, it will set you up with starting Template.

Here is an example of what it wrote for me for a 1 Label App start. I have inserted  <<< comments in places in a couple of areas:
Code: (Select All)
'$include:'vs GUI.BI'
'   Set Globals from BI              your Title here VVV
Xmax = 1280: Ymax = 720: GuiTitle$ = "GUI One Label"

' >>> FontFile$ = "arial.ttf" ... a .ttf Font File is needed as 4th parameter on next line
OpenWindow Xmax, Ymax, GuiTitle$, FontFile$ ' <<< inserted last parameter need to do this before drawing anything from NewControls

' >>> Next line is needed only if you want to edit controls in the Controls Editor
' GUI Controls
'                     Dim and set Globals for GUI app
Dim Shared As Long lblScreen
lblScreen = NewControl(4, 10, 10, 1200, 30, 30, 50, 669, "Testing the save of one label to start a GUI bas application")
' End GUI Controls
' >>> Above line is needed if you want to edit your controls in the Controls Editor

MainRouter ' after all controls setup

Sub BtnClickEvent (i As Long)
    Select Case i
    End Select
End Sub

Sub LstSelectEvent (control As Long)
    Select Case control
    End Select
End Sub

Sub PicClickEvent (i As Long, Pmx As Long, Pmy As Long)
    Select Case i
    End Select
End Sub

Sub PicFrameUpdate (i As Long)
    Select Case i
    End Select
End Sub

'$include:'vs GUI.BM'
 
Once the font file is added/fixed in the Open Window line the IDE can run the code to give you a look on the screen size you want.
b = b + ...
Reply


Messages In This Thread
vs GUI Updates - the latest from b+ - by bplus - 07-27-2022, 02:42 PM
RE: vs GUI 2022-07-27 Update - by bplus - 07-27-2022, 03:11 PM
RE: vs GUI 2022-07-27 Update - by bplus - 07-27-2022, 03:28 PM
RE: vs GUI 2022-07-27 Update - by SierraKen - 07-27-2022, 03:48 PM
RE: vs GUI 2022-07-27 Update - by bplus - 07-27-2022, 04:04 PM
RE: vs GUI 2022-07-27 Update - by bplus - 07-27-2022, 08:08 PM
RE: vs GUI 2022-07-27 Update - by bplus - 07-27-2022, 08:26 PM
RE: vs GUI 2022-07-27 Update - by vince - 08-08-2022, 12:05 AM
RE: vs GUI 2022-07-27 Update - by bplus - 07-27-2022, 08:49 PM
RE: vs GUI 2022-07-27 Update - by bplus - 07-29-2022, 02:37 AM
RE: vs GUI 2022-07-27 Update - by bplus - 08-02-2022, 11:51 PM
RE: vs GUI 2022-07-27 Update - by bplus - 08-03-2022, 06:06 PM
RE: vs GUI 2022-07-27 Update - by bplus - 08-04-2022, 02:01 AM
RE: vs GUI 2022-07-27 Update - by bplus - 08-04-2022, 11:46 PM
RE: vs GUI Update - by bplus - 08-05-2022, 01:25 AM
RE: vs GUI Updates - the latest from b+ - by Pete - 12-02-2022, 03:27 AM
RE: vs GUI Updates - the latest from b+ - by dbox - 12-06-2022, 05:57 PM
RE: vs GUI Updates - the latest from b+ - by Pete - 12-22-2022, 09:19 AM
RE: vs GUI Updates - the latest from b+ - by Pete - 12-22-2022, 04:56 PM



Users browsing this thread: 23 Guest(s)