06-06-2011, 02:51 PM
(This post was last modified: 06-06-2011, 03:45 PM by AceInfinity.)
(06-06-2011, 08:41 AM)Fragma Wrote: Also, I assume that when editing the config file, your settings are saved, meaning when you close the program, and come back to it, you will still have the same theme?
yep, as long as there is a config.ini in the same directory as the app, it will read from it those settings. Settings get saved into the .ini file. If the ini file gets deleted, next time you start the app, it will use the global program default settings. Basically like a fresh start if you don't like your settings.
If you don't like the .ini showing, create a directory/folder in program files or something, place the app in there like any other normal installed program, and when you run it, it'll create a .ini file in there for the config, then just create a shortcut to the app on your desktop or something.
config.ini gets regenerated whenever it doesn't find that file in the same location as the application. And it only reads the config.ini file if it's in the same location as the app.
If you edit the config file, the file has to be saved, so that the changes can be read the next time the application uses the file to load settings from.
I had to remove the visibility of the Line and Column display in the status bar for when the richtextbox Word Wrap event is on because the only possible way to define a new line is by the character sent by the {Enter} or {Return} key on the keyboard. If word wrap is on, and you type to the end of a line, it will go to the next line without displaying a new line indicator {VbLF} and the line therefor never gets updated.
The only way I could show what's going on is if you were to take a look at Notepad++. How they deal with that little unfortunate logic is by a line display on the left side, you'll notice with word wrap on that if you type to the end of a line, it won't display
another number for a line, instead it will insert empty strings into the drawn out control and update the number with (number + 1) only when the new line is defined by pressing the enter key. (Or having copied and pasted text containing the new line {VbLf} indicator.)