whiskeyd
Member in Training
That that is is, that that is not is not, that that is not is not that that is.
Posts: 23
|
Post by whiskeyd on Mar 12, 2023 21:40:41 GMT
This is a stand-alone bare-bones application that aids in the design of default Liberty and Just Basic forms and controls. It writes nothing to the hard drive unless you allow it. The code is not written in LB or JB therefore there is no TKN or LB/JB run-time with which to contend. You can put this in a directory of your choice and create a link to place it on your desktop.
The app uses real forms and controls, not graphics. I have tested it extensively; however, bugs do happen, so if there is a problem please let me know.
The updated zip contains: (3-14-2023)
LBFL.EXE 211,966 bytes.
SEE LAST POST BY ME IN THIS THREAD.
W. H. D.
|
|
|
Post by cundo on Mar 12, 2023 23:07:04 GMT
Hi there Walt, your name rings a bell for me. Your app works but I think it doesn´t save the file. We prefer BAS files, code, over compiled EXEs btw. But it's not LB code doesn't?
|
|
|
Post by Rod on Mar 13, 2023 7:20:03 GMT
Walt is using us as a test bed, he has been working to improve Freeform for some time. So please give his .exe a try and see if it helps us code gui solutions.
Walt is an expert in API so the form designer uses all native Windows code but it is completely dedicated to Just BASIC.
|
|
|
Post by Rod on Mar 13, 2023 9:03:02 GMT
I gave it a quick spin. I find the same as Cundo the .bas file is never written. I tried run as admin but it made no difference. Might be a permissions thing but possibly the code.
I am not sure if snap to grid is working. It might be but it does not line up with the dots on the form. Snap to grid is a very desirable feature for me. Don't know what the gap is set to but it probably needs to be quite large, probably 25 pixels?
I tried resize, in freeform it is available immediately the control is active but right click option is ok too. It was probably the snap too that made it feel hard to use. It just did not look like it was snapping to the grid.
Also, when clicking, while the tools and form window stayed topost it was pulling other open windows into view between the mainwindow and the tool and form window. They are easily moved, not sure why they are popping into view unless you are tabbing round windows.
I certainly like the look and feel and the way controls like combo and listbox are presented.
|
|
|
Post by tsh73 on Mar 13, 2023 9:50:40 GMT
I just seected "view" menu item and copied text produced but - it did not run as it was code had line
SUB.RESIZEFORM1 Formhndl$ but program needs
SUB RESIZE.FORM1 Formhndl$
and I see something after I see handles named SUB FORM1.BTN101BtnHndl$ SUB FORM1.CHK301CkbHndl$
- but why resizehandler has "FORM1" part in the end?
but buttons needs different names
CHECKBOX #FORM1.CHK301, "chk1", FORM1.CHK301, FORM1.CHK301, 166, 120, 111, 39 RADIOBUTTON #FORM1.RDO401, "RADIO BUTTON 401", FORM1.RDO401, FORM1.RDO401, 143, 101, _ 99, 27
Ah! I see now
SUB FORM1.BTN101BtnHndl$ misses a space
SUB FORM1.BTN101 BtnHndl$
After fixing that code runs.
EDIT I put long line of gibberish into statictext, to see it wrapped It does but code got wrapped too and that had to be fixed as well
STATICTEXT #FORM1.STA901, "Hello there sdh shsdf hd fsdfsdf gsd fgsdfgsadfgsdfgsdfgs _ fdgsdfgsdfg", 129, 11, 144, 63
EDIT Hard time figuring out popup menu COPY *got it*: selet control - COPY - then on a free space PASTE (well, FreeForm just instantly creates copy of control)
EDIT FILE menu opens something looking like custom file dialog, did not worked for me on old Windows. I never managed to open C[+] so it said it will write to "\C:\NO NAME.BAS" And it failed doing that (likely because of first "\" )
Will try on newer one. (but why not use default windows file dialog?)
|
|
whiskeyd
Member in Training
That that is is, that that is not is not, that that is not is not that that is.
Posts: 23
|
Post by whiskeyd on Mar 13, 2023 15:15:48 GMT
cundo: 1) It will save the source code if you let it and if your permissions (Windows(tm) and 3rd party fire-wall) are correctly set. 2) You can not do what I have done in 211K with LB and it is impossible in JB. 3) As far as EXE goes, what difference does it make as long as it performs the task?
Rod: Thanks, but I an not an expert in Windows(tm) API. Just know a few tricks. As far as the grid goes, sometimes it snaps to grid points, sometimes not. At this point I am not sure why, but I will work on it. With move and resize grid snap is automatically turned off to allow one to get as close to another control as possible and perhaps allow partial obscuring of other controls. For resize I could have set the controls up with resize frames. Doing so would require an extra 16 pixels all around.
I am not sure what you mean. The only windows that should be visible is the main window, the tool window, and the form. Other windows that may appear are the select form window, the pop-up window, the properties window, and various info dialogs.
tsh73: Thank you. I will repair those issues. The Windows(tm) common file dialog presents more information than is actually required. I think this one is much cleaner.
Thank you all. I will work on it to resolve the issues. I really appreciate your input.
|
|
|
Post by tsh73 on Mar 13, 2023 15:36:43 GMT
After seeing this I could say what I got: big form-designer window on top of it form window and controls window but somehow between big base window and form control I got JB window I tested program in.
Is base big window actually needed for something? I remember old Visual BASIC having just stripe with menu and toolbars, all other being free-floating windows.
|
|
|
Post by cundo on Mar 13, 2023 21:00:08 GMT
cundo: 1) It will save the source code if you let it and if your permissions (Windows(tm) and 3rd party fire-wall) are correctly set. 2) You can not do what I have done in 211K with LB and it is impossible in JB. 3) As far as EXE goes, what difference does it make as long as it performs the task? Rod: Thanks, but I an not an expert in Windows(tm) API. Just know a few tricks. As far as the grid goes, sometimes it snaps to grid points, sometimes not. At this point I am not sure why, but I will work on it. With move and resize grid snap is automatically turned off to allow one to get as close to another control as possible and perhaps allow partial obscuring of other controls. For resize I could have set the controls up with resize frames. Doing so would require an extra 16 pixels all around. I am not sure what you mean. The only windows that should be visible is the main window, the tool window, and the form. Other windows that may appear are the select form window, the pop-up window, the properties window, and various info dialogs. tsh73: Thank you. I will repair those issues. The Windows(tm) common file dialog presents more information than is actually required. I think this one is much cleaner. Thank you all. I will work on it to resolve the issues. I really appreciate your input. Thanks Walt, I don't know how to give it permission to write the file.
|
|
|
Post by tsh73 on Mar 13, 2023 21:17:48 GMT
Reporting from another (actually Win XP) windows File dialog started with an opened tree in left part, opened on program folder If I just press Save on View command it writes to that folder (needless to say I have ALL rights to write anythere under XP ;p ) If I select different folder and click SAVE it writes there No problem both ways;
And after I cleared Options/"use Function" (so it starts emitting branch labels), form with buttons only (that's just what I tried ) happened to be runnable as is, no errors.
|
|
|
Post by Rod on Mar 13, 2023 21:30:06 GMT
Where is it supposed to write the files to? We can’t expect users to mess with permissions or disable virus checking. I don’t think that is the problem since the program opens and runs. Something else is stopping the file writing or it is getting written somewhere out of sight.
|
|
|
Post by tsh73 on Mar 13, 2023 21:53:37 GMT
Don't really got any problem Now on Win 10 I saved program in c:\progs where I have rights - file dialog starts pointing to that place, so file saves along the program
Next time I saved program in User/me/documents Again, file dialog starts pointing to that place file saves along the program
I don't really know how to make it fail. I tried to put folder with a program into Program Files Windows warned me that I have no rights to write there but after I ordered to proceed it copied folder - and then I have right to write in that folder! Again program rights in that folder OK both times then after selecting folder ands pressing "save" I selected from menu View, files got written no problem.
Probably problem not in "where" as "when"? ("Files\Write code" only select folder, and the file is written after clicking "View" menu)
|
|
|
Post by cundo on Mar 13, 2023 22:07:45 GMT
I have it in my downloads folder
|
|
whiskeyd
Member in Training
That that is is, that that is not is not, that that is not is not that that is.
Posts: 23
|
Post by whiskeyd on Mar 13, 2023 22:54:00 GMT
The save problem was easy to fined. When you click the "Write Code" item and select a directory a message pops up showing the complete path. There was a problem with saving directly to a root directory, e. g. "C:". The path was prepending a slash to the path, i. e. "\C:\FileName" I have fixed that and will replace the app as soon as I get a couple of other issues resolved. Tsh mentioned Never really cared for Visual Basic. Too much bloat. But to answer, it is not needed; however, with it one does not get confused about what one is doing. I can fix it so other windows do not show unless the big window is minimized. Tsh also mentioned string wrapping in the code view window when a long caption is entered. Although neither LB and JB require code to wrap, it is easier to see what is going on if the code is wrapped. I am currently working on that issue. I also fixed the SUB issue that was raised. When I get the wrapping fixed I will replace the app in the original zip. Then work on the grid issue. I think the snapping has to do with the aspect ratio, but not sure at this point. May have to impliment PPI. I appreciate the input. It really helps. Thank you all!
|
|
whiskeyd
Member in Training
That that is is, that that is not is not, that that is not is not that that is.
Posts: 23
|
Post by whiskeyd on Mar 14, 2023 20:16:45 GMT
I have updated the designer. The update is in the zip on the first post FIXED:File write problem when a root directory is chosen Source code wrap with long control caption text SUB problem not setting control handle properly Small HELP window
Other windows creeping in between the JB Forms window and windows associated with the application. ADDED:Menu item to the VIEW window. This item will only be displayed if "Write Code" from the "FILES" menu bar item on the JB Forms window. WORKING ON:Grid snap problem
|
|
|
Post by tsh73 on Mar 14, 2023 21:46:54 GMT
Hello Walt Is load/save of working file is already here / not realized yet (in planning)?
|
|