|
Post by xxgeek on Apr 12, 2023 18:44:37 GMT
Duh, I had a space before the c in my path. This works nomainwin JBpath$ = "c:\Program Files (x86)\Just Basic v2.0" JBexe$ = "jbasic.exe" appPath$ = DefaultDir$;"\";"test.bas" run JBpath$;"\";JBexe$;" -R -A ";appPath$ wait end
|
|
|
Post by tsh73 on Apr 12, 2023 18:58:42 GMT
That's philosophical thing, actually. If tree falls in empty forest so noone hears the fall - is there a sound? If the file is not meant to be human readable or to be amended directly - does it ever prevented folks from reading/modifying things? en.wikipedia.org/wiki/The_Art_of_Unix_Programmingbook in a "Basics of the Unix Philosophy" chapter suggests that making files readable is a good thing: (and the next rule says )
|
|
|
Post by tsh73 on Apr 12, 2023 19:17:45 GMT
Needs to be vertically adjusted for window title (and may be menu bar)
|
|
|
Post by tsh73 on Apr 12, 2023 19:22:35 GMT
I really surprised
for n = 1 to 10 lb3$(10)n)= str$(n) '..............another issue next runs at all. But it does. (but all data is written to lb3$(10))
|
|
|
Post by Rod on Apr 12, 2023 19:37:07 GMT
The cyan area represents the client area in any window. Need to play to see what you mean. Had not contemplated menu but I will need to add that in, not sure if it disturbs client area or not, might be hard to build given it is textual and not component driven.
Will look at making the ffu more readable. Code is a bit organic right now and needs a tidy up, so much to do!
|
|
|
Post by Rod on Apr 12, 2023 19:42:05 GMT
The lb3$(10) is I hope being introduced from old ffu format file. If you highlight the control then pop up properties change the lb3$(10) in resource to lb3$( or start a new form with new.
|
|
|
Post by Rod on Apr 12, 2023 19:51:21 GMT
I could probably add an example or generic menu tree if it is selected in Add New. I would show how a menu is created but it would need amended by the coder.
|
|
|
Post by cundo on Apr 12, 2023 20:14:35 GMT
oops Attachments:
|
|
|
Post by Rod on Apr 12, 2023 20:41:06 GMT
Can’t really see what has gone wrong from that picture. Looks like the freeform ultra screen has been expanded higher than your display screen. Out the box it is an 800x600 window. Even if you set the project to 2000x2000 it should still be contained in the 800x600 window.
What did you try?
Also delete all .ffu before you re run it, it might be pulling in wrong data.
|
|
|
Post by cundo on Apr 12, 2023 21:00:15 GMT
I may have the wrong version, it goes off screen. Which code is the latest one?
|
|
|
Post by Rod on Apr 12, 2023 21:27:35 GMT
There is only one set of code in the thread, it is on the second page of posts, all previous versions have been deleted.
I think in future I will distribute it in its own folder with fresh .ffu files. Too much confusion with old .ffu files. I will post that tomorrow if I can get the feedback I have up to now coded in.
|
|
|
Post by xxgeek on Apr 13, 2023 1:26:48 GMT
The code I posted was not quite right Rod, sorry, I was in a rush. This code works.
JBpath$ ="c:\Program Files (x86)\Just Basic v2.0\jbasic.exe" appPath$ = DefaultDir$;"\test.bas" run JBpath$;" -R -A ";appPath$
'OR this works (if the paths above are declared) q$ = chr$(34) run q$;JBpath$;q$;" -R -A ";appPath$
When opening/running a .bas file in the IDE using jbasic.exe command line, it automatically gets checked for syntax errors, which could be a bonus, or a problem, depending on the app. If there ARE syntax errors, the IDE opens, and reports the error but won't run the .bas file in the IDE, but the code continues on with the next instruction.
With BAS2EXE a syntax error would halt the TKN creation, my VB script to automate would not do it's job closing the "save as" since the "save as" never opens, then more errors would happen as the code moved on. etc. Could be a bonus for you as you test though, because the IDE will open, and report any syntax errors for you.
I see in your code you tried -M (to minimize the IDE) If you ever get that to work, please let me know. (I think it was a forgotten issue that never got remedied from JB v2.0 to LB 4.5.1 to LB Pro. A "Not understood" error
If you can hide the IDE when running a .bas, let me know too. It's been a pet peeve of mine for 2 years. re: BAS2EXE
Anyway, just wanted to let you know a few things I found out about jbasic.exe command line use. Hope it helps.
|
|
|
Post by plus on Apr 13, 2023 14:05:30 GMT
This is great project something FreeForm has needed from beginning. What is difference from this project and whiskeyd's project in Members Board (which I haven't checked out yet)?
|
|
|
Post by tsh73 on Apr 13, 2023 15:01:34 GMT
This one 100% JB code It does not show controls like they actually are looking (like that other project) But - if you want a fix - you can dive in and do it ;)
|
|
|
Post by Rod on Apr 13, 2023 16:41:08 GMT
The difference is in the mouse action, that it is completely focused on easy high precision placement of controls. You can quickly whip up a gui. You can just as quickly revise it.
It only creates one form, it only supports windows of type window, what point controls on a graphic window?
I have fixed a lot of issues, but still more to do. It automatically runs the .bas when you write the code. Currently working on the size of the created window. Also need to fine tune the exact size and placement of certain controls but bye and large it is working well.
I hope to post a .zip tomorrow which will have latest version and better structured .ffu structure.
Todays bug hunt discovered that stringwidth bailed on ! Who knew?
Walt’s version follows the original Freeform path. They can co exist, his will likely do more than mine.
|
|