Oftentimes I have to design a GUI for user settings that doesn't really require much embellishment on the input data. I have used Ini for such applications where the user can edit the config file with any text editor. Although, it becomes unwieldy when it comes to lists and nested entries. Moreover, I do want to have a GUI for better display and easier input than just editing plain text. So I've been wondering if there is something, maybe a software, that is designed for such purposes? I don't mind what data format it is, be it XML, JSON, BSON, and what not.
Something along these lines:
General purpose config editor?
-
- Posts: 499
- Joined: 03 Dec 2018, 20:02
Re: General purpose config editor?
Rajat @toralf created something rather unique for AutoHotkey https://github.com/lintalist/lintalist/blob/master/include/Func_IniSettingsEditor_v6.ahk
Thread: https://www.autohotkey.com/board/topic/10317-plugnplay-gui-settings-editor-for-your-scripts-version-6/
If you prepare the INI correctly the Gui has help text and options to choose from and you can even hide settings if need be
types:
* Text are supported
* File and Folder
* Float and Integer
* Hotkey
* DateTime
* DropDown
* Checkbox
I don't have the Inicreator script, perhaps toralf still has it
Thread: https://www.autohotkey.com/board/topic/10317-plugnplay-gui-settings-editor-for-your-scripts-version-6/
If you prepare the INI correctly the Gui has help text and options to choose from and you can even hide settings if need be
Example with a dropbox option https://github.com/lintalist/lintalist/blob/master/include/settings/ColumnWidth.ini[SomeSection]
;somesection This can describe the section.
Somekey=SomeValue
;somekey Now the descriptive comment can explain this item.
;somekey More then one line can be used. As many as you like.
;somekey [Type: key type] [format/list] -- see types below
;somekey [Default: default key value]
;somekey [Hidden:]
;somekey [Options: AHK options that apply to the control]
;somekey [CheckboxName: Name of the checkbox control]
types:
* Text are supported
* File and Folder
* Float and Integer
* Hotkey
* DateTime
* DropDown
* Checkbox
I don't have the Inicreator script, perhaps toralf still has it
Lintalist: website - source (github)
-
- Posts: 499
- Joined: 03 Dec 2018, 20:02
Re: General purpose config editor?
@list Thanks! This seems really interesting, I will use it in one of my projects.
During myresearch, I found that this sort of control is called PropertyGrid and is well established in the .NET world. I also found this fully functional demo. It doesn't feature a TreeView though.
During my
Return to “Other Utilities & Resources”
Who is online
Users browsing this forum: No registered users and 9 guests