I have a problem concerning wxSplitterWindows.
If I try to move the SplitBars to the left or to the right, sometimes nothing happens!
The Mouse-Cursor changes, but I am not able to re-size the Windows.
The weird thing is, that most of the times this works, but sometimes just not!
Is it possible, that I have to catch all OnSize event in the sub-windows and do a "Event.Skip()" ?
I have a problem concerning wxSplitterWindows.
If I try to move the SplitBars to the left or to the right, sometimes nothing happens!
The Mouse-Cursor changes, but I am not able to re-size the Windows.
The weird thing is, that most of the times this works, but sometimes just not!
Do you see the sash being drawn as you drag the mouse but then it has no effect? Or does nothing happen at all?
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!
Do you see the sash being drawn as you drag the mouse but then it has no effect? Or does nothing happen at all?
Nothing happens at all.
Probably this happens, because I set the Focus on a Window for a Mouse-Over-Event?
Does it make any difference if you don't do that? Another possibility is that the mouse down event is not detected befor eyou move the mouse away from the sash because you were right on the edge or something.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!
If I try to move the SplitBars to the left or to the right, sometimes
nothing happens!
The Mouse-Cursor changes, but I am not able to re-size the Windows.
The weird thing is, that most of the times this works, but sometimes
just not!
( wxPython 2.4.1.2, Python 2.3.1, Windows 2000)
Robin,
I've noticed this, too, and to answer your question to Thorsten, when I see
it happen it's as if nothing is happening -- i.e. nothing actually 'drags'
with the mouse cursor, just the cursor changes shape. I'm using the same
software as he is.
I have noticed that rotated text does not seem to work correctly on the canvas ( I am somewhat new to wxwindows/wxpython). This is apparent in the demo as well as in use (say for example in the wxPlotCanvas y-axis label). I run RedHat 9 linux, use python 2.2 and wxPython.__version__ = '2.4.1.2'. I tried changing font families but that does not help -- all rotated text is sampled extremely poorly -- any suggestions?
I have noticed that rotated text does not seem to work correctly on the canvas ( I am somewhat new to wxwindows/wxpython). This is apparent in the demo as well as in use (say for example in the wxPlotCanvas y-axis label). I run RedHat 9 linux, use python 2.2 and wxPython.__version__ = '2.4.1.2'. I tried changing font families but that does not help -- all rotated text is sampled extremely poorly -- any suggestions?
Yeah, it's been that way ever since the rotated text feature was added. I think it is because the algorithm used sacrifices quality for speed. If there is a better way to do it that is still fast enough then I'm sure a patch would be accepted.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!
Being new to wxPython I am not sure where the algorithm sits in the code base -- is this a wxPython bit of code, a wxWindows bit of code or some other bit of code elsewhere. Perhaps I would take a gander at it if I knew where to begin.
In the mean time are there any work arounds?
-Todd
Robin Dunn wrote:
···
Todd A. Pitts wrote:
All,
I have noticed that rotated text does not seem to work correctly on the canvas ( I am somewhat new to wxwindows/wxpython). This is apparent in the demo as well as in use (say for example in the wxPlotCanvas y-axis label). I run RedHat 9 linux, use python 2.2 and wxPython.__version__ = '2.4.1.2'. I tried changing font families but that does not help -- all rotated text is sampled extremely poorly -- any suggestions?
Yeah, it's been that way ever since the rotated text feature was added. I think it is because the algorithm used sacrifices quality for speed. If there is a better way to do it that is still fast enough then I'm sure a patch would be accepted.
Well, this is pretty darn Kludgy, and slow, but you could draw your text
to a Bitmap with a wxMemoryDC, convert it to a wxImage, use
wxImage.Rotate(), convert that back into a bitmap, and Draw that into
your DC. It should look fine for 90 deg. rotation, maybe not so good for
other angles.
Robin, Is this better with GTK2 ? Doesn't that have a nicer text
rendering engine?
-Chris
···
--
Christopher Barker, Ph.D.
Oceanographer
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Being new to wxPython I am not sure where the algorithm sits in the code base -- is this a wxPython bit of code, a wxWindows bit of code or some other bit of code elsewhere. Perhaps I would take a gander at it if I knew where to begin.
It's in wxWindows code in wxWindows/src/gtk/dcclient.cpp in wxWindowDC::DoDrawRotatedText.
In the mean time are there any work arounds?
Not that I can think of.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!
Well, this is pretty darn Kludgy, and slow, but you could draw your text
to a Bitmap with a wxMemoryDC, convert it to a wxImage, use
wxImage.Rotate(), convert that back into a bitmap, and Draw that into
your DC. It should look fine for 90 deg. rotation, maybe not so good for
other angles.
Robin, Is this better with GTK2 ? Doesn't that have a nicer text
rendering engine?
It does, but so far DoDrawRotatedText is not using it. In fact it does something similar to the above.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!