Open Stricted opened 7 years ago
I assume you are using Windows, as I can't reproduce the disable issue on nix ?
There is an open issue regarding controls with children, tabs are included in that.
Control::destroy should only be executed in shutdown/closing handler for Windows, the results of using it at other times on other controls are undefined.
yep im on windows the idea behind this was to dynamically add/remove/change the ui but i get only crashes
an example what im using on an c# wpf projekt: i have multiple tabs/pages and disanle all except an login/logout page, depends on the login state in activate or deactivate all other tabs/pages when i try doing it here im unable to get the tab/box objects and when i try to change the state before adding the (disable it before adding) it crashes
Tab has a method for deleting pages.
Disabling it should work, I'll check upstream.
deleting dosent work -> resulting in crash on ubuntu i call $tab->delete(0); after appending the first box
Thread 1 "php" received signal SIGSEGV, Segmentation fault. 0x00007ffff27bf83d in childSetFlag (c=0x736c6f72746e, flag=1) at /home/stricted/libui/unix/child.c:109 109 c->flag = flag; (gdb) bt
at /home/stricted/libui/unix/child.c:109
at /home/stricted/libui/unix/tab.c:78
return_value=<optimized out>) at /home/stricted/ui/classes/tab.c:141
You didn't adjust any of the indexes on calls to Tab::setMargin ... I'll do something about it though ...
EDIT: I think I'll introduce exceptions ...
in gallery example when i set
$numbersHbox->disable();
then it crashen when i go to theNumbers and Lists
tabwen i set
$numbersHbox->destroy();
then php crashes instantlymaybe its a great idea to add to
UI\Controls\Tab
a method to get the current tabs/boxes to modify them later?