|
Post by Pjot on Jun 10, 2022 15:35:39 GMT 1
Hi Aurel, Well, the error is self-explanatory I think. There is no such function as 'PROGRESSBAR_SET'. Please consult the documentation for the HUG interface thoroughly. There you can find the GET and SET keywords. So if you need to SET or GET a value from the progressbar, simply use SET or GET. Best regards Peter
|
|
aurel
Junior Member
SolarMM
Posts: 61
|
Post by aurel on Jun 10, 2022 19:54:08 GMT 1
You point me to HUG documentation H.U.G. 0.95 documentation and i have HUG 0.109 then bacon complain about REM even REM is on many places in HUG see error:
|
|
|
Post by bigbass on Jun 10, 2022 21:40:02 GMT 1
|
|
aurel
Junior Member
SolarMM
Posts: 61
|
Post by aurel on Jun 10, 2022 22:44:35 GMT 1
hi bigass
who was talking that is compile hug.bac i understand that hug is INCLUDE file
can you explain to me why i receive such a errors? i don't want to cocert and run app from terminal if I or any other user must use terminal to run bacon file then what is the point to have Bacon editor ?
second why no one want to tell me what is latest version of HUG? is REM bug in HUG or bug in bacon converter ? what kind of error when i replace all REM.s with ' and still i receive strange errors? I am author of 3 interpreters so far ..so please i know some things..
|
|
aurel
Junior Member
SolarMM
Posts: 61
|
Post by aurel on Jun 10, 2022 23:03:40 GMT 1
hello bigbass and thank you for links! yes your example from tutorial work and now i know why not work Peter example posted here on forum because he use SETENVIRON "LANG","C"how i know that ,and how any new user know that ? it is a lot confusion
|
|
|
Post by Pjot on Jun 11, 2022 7:36:59 GMT 1
Hi Aurel, The latest version can be found at the link posted by Joe: HUGPlease make sure to read the documentation and to use the latest examples, many of which are pointed to by Joe. Regarding the REM problem, I do not run into this issue myself. The code of HUG itself should work as it is, unmodified. Also, the SETENVIRON command is not needed. Best regards Peter
|
|
aurel
Junior Member
SolarMM
Posts: 61
|
Post by aurel on Jun 12, 2022 16:17:15 GMT 1
All fine Peter..no problems..so far i am looking into examples and made something for start I have playing with Bacon HUG progies so far looking nice and clean ...i like it so first one i want to make is simple like a code editor but not exactly ..i want test my tokenizer so i need to make edit control( oups gtk-widget ) ;D inside window and few buttons and one LISTBOX. for start i made this .. INCLUDE "hug.bac" HUGOPTIONS("MARKUP background:white,foreground:black,font:DejaVu Sans Normal 10") 'create main window Form1 = WINDOW("Aurel Window", 800, 600) SETPROPERTY(Form1, "resizable", TRUE)
'//// CONTROLS - WIDGETS /////////////////////// 'add edit box -> EDIT WIDGET textEdit = EDIT(630, 300) ATTACH(Form1, textEdit, 10, 50)
'//// BUTTONS //////////////////////////////// newb = BUTTON("New",38, 38) ATTACH(Form1, newb, 10,4) FONT(newb, "DejaVu Sans Mono Normal 9")
openb = BUTTON("Open",38, 38) ATTACH(Form1, openb, 52,4) FONT(openb, "DejaVu Sans Mono Normal 9")
saveb = BUTTON("Save",38, 38) ATTACH(Form1, saveb, 94,4) FONT(saveb, "DejaVu Sans Mono Normal 9")
'callback or event function... CALLBACK(newb, QUIT)
DISPLAY
|
|
aurel
Junior Member
SolarMM
Posts: 61
|
Post by aurel on Jun 21, 2022 11:48:50 GMT 1
hi folks
when i tried to convert peter JuliaSet,bac program he posted on my forum i get error in canvas.bac on line 1241 as wrong argument is not string
SUB OUTLINE(VAR arg# SIZE total)
LOCAL i
IF total < 5 THEN PRINT "Error: outline needs at least 2 coordinate pairs." END 1 ENDIF
CALL Draw_Prepare 'CALL Check_Scale(x-xrad, y-yrad, xrad, yrad) 'CALL Check_Rotation(x-xrad, y-yrad, xrad, yrad) CALL Check_Move()
IF arg#[total-1] <> 0 THEN glBegin(GL_POLYGON) ELSE glBegin(GL_LINE_LOOP) ENDIF
FOR i = 0 TO total-2 STEP 2 glVertex2d(arg#[i], arg#[i+1]) NEXT glEnd
ENDSUB
so what i need to fix this in canvas.bac tnx
|
|
|
Post by Pjot on Jun 21, 2022 14:06:56 GMT 1
Hi Aurel, You need BaCon 4.4.1 ( unstable) to convert this code. Alternatively, just comment this OUTLINE function completely, you do not need it for the Julia set. Best regards Peter
|
|