ParameterSettingsforTextEditor

wm.chatman

Well-Known Member
Licensed User
Longtime User
:) Hi
I have been playing with the Text Editor from the Forum.
It workt good, until I tried to add some Parameter Settings for the Editor, using an INI File.
Parameter Settings:
1. Clear clipboard when closing
2. Show settings at start-up
3. Open last saved file at start-up
4. Save last editor settings
5. I would like to use Font Tahoma size = 9
Since then the Behavior of the Editor are out of this World. :confused:
Don’t know what else needs to be done, could someone please take a look.
Thank you very much for your kind :sign0085: !

Best regards
William
 

Attachments

  • TextEditor.zip
    16.3 KB · Views: 172

specci48

Well-Known Member
Licensed User
Longtime User
Hello wm.chatman,

just a very very quick fix to your text editor, since a haven't got time now to explain the changes i have made. :sign0013:

If you need additional help, feel free to ask again - here or in the german forum. Tomorrow I'll have enough time for a long and qualified answer... :)


specci48
 

Attachments

  • editor-quick-fix.zip
    2.4 KB · Views: 170

wm.chatman

Well-Known Member
Licensed User
Longtime User
:) Hi Specci 48
Thank you much for your Help. Still getting a little error msg.
I am also working on the problem, still cant figure it out quite yet. :confused:

Best regards
William
 

wm.chatman

Well-Known Member
Licensed User
Longtime User
Hi Specci48

Working on solving the problem with the text Editor, I now get another error msg. The Parameter Settings ought to be simple, but I guess its not.
I got close to solving the problem at one time, but then some functions of the Editor did not behave as they should have.
Seems like we also are not saving correct, to the INI File nore are we able to load the text file. :(

Thank you much for your Help !

Best regards
William
 

wm.chatman

Well-Known Member
Licensed User
Longtime User
when I delete the Editor Ini File, the App runs one time only!
I am able to load a text file into TextBox1.
The Parameter Settings are incorrect. After restart of the Editor
I get the same error messages, as before.

like always, I quess we need some help.
 

specci48

Well-Known Member
Licensed User
Longtime User
:) Hi Specci 48
Thank you much for your Help. Still getting a little error msg.
I am also working on the problem, still cant figure it out quite yet. :confused:

Best regards
William
As I said, it was a very very quick fix...
I forgot to select the option "Check for unassigned / unused variables" in the menue tools, so I didn't got this message yesterday. As the message explains, the variable "tahoma" in the sub "LoadINIFile" is never used. Because the font is stored within the variable "f_face", the line 169 could be deleted from the source without any trouble.


specci48
 

specci48

Well-Known Member
Licensed User
Longtime User
when I delete the Editor Ini File, the App runs one time only!
I am able to load a text file into TextBox1.
The Parameter Settings are incorrect. After restart of the Editor
I get the same error messages, as before.

like always, I quess we need some help.

Since I do not know how much you've changed the source by yourself I attached my working version.


specci48
 

wm.chatman

Well-Known Member
Licensed User
Longtime User
Hallo Specci48

its woooooooooorking... :)

what can I say ? deficient Experience...
I thank you with the help on this. I will set up the second Display, and check the mistakes!

I must state all my Thanks and Appreciations to Klaus and yourself.

again, thank you for your Invested Time!
nochmals, vielen Dank für deine investierte Zeit!


Best regards
William
 

wm.chatman

Well-Known Member
Licensed User
Longtime User
tested on Device.

I am getting a small error msg.
An error occurred on sub_main_form1_close.
NullReferenceException
Continue? Yes/No

what does that mean please? and what can be done to correct error?

Thanks Specci48
 

wm.chatman

Well-Known Member
Licensed User
Longtime User
tested on Device.

I am getting a small error msg.
An error occurred on sub_main_form1_close.
NullReferenceException
Continue? Yes/No

what does that mean please? and what can be done to correct error?

Thanks Specci48
Continue? Yes/No
either way closes the App.
 

specci48

Well-Known Member
Licensed User
Longtime User
Hello William,

:sign0161: I tested it only on the desktop...

The error occurs, because the hardware object is not instantiated for the clipboard feature on the device.
Just add the following line directly after "Sub App_Start":
B4X:
Sub App_Start
    hardware.New1
    ...


specci48
 

wm.chatman

Well-Known Member
Licensed User
Longtime User
Hello William,

:sign0161: I tested it only on the desktop...

The error occurs, because the hardware object is not instantiated for the clipboard feature on the device.
Just add the following line directly after "Sub App_Start":
B4X:
Sub App_Start
    hardware.New1
    ...


specci48
bei gosch, I should have known that! So eine schei...
 
Top