I have learned something great and unobvious/ undocumented for AutoHotkey ListView GUI Element: you can use variadic argument to make a generic function to display elements in a Table format with multiple dynamic columns.
Use Case
I wanted to created a GUI with a ListView with a dynamic number of columns depending on the size of the Array I pass as argument to the function.
Unfortunately, the ListView Documentation did not explain that you can pass the Column arguments dynamically.
Luckily I have found this forum thread that explains that the LV_Add function supports in fact a "variadic" argument.
Example
Dynamic ListView
No comments:
Post a Comment