‎2022-12-15 05:37 PM
I am trying to make objects via GDL Scripting but I am really confused about UI_PAGES.
1. How do you create pages?
2. How do you link the elements or (Subtopics) to each page?
Thanks.
Daniel
‎2022-12-15 05:57 PM
Look at https://gdl.Graphisoft.com/tips-and-tricks
There are some topics about UI_Pages and navigation.
And some basics here https://www.b-prisma.de/ueber-gdl/gdl-blog/user-interface-in-gdl-objekten/ (use Google translate)
‎2022-12-15 09:50 PM - last edited on ‎2022-12-20 03:42 AM by Laszlo Nagy
Just copy paste this text in your interface and see whats happend and then analize it
ui_dialog `Sample page jorge_arreguin@yahoo.com `
UI_STYLE 0,0
UI_PAGE 1
ui_outfield `dim A`, 5, 25, 120, 15
ui_infield "A", 100, 25, 40, 19
ui_outfield `dim B`, 180,25, 70, 15
ui_infield "B", 260, 25, 35, 19
ui_outfield `Z dim`, 330, 25, 60, 15
ui_infield "ZZYZX", 400, 25, 40, 19
UI_BUTTON UI_NEXT, "NEXT", 384, 240, 60, 15
ui_outfield `Sample page by Jorge Arreguin`, 100, 100, 250, 15
UI_PAGE 2
ui_outfield `this is the page number two`, 65, 100, 250, 15
UI_BUTTON UI_PREV, "PREVIEW", 5, 240, 60, 15
‎2022-12-16 01:06 PM
That's really helpful - thanks!
I spent a little time modifying a custom UI recently and the documentation is not designed for complete novices to dip into.
It's not massively cognitively demanding, but does require quite a bit of application and effort to understand.
I was considering writing a template to help GDL idiots like me with positioning.
‎2023-01-02 10:01 PM
you are welcome 🙂