|
Post by konaexpress on Mar 12, 2014 20:05:46 GMT 1
I was looking at some screen shots of EGSL on another OS and in the drop down menu was a list of common code snippets that could be inserted in your project. It looked kinda cool and could speed up coding I think. It looked like you could edit the menu some how and only put in what code snippets you wanted and you could add them I think. Not really sure on that part, just going off what I read.
Could this be done with the Bacongui? Or maybe something like it?
Just wondering out loud,
John
|
|
|
Post by Pjot on Mar 13, 2014 18:23:56 GMT 1
Hi John,
Sounds interesting, do you have a link where I can see a demonstration?
Thx Peter
|
|
|
Post by konaexpress on Mar 13, 2014 23:48:46 GMT 1
Sure thing! The guys english was a bit off so I may have misunderstood what he was after but I think I got it. Here is a scrot that he posted.... Thoe it is under Example Code, I got the impression that he put code samples in it and that his users could put their own code that they use in a user der of some kind. Here is what the imported code looks like in the IDE, it's lua code but think BASIC for the sake of this thread.... He then said that he put in or wants to put in the following things..... - readout a textfile - readout a directory - draw a button - draw a image button - draw a image - scrolling left to right - scrolling right to left - scrolling bottom to top - scrolling top to bottom - scrolling all ways - get key message - get joystick message - get mouse message Thoe EGSL has them as sample code, he and his users are using them as "Template" as he calls them. I think what he means is that they are using it for new users so they can see what the code looks like and help set up an app and older users use it to program faster. Drag, Drop, fill in the blanks! To funny....but I like it! From what he said, "Templet" is code that is used over and over again. I think he is using the wrong word but he has a good idea I think but can't say what he means in english. The english speakers got stuck on the templet and took a bit to understand what he wanted, poor guy. John
|
|
|
Post by Pjot on Mar 15, 2014 13:52:47 GMT 1
Thanks John, In a very rudimentary way this can be found in BaConGUI also, just goto File->Open URL and fill in the program you want to obtain from the BaCon website. Problem is that there is no list with program names in the GUI itself, as in your screenshots, so you need to know the programs yourself in advance. Already there is an index file online with a complete list. So... I can embed this index into the GUI in a similar manner, and then any of these demonstrations programs can be downloaded and used. What do you think of that? BR Peter
|
|
|
Post by konaexpress on Mar 15, 2014 16:26:36 GMT 1
Hi Peter,
That sounds kinda cool! My idea was to expand on this guys idea but that could take some work. Now that I think of it, a lot of work. My idea was to have an example of every widget in hug that could be imported into your project with some kind of "insert code" option.
Your way is good too as you can download a program and use it as a template to use and expand on. This would also help new users to see how the code is laid out.
So in the end, sounds good to me if I understand what you are saying.
John
|
|
|
Post by Pjot on Mar 16, 2014 21:06:50 GMT 1
Hi John, Attached the screenshots for a first attempt to do something similar. Screenshot#1 shows the menu to refresh the list of templates. Screenshot#2 show the actual list activated in File->Open URL... Hope this is the way forward? BR Peter Attachments:
|
|
|
Post by konaexpress on Mar 16, 2014 23:42:36 GMT 1
That looks great!
John
|
|
|
Post by vovchik on Mar 16, 2014 23:59:06 GMT 1
Dear Peter,
Also, thanks from me. It also works great - as you can see for yourself if you install the latest beta, which I just did.
With kind regards, vovchik
|
|
|
Post by konaexpress on Mar 17, 2014 3:03:03 GMT 1
Now this is making me think about putting up a Beta install page so users can help test and play with the new toys........
Is there a good way to have different versions of BaCon on the same computer? Are beta versions named bacon.bac or baconbeta.bac so you can have them both in your path?
John
|
|
|
Post by Pjot on Mar 17, 2014 19:50:00 GMT 1
Hi John, In my case, I always use the latest beta myself, and keep the (previous) stable release in some subdirectory somewhere. But it depends on your taste. No, there are beta releases in the beta directory online, it just depends on your preference where you compile them and keep them... BR Peter
|
|
|
Post by konaexpress on Mar 18, 2014 0:25:29 GMT 1
Got it, thanks Peter.
If you can have BaCon in another folder and still work with it, could BaCon be made portable on a USB stick?
John
|
|
|
Post by Pjot on Mar 18, 2014 12:42:32 GMT 1
Hi John,
BaCon itself is just one binary, and it doesn't matter from where it runs. However, you also need GCC and libraries to do the actual compilation...
BR Peter
|
|
|
Post by konaexpress on Mar 18, 2014 14:30:38 GMT 1
Thanks Peter.
John
|
|