mse-org / mseide-msegui

MSEide is a Rapid Application Development IDE for platform independent rich GUI applications in the Pascal language. It comes with its own GUI toolkit called MSEgui. Binaries: https://github.com/mse-org/mseide-msegui/releases
GNU General Public License v2.0
121 stars 15 forks source link

MFM-Doktor #45

Closed rchastain closed 1 year ago

rchastain commented 1 year ago

Hello friends!

I had two hours to kill this morning, and I wanted to wake up my Lua knowledge, so I made this.

This is a tool made to repair MFM files that do not load correctly in MSEide, due to invalid values for properties.

Example:

[roland@localhost mfmdoktor]$ lua mfmdok.lua sample.mfm result.txt
MFM-Doktor 0.0.1 (Lua 5.2)
DEBUG Valid value: wo_noframe
DEBUG Valid value: wo_groupleader
DEBUG Valid value: wo_notaskbar
DEBUG Invalid value: wo_alwaysontop
DEBUG Delete: [wo_alwaysontop, ]
DEBUG Invalid value: wo_rounded
DEBUG Delete: [, wo_rounded]
DEBUG Valid value: ow_mousefocus
DEBUG Valid value: ow_tabfocus
DEBUG Valid value: ow_arrowfocus
DEBUG Valid value: ow_mousewheel
DEBUG Valid value: ow_destroywidgets
DEBUG Valid value: ow1_fontglyphheight
DEBUG Valid value: ow1_autoscale
DEBUG Valid value: ow1_autoheight
[roland@localhost mfmdoktor]$ 

I see in another discussion that _worounded seems to be a valid value. I don't know why I didn't find it in my documentation.

Too tired to change this now. Suggestions, improvements, ideas are welcome.

Best regards.

Roland

mfmdoktor-001.zip

fredvs commented 1 year ago

This is a tool made to repair MFM files

Genial! Many thanks for this precious addition. Please add it in /mseide-msegui/tools/

I see in another discussion that wo_rounded seems to be a valid value. I don't know why I didn't find it in my documentation.

This was a "recent" (6 months ago) addition so maybe not yet implemented when you created the doc...

rchastain commented 1 year ago

Genial! Many thanks for this precious addition. Please add it in /mseide-msegui/tools/

Thanks for your support. Not sure that it deserve in its current state to be added in tools. I should update the options list, and also maybe find a more serious name. :)

But since you liked it, I will share here or in another discussion my best bash or Lua scripts. ;)

This was a "recent" (6 months ago) addition so maybe not yet implemented when you created the doc...

OK, I see.

P.-S. I close the issue. I should have created a discussion instead, but I have just discovered that there is a "discussion" section.