Quote from PaulJonestindall on August 27, 2021, 12:10 pmI'm trying out this plugin and no matter what I've tried, anything typed after a ";" gives me highlighted text.
Is this by default or is there a variable switch that I'm missing?
e.g.
\\tcbfs\qc\QCCP\CheckOut\checkout.mdb
Bible;\\10.3.5.19\file_share\
\\tcbfs\qc\QCCP\TestData\testdatanames.dat
\\tcbfs\qc\QCCP\StressSheets\
I'm trying out this plugin and no matter what I've tried, anything typed after a ";" gives me highlighted text.
Is this by default or is there a variable switch that I'm missing?
e.g.
\\tcbfs\qc\QCCP\CheckOut\checkout.mdb
Bible;\\10.3.5.19\file_share\
\\tcbfs\qc\QCCP\TestData\testdatanames.dat
\\tcbfs\qc\QCCP\StressSheets\

Quote from HPW on August 27, 2021, 12:43 pmHello,
Does your sysntax ini file or config contains this: commentchar=;
So it dependes on the config you call when you create the objekt.
See the ini files that come with the plugin.
Regards
Hans-Peter
Hello,
Does your sysntax ini file or config contains this: commentchar=;
So it dependes on the config you call when you create the objekt.
See the ini files that come with the plugin.
Regards
Hans-Peter
Quote from PaulJonestindall on August 27, 2021, 1:29 pmI see that if I leave out a config file altogether I get the highlighted text after the ;.
I see that if I leave out a config file altogether I get the highlighted text after the ;.
Quote from PaulJonestindall on August 27, 2021, 1:30 pm@hwp
I used the config file in the demo and changed the commentchar= to something else and that did work.
So, I'm guessing that by default the ; is the comment character and I have to deliberately change it in a config file. My next question is then do I have to include the config file with my compiled application?
@hwp
I used the config file in the demo and changed the commentchar= to something else and that did work.
So, I'm guessing that by default the ; is the comment character and I have to deliberately change it in a config file. My next question is then do I have to include the config file with my compiled application?

Quote from HPW on August 27, 2021, 3:08 pmHello,
The config file/text is possible to read from file or textvariable.
Instead you can loads the config from [TextEntry5] (outside left from the app window)
The "Create newlisp" button shows that you can feed a text-variable to the config:
hpwPlusMemoLoadCfg "RPlusMemo1" "[PubDir]newlisp.ini"
hpwPlusMemoLoadCfg "RPlusMemo1" "[TextEntry5]"The variable can come from Object or embedded or external file.
From page action:
.Parameter=Rectangle-Name + Sourcefile/Variable
.hpwPlusMemoCreate "RPlusMemo1" "[TextEntry5]"
hpwPlusMemoCreate "RPlusMemo1" "[PubDir]newlisp.ini"Regards
Hans-Peter
Hello,
The config file/text is possible to read from file or textvariable.
Instead you can loads the config from [TextEntry5] (outside left from the app window)
The "Create newlisp" button shows that you can feed a text-variable to the config:
hpwPlusMemoLoadCfg "RPlusMemo1" "[PubDir]newlisp.ini"
hpwPlusMemoLoadCfg "RPlusMemo1" "[TextEntry5]"
The variable can come from Object or embedded or external file.
From page action:
.Parameter=Rectangle-Name + Sourcefile/Variable
.hpwPlusMemoCreate "RPlusMemo1" "[TextEntry5]"
hpwPlusMemoCreate "RPlusMemo1" "[PubDir]newlisp.ini"
Regards
Hans-Peter
Quote from PaulJonestindall on August 31, 2021, 11:12 am@hpw
Thanks for the tips. I've got the plugin working now for what I need at the moment. This plugin will be very useful for other projects. Currently I'm using this as an editor for all of my project DAT/config files. This is absolutely brilliant.
Thanks for the tips. I've got the plugin working now for what I need at the moment. This plugin will be very useful for other projects. Currently I'm using this as an editor for all of my project DAT/config files. This is absolutely brilliant.

Quote from mishem on June 27, 2023, 11:17 pm@hpw
How to change some options in real time on the fly? Line wrapping, font, background color, etc...
After changing the parameters, I run the hpwPlusMemoCreate command. But I don't think I'm doing it right. When the editor is empty, there is no problem. If there is text in the editor, then the first problem is determining the position of the scrollbar. You need to programmatically scroll the scrollbar to exactly where it was in order to minimize the perception of screen redrawing. Is it possible to do this somehow?
@hpw
How to change some options in real time on the fly? Line wrapping, font, background color, etc...
After changing the parameters, I run the hpwPlusMemoCreate command. But I don't think I'm doing it right. When the editor is empty, there is no problem. If there is text in the editor, then the first problem is determining the position of the scrollbar. You need to programmatically scroll the scrollbar to exactly where it was in order to minimize the perception of screen redrawing. Is it possible to do this somehow?

Quote from HPW on June 28, 2023, 5:25 pmHello,
Its hard to know if such logik is possible with the used component.
To track this down it would need a certain amount of research into the plugin code and the component API.
And the needed time is currently my main problem.
So in the moment I can not further work on extending my plugins.
Regards
Hans-Peter
Hello,
Its hard to know if such logik is possible with the used component.
To track this down it would need a certain amount of research into the plugin code and the component API.
And the needed time is currently my main problem.
So in the moment I can not further work on extending my plugins.
Regards
Hans-Peter
Quote from mishem on June 30, 2023, 12:55 pm@hpw, Hello.
I have another question.
How do I know if something is in the undo buffer or is it empty?
To activate, deactivate the Undo and Redo buttons.
@hpw, Hello.
I have another question.
How do I know if something is in the undo buffer or is it empty?
To activate, deactivate the Undo and Redo buttons.