Error msg: "default target" has no main source file .
Posted: Thu Jan 15, 2015 8:58 pm
Hello & Thanks ,
So far I have 2 files , vm-02-Proj.pbf and Gadgets_Events.pb
AND
I don't understand what compiler means .
Should i rename something to main.pb ?
I was thinking that *.pbf was the main file ?
Please educate me .
Maybe a tiny example of three files , Ex01-form.pbf , Ex01-main.pb , Ex01-inc.pb
Thanks
So far I have 2 files , vm-02-Proj.pbf and Gadgets_Events.pb
Code: Select all
; vm-02-Proj.pbf
Global Window_0
Global Image_0, Button_0, ListView_0, ListView_1, ListView_2, ListView_3, Text_0, Text_1, Text_2, Text_3
Declare Gadgets_Events.pb(Event, Window)
Procedure OpenWindow_0(x = 0, y = 0, width = 800, height = 490)
Window_0 = OpenWindow(#PB_Any, x, y, width, height, "Rainbow Sequence", #PB_Window_SystemMenu)
Image_0 = ImageGadget(#PB_Any, 20, 20, 150, 50, 0)
Button_0 = ButtonGadget(#PB_Any, 20, 100, 150, 24, "START")
ListView_0 = ListViewGadget(#PB_Any, 260, 50, 100, 420)
ListView_1 = ListViewGadget(#PB_Any, 390, 50, 100, 420)
ListView_2 = ListViewGadget(#PB_Any, 520, 50, 100, 420)
ListView_3 = ListViewGadget(#PB_Any, 650, 50, 120, 420)
Text_0 = TextGadget(#PB_Any, 270, 10, 80, 30, " Pixel POS")
Text_1 = TextGadget(#PB_Any, 400, 10, 80, 30, " Pixel HEX")
Text_2 = TextGadget(#PB_Any, 530, 10, 90, 30, " Html HEX")
Text_3 = TextGadget(#PB_Any, 660, 10, 100, 30, "Html Name")
EndProcedure
Procedure Window_0_Events(event)
Select event
Case #PB_Event_CloseWindow
ProcedureReturn #False
Case #PB_Event_Menu
Select EventMenu()
EndSelect
Case #PB_Event_Gadget
Select EventGadget()
EndSelect
Default
Gadgets_Events.pb(event,Window_0)
EndSelect
ProcedureReturn #True
EndProcedure
Code: Select all
; Gadgets_Events.pb
; UsePNGImageDecoder()
; If OpenWindow(0, 100, 100, 400, 400, "ImageGadget", #PB_Window_SystemMenu))
; ButtonGadget(10, 10, 150, 50, 20, "START")
If LoadImage(0, "RainbowBar.png") ; change 2nd parameter to the path/filename of your image
ImageGadget(10, 120, 150, 50, 83, ImageID(0)) ; imagegadget standard
; Result = ImageGadget(#Gadget, x, y, Width, Height, ImageID [, Flags])
EndIf
Repeat
Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf
Should i rename something to main.pb ?
I was thinking that *.pbf was the main file ?
Please educate me .
Maybe a tiny example of three files , Ex01-form.pbf , Ex01-main.pb , Ex01-inc.pb
Thanks