BaCon 3.0.2 (Beta) Bugs
Aug 19, 2014 20:18:36 GMT 1
Post by alexfish on Aug 19, 2014 20:18:36 GMT 1
Hi Peter
getting problem with latest BaCon beta(gui)
bacon not tested.
shows in hug_elm.bac
Error indicates duplication in GLOBAL RECORD evas
there be also a one in GLOBAL RECORD properties
have not tested any other forms of RECORD
BR
Alex
getting problem with latest BaCon beta(gui)
bacon not tested.
shows in hug_elm.bac
SUB INIT
CONST mouse=0
CONST HUG_FALSE = 0
CONST HUG_TRUE = 1
GLOBAL HUG_WINDOW_TYPE = 0
GLOBAL hug_value_double TYPE double
GLOBAL HUG_WIDGET_SHOW = 1
GLOBAL hug_id = 0
GLOBAL LAST_CANVAS=0
GLOBAL hug_canvas = 0
DECLARE hug_widget_text$ ASSOC STRING
DECLARE hug_evas_widget ASSOC NUMBER
GLOBAL *HugMain TYPE Widget
LOCAL argc TYPE int
DECLARE WIDGET
REM Global properties of the HUG GUI
GLOBAL RECORD hug_gui_properties
LOCAL last_key_pressed, timeout_id, canvas, freeze, canvasid
LOCAL mousex, mousey, scroll, button TYPE int
LOCAL options$, gl$, clip$ TYPE STRING
END RECORD
hug_gui_properties.gl$ = "NONE"
hug_gui_properties.scroll = -1
hug_gui_properties.button = -1
hug_gui_properties.mousex = -1
hug_gui_properties.mousey = -1
hug_gui_properties.canvasid = 0
hug_gui_properties.clip$ = "CLIPBOARD"
GLOBAL RECORD properties[255]
LOCAL xsize, ysize TYPE int :'Size of the widget
LOCAL signal TYPE int :'What signal we listen to
LOCAL *sig_widget TYPE Widget :'Which widget listens to the signal
LOCAL caption$ TYPE STRING :'Text in the widget
LOCAL type$ TYPE STRING :'Widget type
LOCAL *attach TYPE Widget :'What widget children can attach to
LOCAL *layer TYPE Widget
LOCAL group TYPE int
LOCAL other$ TYPE STRING
LOCAL selected_text$ TYPE STRING
LOCAL mode TYPE int
LOCAL start TYPE double
LOCAL end TYPE double
LOCAL step TYPE double
LOCAL *sig_timer TYPE Ecore_Timer
LOCAL *menu_item TYPE Elm_Object_Item
LOCAL class TYPE int
END RECORD
GLOBAL RECORD evas[2000]
LOCAL xsize, ysize ,height , width TYPE int
LOCAL *canvas TYPE Evas
LOCAL *sig_widget TYPE Widget
LOCAL caption$ TYPE STRING
LOCAL type$ TYPE STRING
LOCAL r , g , b , a TYPE int
LOCAL signal TYPE int
LOCAL class TYPE int
END RECORD
' define mouse properties
properties[0].type$="mouse"
properties[0].signal=20
IF elm_init(0,0) THEN
PRINT "elm init"
ELSE
PRINT "elm_init fail : check dev libs"
END
END IF
END SUB
Error indicates duplication in GLOBAL RECORD evas
LOCAL *sig_widget TYPE Widget
there be also a one in GLOBAL RECORD properties
have not tested any other forms of RECORD
BR
Alex