Re: Semi-automatic serialization and UI form?
Jorge Moraleda <[email protected]>
| Newsgroups | gmane.comp.lib.wxwindows.general |
|---|---|
| Message-ID | <[email protected]> |
I don't know of anything that does exactly what you want but these are some thoughts: You can add controls programmatically to any window and if the layout is straightforward and the types of values you want to edit in your form is limited, this is not hard and may be the best way to go. An alternative to defining the controls programmatically in C++ could be to use an XRC definition (https://docs.wxwidgets.org/latest/overview_xrc.html) In your case, you could create the XRC file programmatically based on what controls you want to add. Easier would be to modify an existing XRC. You could create a baseline XRC for your panel with a tool such as wxFormBuilder (https://github.com/wxFormBuilder/wxFormBuilder) and then you could modify it programmatically. Of course rather than modify the xml directly you would use some XML parser editor (https://stackoverflow.com/questions/9387610/what-xml-parser-should-i-use-in-c) On Wednesday, May 17, 2023 at 2:24:00 PM UTC-4 ardi wrote: > Hi! > > Is there any solution, either within wxWidgets, or as a external project, > for defining the member types of objects, their default and min/max values, > and then getting automatically a form-like scrolled window with all the > widgets needed for editing such data (a la AntTweakBar, but even more > automatic)? And then, of course, being able to serialize the data for file > I/O. > > I've read about XTI in the wiki, but I feel XTI doesn't do this and was > for another purpose... > > Kind regards, > > Ardi > -- Please read https://www.wxwidgets.org/support/mlhowto.htm before posting. --- You received this message because you are subscribed to the Google Groups "wx-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/wx-users/0857592a-f2ac-4b6d-8148-183b1ba30154n%40googlegroups.com.