On attached screen anyone can see my grave situation.
In normal state i've got wxTextCtrl with some text inside it.
When resizing main frame - sometimes this control didn't get
refreshed.
Only minimizing and then restoring app helps.
Anyone have encountered same problems?
I have tried to refresh (fix) this thing manually with
...
EVT_SIZE(self,self.OnSize)
...
def OnSize(self, evt):
self.bar.Refresh() # this is my toolbar.
evt.Skip()
No luck.
And i can not reproduce it in demo application.
In wxDemo everything works correctly.
My toolbar is loaded from XRC file if it matters.
On attached screen anyone can see my grave situation.
In normal state i've got wxTextCtrl with some text inside it.
When resizing main frame - sometimes this control didn't get
refreshed.
Only minimizing and then restoring app helps.
Anyone have encountered same problems?
I have tried to refresh (fix) this thing manually with
...
EVT_SIZE(self,self.OnSize)
...
def OnSize(self, evt):
self.bar.Refresh() # this is my toolbar.
evt.Skip()
No luck.
What about if you refresh the textctrl? How about adding the
wxCLIP_CHILDREN style to the toolbar?
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!
On attached screen anyone can see my grave situation.
In normal state i've got wxTextCtrl with some text inside it.
When resizing main frame - sometimes this control didn't get
refreshed.
Only minimizing and then restoring app helps.
Anyone have encountered same problems?
I have tried to refresh (fix) this thing manually with
...
EVT_SIZE(self,self.OnSize)
...
def OnSize(self, evt):
self.bar.Refresh() # this is my toolbar.
evt.Skip()
No luck.
What about if you refresh the textctrl? How about adding the
wxCLIP_CHILDREN style to the toolbar?
Didn't help either.
I've tried both of them.
Looks like i should throw a little example which demonstrates this
problem.
Anyway, thanks for a help, Robin.
On attached screen anyone can see my grave situation.
In normal state i've got wxTextCtrl with some text inside it.
When resizing main frame - sometimes this control didn't get
refreshed.
Only minimizing and then restoring app helps.
Anyone have encountered same problems?
I have tried to refresh (fix) this thing manually with
...
EVT_SIZE(self,self.OnSize)
...
def OnSize(self, evt):
self.bar.Refresh() # this is my toolbar.
evt.Skip()
No luck.
What about if you refresh the textctrl? How about adding the
wxCLIP_CHILDREN style to the toolbar?
Ups!
Sorry for previous negative post result.
IT'S REALLY HELPS! Yo-o-o-h-o-o-o!
:)))
I've just forget to uncomment:
# EVT_SIZE(self,self.OnSize)
And added suggested modification without actually responging to them!
Now it redraws correctly.
Thank you, Robin!
P.S. xrced didn't have an option wxCLIP_CHILDREN in his 'style'
for toolbars. Maybe it does make a sense to add this option for toolbar?
But i can enter it manually.