|
Post by alexfish on Jul 7, 2014 23:23:27 GMT 1
Hi Vovchik INWIN is a funny beast , just tried putting other objects in the win , best test that see and see what happens on my version not getting what i Expected with the "inwin_show", so need to go back through the c demo...RE Stacking Order looks like this restack in this version , as in raise the INWIN not doing it. Also thought about adding POPUP , this can be used for messagedialog as well ,think may more usefully in ZenSound than the INWIN since can add items as in list, the list looks like the list , then at bottom can add up to three buttons got a lot of options for configs as well, BR Alex Attachments:
|
|
|
Post by vovchik on Jul 7, 2014 23:40:25 GMT 1
Dear Alex, Pleased include that POPUP. It looks very elegant and, if it can handle lists and scrolling, it may be what might do the trick. I will have to study that one. With kind regards, vovchik
|
|
|
Post by alexfish on Jul 8, 2014 1:46:47 GMT 1
Hi Vovchik
Will try to sort soon
been sorting a couple of bugs in frame and object resize , need to get the frame out of the way
since this one can also be useful for projects like ZenSound.
new Daily at Post #1 has the bug fixes
Time for Zzzzzzzz.
here is some demo code , Click on the top 'Label' or top bar of the frame to activate
BR Alex
'@ DEMO frames.bac
INCLUDE "hug_elm.bac"
INIT
SUB SET_FRAME()
TOG=NOT(TOG) IF TOG THEN SETPROPERTY(Frame,"resize",170,300,1,1)
ELSE SETPROPERTY(Frame,"resize",170,25,1,1) END IF
END SUB
SUB SET_FRAME2()
TOG=NOT(TOG) IF TOG THEN SETPROPERTY(Frame2,"resize",170,300,1,1)
ELSE SETPROPERTY(Frame2,"resize",170,25,1,1) END IF
END SUB
REM -------------------------------------------
SUB GET_LIST() SET_FRAME a$=GRAB$(list) TEXT(list3,a$) END SUB
REM -------------------------------------------
SUB GET_LIST2() SET_FRAME2 a$=GRAB$(list2) TEXT(list3,a$)
END SUB
REM -------------------------------------------
win=WINDOW("Frames",600,400) REM ------------------------------------------- Frame=FRAME(170,25) ATTACH(win,Frame,0,0) TEXT(Frame,"LIST ONE") CALLBACK(Frame,SET_FRAME)
list=LIST(150,25) ATTACH(win,list,0,0) SETPROPERTY(Frame,"content_set",list,1,1,1) CALLBACK(list,GET_LIST)
FOR t= 1 TO 20 TEXT(list,"list "& STR$(t)) NEXT
REM -------------------------------------------
Frame2=FRAME(170,25) ATTACH(win,Frame2,170,0) TEXT(Frame2,"LIST TWO") CALLBACK(Frame2,SET_FRAME2)
list2=LIST(150,25) ATTACH(win,list2,0,0) SETPROPERTY(Frame2,"content_set",list2,1,1,1) CALLBACK(list2,GET_LIST2) FOR t= 1 TO 20 TEXT(list2,"list 2 "& STR$(t)) NEXT REM -------------------------------------------
list3=LIST(150,300) ATTACH(win,list3,340,0) REM -------------------------------------------
DISPLAY
|
|
|
Post by vovchik on Jul 9, 2014 10:52:13 GMT 1
Dear Alex, I have been looking at gif animation in hug_evas and have a little problem. The animation works (thanks), but the gif transparency bit is not recognized. If you look at the attached gif in any gif viewer, it has a transparent background. In evas, I get an ochre square moving about, along with the drawing. Do we have to set a special colormap for these things? Or is it a bug in evas itself? Please have a look... With kind regards, vovchik Attachments:giftest_src.tar.gz (49.29 KB)
|
|
|
Post by alexfish on Jul 9, 2014 12:30:55 GMT 1
Hi Vovchik looks like possible Version of Elementary on efl / elm 1.10.1 as posted details earlier it works fine. see screen shot some distro's are moving towards elementary 1.8.* as source packages as mentioned earlier they may not be so heavy on the juice. but have not tried 1.8 Ubuntu have details , but are mainly for testing. also just kind of wondering if setting a BG color such as seen in screen / noted in your demo have svg . svg's do not work my system . I test the BG color as well and see what happens... Have tested BG and SQUARE , the giff test works as expected. BR Alex Attachments:
|
|
|
Post by vovchik on Jul 9, 2014 15:05:37 GMT 1
Dear Alex, It looks like we can't win/win on this one. Either good gifs with animation but no svgs or bad gifs but working svgs. Also, I am having problems with this: PROTO evas_object_stack_below PROTO evas_object_stack_above
' ------------------ SUB STACK_ABOVE(NUMBER obj1, NUMBER obj2) ' ------------------ ' stack obj1 above obj2 evas_object_stack_above(properties[obj1].sig_widget, properties[obj2].sig_widget) END SUB
' ------------------ SUB STACK_BELOW(NUMBER obj1, NUMBER obj2) ' ------------------ ' stack obj1 below obj2 evas_object_stack_below(properties[obj1].sig_widget, properties[obj2].sig_widget) END SUB
I think it should work.... With kind regards, vovchik
|
|
|
Post by vovchik on Jul 9, 2014 23:00:30 GMT 1
Dear Alex, I got STACK_ABOVE and STACK_BELOW to work OK, but there must be a more elegant way to do this kind of animation using hug_elm. Any tips or hints? With kind regards, vovchik Attachments:marylin.tar.gz (195.5 KB)
|
|
|
Post by vovchik on Jul 10, 2014 17:13:02 GMT 1
Dear guys, I did this thing a bit earlier using elementary but using another scheme - not HUG - that Alex, Joe and I had been working on - and am glad to say it works in hug_elm, too. Just move your mouse around on the canvas and click to close. It is pretty nice-looking, I think. With kind regards, vovchik PS. @alex. I also included a "png" version. Attachments:rotating_cube.tar.gz (88.45 KB)
|
|
|
Post by alexfish on Jul 10, 2014 21:40:51 GMT 1
Hi Vovchik
will now look at the bits , last few Days = busy brushing up on latest Bacon,
as to how we could access the BaCon bits + directly compile a program just using GCC .
although the demo not complete , in fact not even sure if will make full Circle on it nut Fun any way..
here is some snippets from the Demo ,
/* Compiling Bacon Code without BaCon when it is BaCon*/ /* Compile gcc -g elm.c -o elm -lm -ldl -lhug-elementary */ #include "Hugelm.h"
/*---------- START GUI ------------------------------------*/
LET win = WINDOW ("ELM lib test", 600, 400) LET but = BUTTON("Test but",200,30) THEN ATTACH(win,but,10,10) THEN SETPROPERTY (but,"color", 50, 255,50, 255) THEN ADD CALLBACK(but,Callback) DONE
/*------------*/
/* code with no USEC or END USEC -------------*/
int Fahrenheit; for (Fahrenheit = 0; Fahrenheit <= 300 ; Fahrenheit = Fahrenheit + 20) printf("%3d %06.3f\n", Fahrenheit, (5.0/9.0)*(Fahrenheit-32));
/*-------------End code ----------------------------*/
THEN PRINT("--------C IS OLD FART may be ------ OLD BASIC is --- But not when it is BACON -----") LET val =VAL("12345") LET Da =COS(0.4999999999) THEN PRINTF("PRINTF This double --> %0.10f\n",Da) LET Fa =COS(0.4999999999) THEN PRINTF("PRINTF This float --> %1.10f\n",Fa) THEN PRINT("Next is PRINT , PRINT only prints strings \n to convert value use STR(value) ") THEN PRINT(STR$(Da)) THEN PRINT(STR$(Fa)) LET full=ABS(PI) LET full=ADDRESS(val)
THEN PRINT ("address") THEN PRINT (STR$(full)) DONE
/*-----------------------------------------------------*/
BR Alex
|
|
|
Post by alexfish on Jul 10, 2014 22:00:50 GMT 1
Hi Vovchik the CUBE demo png worked out of the box BR Alex Attachments:
|
|
|
Post by vovchik on Jul 10, 2014 22:30:41 GMT 1
Dear Alex, That bacon w/o the streaky bits is a very unusual and cool idea. Hugelm.h must contain the somewhat streaky bits (defines and macros). I hope you can get it to work. Did marylin work for you out of the box, too? I think it ought to, since thre are no svgs. With kind regards, vovchik
|
|
|
Post by alexfish on Jul 10, 2014 22:53:53 GMT 1
STREAKY BaCon is better than DANISH Bacon esp when done Marylin style Added : Just had though , don't say anything!.. was thing of a name for the type of BASIC code in the Demo , doubt if would make any money out of it , so calling it BRASIC.. Added :: a hard macro to do was Bacon CONCAT$ :: what does it look like LET A$="Hug" LET A$ = CONCAT$( JOIN$ ( A$ , Bacon$," ---> ", STR$ (npt), " Test") ) THEN TEXT(list,A$) THEN PRINT(A$)
Attachments:
|
|
|
Post by vovchik on Jul 11, 2014 15:30:55 GMT 1
Dear Alex, What about RASHER as a name? Reminds me of what that guy doing CBASIC is doing, but better. With kind regards, vovchik PS. I can't remember is name - something like Charles Piglet (I don't mean any offence but really can't remember).
|
|
|
Post by alexfish on Jul 11, 2014 18:40:11 GMT 1
Dear Alex, What about RASHER as a name? Reminds me of what that guy doing CBASIC is doing, but better. With kind regards, vovchik PS. I can't remember is name - something like Charles Piggy (I don't mean any offensive but really can't remember). Hi Vovchik (C)BASIC not sure of the syntax ,it looked Kind of Strange looked neither BASIC Nor C + every just about every line ended with ; + U def one of the wurst spelers of all time so correkted U'r Typo's , Statement now lukes correct. Anyway have now cleaned up the syntax ,Now What U see compiles directly with GCC and the lib See Screen shot , have also made some changes in the syntax highlighting .. had to make some slight changes to likes of IF statements , one would need a parser to over come some of the bits but here the objective was to prove that the lib would work in a BASIC Syntax or in C.. some bits LET more=cows 6
IF (cows > 1) THEN PRINTF ("We have cows\n") ENDIF
IF (cows GT 10)THEN PRINT ("loads of them!")
ELSE
PRINT ("Executing part...!\n") PRINT(STR$(more))
ENDIF
a = 100
IF( a EQ 100 ) THEN
PRINT("Value of a is 10\n" ) ORELSE IF( a == 20 ) THEN
PRINTF("Value of a is 20\n" )
ORELSE IF( a == 30 ) THEN
PRINTF("Value of a is 30\n" ) ELSE
PRINTF ("None of the values is matching\n" )
ENDIF BR Alex Attachments:
|
|
|
Post by vovchik on Jul 11, 2014 19:28:55 GMT 1
Dear Alex and gang, I see nice things coming...re the above No demo of Alex's hug_elm would be complete without alienwalk, so here it is, this time using hug_elm. I think it looks pretty good...even if only a mere alien. With kind regards, vovchik
|
|