for some reason the problem is about the grouping controls feature. Whith a big group of controls in the document the accesiing of the controls shape is much slower than without group. Even more, for unknow reasons that i dont know, some times the problem goes further having an ultra-slow reading of control shapes, and when that ultra-slow is happening i can only back to the regular speed ungrouping all controls. When this is happening it is that slow, that you can see how a painted shape is changing the color very slowly until it completes. Even it is visible some kind of drawing of all elements that is working very slow
The visual problem i am referring with this is that when we modify the controls shape size, to adapt its size for more lines of content, that is causing a visual blink of controls in the whole document, specially noticeable in labels and image controls. But this is not happening without the grouping. Probably all this is a bug, but when i tested the same in my linux distro i have seen how that grouped controls access to their shape is very very speedy in comparisson with the windows version of AOO....
Please, do not say about to dont have controls group because that feature is very important in the design...
Other than the possible bug, trying to change the control size via model and setOutputSize() it is very fast, but the controls changed by that way revert fast to the original size. I have found this interesting trick:
Code: Select all
size.Width = int(CSize.width / 26.5)
size.Height = int(CSize.Height / 26.5)
CtlModel.setOutputSize(size)
CtlModel.draw(CtlModel.posSize.x, CtlModel.posSize.y)
that require a previous settings of: CtlModel.setDesignMode(true) in order to stay the new size. But this is just curios because this causes other problems in the controls, like the tabs order, etc.
RPG that solution of yours helps for when it is happening that ultra-slow bug.
Code: Select all
thiscomponent.lockcontrollers
your code what change the controls/shape
thiscomponent.unlockcontrollers
But the visual issue remains happening. And that ultra-slow bug is not clear why is happening sometimes when grouping controls, but not others doing same... It's very strange !
OpenOffice last version | Mageia Linux x64 | Ubuntu Linux | Windows 8.1 Enterprise x64 | Java last version