hpwPlusMemo - Forum

Forum Navigation
You need to log in to create posts and topics.

hpwPlusMemo

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\

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

 

I see that if I leave out a config file altogether I get the highlighted text after the ;.

@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?

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

 

@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.

Hello,

Thanks for the kind comment. ;-)

Regards

Hans-Peter

@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?

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

mishem has reacted to this post.
mishem

@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.

I did it with _OnChangeAction.

danito has reacted to this post.
danito