No. Don't touch the paint event. You only need setMask() just like jpn suggested. And better put it in resize event and not in the constructor, just in case. But it should still work with the constructor (the same contents as in the resize event).
No. Don't touch the paint event. You only need setMask() just like jpn suggested. And better put it in resize event and not in the constructor, just in case. But it should still work with the constructor (the same contents as in the resize event).
Ok, one last (stupid) question :
With the region stuff, adding and taking off some parts, I need to know the position of my buttons to tell the mask not to take them.
But as I use them with a Layout, that s the layout which knows where exactly they are and I don t have an idea about how knowing their coordonates, pushbutton1.x() does not exists ...
djoul (18th July 2006)
Bookmarks