Thread: How to change size of a window
-
March 8th, 2023, 18:37 #11
The problem is that Fantasy Grounds struggles when using a very large number of controls, so I'd like to
be able to decide to show a small amount, by cycling the information within them.
In my case I have to show data tables with a number of columns ranging from 10 to 22 and an
approximate number of rows of 100 (or more). The data can vary, so I can't show a simple HTML table.
The idea I was thinking about was to show a certain number of rows based on a data present in
the DB, managing the onWheel event to scroll the data in the few fields shown.
But the problem is that the data can change after a window has already been opened and then
closed, so I need the resize to happen even when it's opened again.
If you have better ideas on how to manage a large number of data that can change during game,
please tell me, do not esitate.
-
March 8th, 2023, 20:00 #12
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,566
Yeah, we actually do this with the item records. We use a subwindow to add/remove "type"-specific controls to the window. If the "type" field changes, then the subwindow is swapped out for the new one.
In your case, you could probably also "window" the data onto a fixed number of controls (i.e. create a data view, not to be confused with FG window object); and allow the user to navigate up/down/left/right. Then, you update the fields with the correct values based on the "offset" of the data view.
Regards,
JPG
-
March 8th, 2023, 22:43 #13
Yes, this was my idea, but I was wondering if there was a way to change the data slice window to accommodate 3 ways
of seeing the data itself (each way has a specific scope determined by the data it is showing).
I'll probably have to settle for finding a middle ground that fits all three types (consider that they are dynamic and can
change as the data is displayed).
Thanks again for the support.
-
March 9th, 2023, 12:00 #14
-
March 9th, 2023, 16:07 #15
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,566
Yes, add a "<nosave />" tag to the windowclass.
Regards,
JPG
-
March 10th, 2023, 20:46 #16
-
March 11th, 2023, 04:55 #17
-
March 11th, 2023, 11:23 #18
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks