|
Post by neuropsychddx on Sept 16, 2021 11:48:54 GMT -5
Attached is the source code and resources for a simple text editor and Liberty BASIC code editor. The code consists use of basic LB keywords and commands. There is minimal use of DLL calls (autoinserted by Freeform GUI builder for status bar). The toolbar icons are from freeform. Being a LB newbie, I am surprised that I could prepare this code so quickly. Most of the help is available from the LB help built in LB, Alyce Watsons LBPE and a very active LB forum. Attachments:notepad.zip (4.85 KB)
|
|
|
Post by Walt Decker on Sept 16, 2021 14:48:57 GMT -5
Looks like you have sacrificed a lot. It does not behave the same as Notepad.
Needs some work. There is no reason to restart because of a change in background color, text color and/or font. Cash the input, make the change(s), set the origin to 0, 0, and restore the text.
|
|
|
Post by neuropsychddx on Sept 26, 2021 3:23:07 GMT -5
Dear Walt, Yes I seem to have sacrificed all the DLL codes for the custom text edit box. I was difficult yo get my head around it for the time being, as apart from qbasic I have no experience of programming. So please bear with me. As progress I have added a custom browser frame as ready help browser, something all LB newbies would be referring to quite frequently. It is based on lbbrowse3 dll. It would have been nice to have tab gui elements natively in LB. EDIT - added zipped file with all necessary files. Attachments:notepad2.zip (27.59 KB)
|
|
|
Post by tsh73 on Sept 26, 2021 15:38:12 GMT -5
Your error handler fires because I have no ini file (yet) - but it prevents program from quitting, catching me in endless loop. Had to kill it with task manager. Twice.
[ooops] 'error handler notice "Quitting program because of error. Error is ";Err$ goto [quit.main] It really should quit / end instead of GOTO.
|
|