I am rather stuck on a redraw issue in the AUI demo, for which I have been periodically sending pull requests. I mentioned this on #135.
I am using the following methods on wxAuiPaneInfo objects:
MaximizeButton
PinButton
MinimizeButton
Gripper
GripperTop
After doing so, I find I can get the manager to redraw the pane with the new control(s) by detaching the pane, reattaching, and then running an update. Thus:
$manager->DetachPane($window);
$manager->AddPane($window, $paneInfo);
// Now redraw the panes
$manager->Update();
However this is not ideal as detach/reattach can move the dock position. I therefore think it should work without it, e.g. by resetting the perspective:
$perspective = $manager->SavePaneInfo($paneInfo);
$manager->LoadPaneInfo($perspective, $paneInfo);
// Now redraw the panes
$this->getManagedWindow()->getAuiManager()->Update();
However this apparently better approach works for resetting the gripper, but not for maximise or pin, and it feels like it should work. (Incidentally the minimise button doesn't seem to do anything here, but then I have not got that to work with attaching and reattaching either, so perhaps it is not implemented in my desktop environment).
Is using the LoadPaneInfo method appropriate here, and if not, is there a better way to do this? (Anyone can try the new code on the master branch and temporarily replacing the first approach with the second).
I am on Ubuntu 14.04 with PHP 5.5.9.
I am rather stuck on a redraw issue in the AUI demo, for which I have been periodically sending pull requests. I mentioned this on #135.
I am using the following methods on
wxAuiPaneInfoobjects:MaximizeButtonPinButtonMinimizeButtonGripperGripperTopAfter doing so, I find I can get the manager to redraw the pane with the new control(s) by detaching the pane, reattaching, and then running an update. Thus:
However this is not ideal as detach/reattach can move the dock position. I therefore think it should work without it, e.g. by resetting the perspective:
However this apparently better approach works for resetting the gripper, but not for maximise or pin, and it feels like it should work. (Incidentally the minimise button doesn't seem to do anything here, but then I have not got that to work with attaching and reattaching either, so perhaps it is not implemented in my desktop environment).
Is using the
LoadPaneInfomethod appropriate here, and if not, is there a better way to do this? (Anyone can try the new code on the master branch and temporarily replacing the first approach with the second).I am on Ubuntu 14.04 with PHP 5.5.9.