|
Post by xxgeek on Aug 20, 2023 16:01:19 GMT -5
Go get the last update TSH.
I did close to the same thing. Is it ok? or Edit with your code?
|
|
|
Post by tsh73 on Aug 20, 2023 16:46:34 GMT -5
Yes
No.
You made texteditor right size / autoresize
Code I posted last time, additionally * fixed upper textbox length, make it autoresize * make buttons move up/down then resizing window * make list box above buttons autoresize
Now it you want some/all of these changes, then use it.
|
|
|
Post by tsh73 on Aug 20, 2023 16:48:04 GMT -5
Please update version number then changing things. Now I have 3 little bit different 1.3.4 versions.
|
|
|
Post by tsh73 on Aug 20, 2023 17:05:48 GMT -5
Then trying to read LB examples: in section [lbCodeExamples] program reads directory from files upath$;"\Application Data\Liberty Basic v4.5.1\", folderInfo$() But then I click on a file name, it tries to read it from open uAppPath$;"\";selectedKey$;".bas" for input as #1 where uAppPath$ is uAppPath$ = upath$;"\AppData\Roaming\Liberty Basic v4.5.1" Looks strange for me. Does both folders supposed to exist and to have same file set?
Just googled, indeed application data is link to appdata\roaming Created for compatibility with win XP. Live and learn
|
|
|
Post by xxgeek on Aug 20, 2023 17:45:15 GMT -5
Ha, ha I'm just in the middle of changing that. Since not all instances are XP compatible yet.
Also found a couple other issues, and fixed them. Will post after a good rest and code check.
|
|
|
Post by Walt Decker on Aug 20, 2023 18:58:51 GMT -5
I will check it out this evening. As far as limiting the size to 800 x 600, that is not necessary. I can write code to take care of that if you want.
I uploaded a zip that you may want to look at. Made some changes to the main form and the ini file. The zip contains info on everything I did. Use it or not; your choice.
xxg, you asked if there is an API or DLL to do something with .tkn. Can you elaborate?
|
|
gaslouk
Full Member
Hi from beautiful Greece.
Posts: 130
|
Post by gaslouk on Aug 21, 2023 0:42:06 GMT -5
Hi
In menu Exit
"Exit", [quit.codebank]
must be
"Exit", [quit.codeTank]
Gaslouk.
|
|
|
Post by tsh73 on Aug 21, 2023 1:52:41 GMT -5
waltin CODE-TANK-UPDATE-LOG.txt you wrote: I just found that putting #codeTank.value "!autoresize" just after #codeTank.value, "!LOCATE ";EdtUx;" ";EdtUy;" ";Edtsx;" ";Edtsy restores autosizing.
|
|
gaslouk
Full Member
Hi from beautiful Greece.
Posts: 130
|
Post by gaslouk on Aug 21, 2023 5:41:57 GMT -5
Hi Delete #codeTank.value "!autoresize" down of the #codeTank.keys "singleclickselect" and up from codeTankOpen = 1 and write under from #codeTank.value, "!LOCATE ";EdtUx;" ";EdtUy;" ";Edtsx;" ";Edtsy And this now resizing. And in "sub saveValue" there is error.
If you change the size of the form and resizing the text editor when you close the form and open it again the text editor does not take up the same space on the form as before close. .
Gaslouk
|
|
|
Post by Walt Decker on Aug 21, 2023 11:45:43 GMT -5
Anatoly, Gaslouk, thank you. I will take care of the resizing issue; however, the geek may not want to use it. I also made a change in the way the form sizing is accomplished. xxgeek: there is a problem with the any folder button. After selecting a directory and pushing the ok button, bas files are listed. If the any drive is clicked again the edit box shows the last path with the current drive appended, e. g. first time = e:\my progs\snips next time = e:\my progs\snips\f:\ Sometimes files are listed and sometimes not. It would be handy to list the files found in the file dialog. A couple of years ago I wrote a listview control using a list box. If you would like to use something like that I will find the original code and post it; however, it made heavy use of API.
EDIT: You may want to include a preview check box. Many times I do not remember what the code does just from the file name and have to look at the file to see if it is what I want.
|
|
gaslouk
Full Member
Hi from beautiful Greece.
Posts: 130
|
Post by gaslouk on Aug 21, 2023 12:24:43 GMT -5
Hi
I believe it has to do with the *.ini file as well. As far as it has to do close the form and open it again, save the size of the form but not other sizes or variables needed to render the final result after using the *.ini file Gaslouk.
|
|
|
Post by Walt Decker on Aug 21, 2023 14:01:57 GMT -5
Gaslouk: I will check it out. The control locations and sizes are dependent on the form client size; therefore, they have to be calculated after the form is created. There is not much that can be done with position and size. Until xxgeek decides if he wants to use the last size, there is little reason to do much with positions and sizes. xxgeek: the please wait dialog is not closing when the new program(from file) is clicked. QUESTION: Why are you creating directories and copying files? Would not a path to the existing file be sufficient?
BUG: MyPrograms ---> New Program (from file) is automatically creating a .tkn file. It should not do that unless the user requests it.
|
|
|
Post by xxgeek on Aug 21, 2023 14:51:31 GMT -5
Sorry guys, I've been having a lot of visitors lately, and been very busy. Many issues were introduced when Walt's code was added. Not sure why, still trying to understand it all. [quit.pleasewait] somehow got removed. walt I create directories and copying files so the original LB files don't get butchered by the user, to have backups of certain files, and to have every file being worked on(edited) self contained in the DefaultDir$. I think I'll stick with the original code, and make it work.(at least for a while, maybe till winter) The original code with a couple of fixes should suffice. I've been using it myself for months. That will give me more time to absorb Walts code.(whole different style) The original was written so there was no need to resize anything but the texteditor with autoresize. Buttons don't need to move, and the listbox is ok at the orig size. I'll re-write the whole thing back to original, and setup the code so one file will work for LB, or LB Pro with one cfg/ini file too. I've already worked out all the code needed. Give me a day or 2. All the new code just complicated things, and many more issues with code that was working previously. All this started when we wanted to display at 800x600. I think that can be done without a ton of new code. Edit Not a bug, by design. Read all my previous posts, you see it in there. MyProjects copies all dll's etc MyPrograms ONLY copies the bas, and creates the TKN. The user did request it Walt, when they pressed the button.
|
|
|
Post by tsh73 on Aug 21, 2023 15:46:33 GMT -5
xxgeek, please explain the reason of creating TKN, I don't get it as well. The codeTank program is basically for storing/retreieving source code. What is supposed goal for creating the TKN?
|
|
|
Post by Walt Decker on Aug 21, 2023 18:11:31 GMT -5
That is far beyond what I understood the app purpose to be. I understood that the app was to be a method to easily find applicable code, lift it out and slap it into another app. At least that is what mine does and has no editing capabilities.
No, I did not. All I wanted was the file. I see no purpose for creating a tkn. There are a lot of files that are not tkn material and will just cause a program crash.
|
|