Discussion:
Bug in wxNotebook (can be seen in notebook sample)
(too old to reply)
Marco DeFreitas
2011-08-26 22:42:54 UTC
Permalink
I am using wxGTL-2.8.12, with gtk2-2.8.

There seems to be a problem with wxNotebook whereby the page changes
unintentionally with drag-and-drop.

To see this, select any text, perhaps some text on a terminal, or a
web page. Then try to do a drag of that text. As you slowly move the
cursor over the tabs, the page changes.

Any ideas how to fix this?

Thanks in advance.

--Marco
Vadim Zeitlin
2011-08-27 20:36:12 UTC
Permalink
Post by Marco DeFreitas
There seems to be a problem with wxNotebook whereby the page changes
unintentionally with drag-and-drop.
To see this, select any text, perhaps some text on a terminal, or a
web page. Then try to do a drag of that text. As you slowly move the
cursor over the tabs, the page changes.
Any ideas how to fix this?
I don't think it's due to anything wx does, must be a GTK thing. And I
wouldn't be surprised if it did intentionally to allow you to drop on some
control inside another page.

Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
Marco DeFreitas
2011-08-29 15:30:33 UTC
Permalink
 I don't think it's due to anything wx does, must be a GTK thing. And I
wouldn't be surprised if it did intentionally to allow you to drop on some
control inside another page.
 Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
             http://www.tt-solutions.com/
Hey Vadim,

Thanks for the response. If GTK does this intentionally, do you know
if there is a way to trap this? Perhaps I can veto the event in the
"Page Changing" event handler, but is there an easy way to know if the
event was triggered from a drag operation?

Thanks,
Marco
Vadim Zeitlin
2011-08-30 22:45:15 UTC
Permalink
Post by Marco DeFreitas
?I don't think it's due to anything wx does, must be a GTK thing. And I
wouldn't be surprised if it did intentionally to allow you to drop on some
control inside another page.
Hey Vadim,
Thanks for the response. If GTK does this intentionally, do you know
if there is a way to trap this? Perhaps I can veto the event in the
"Page Changing" event handler, but is there an easy way to know if the
event was triggered from a drag operation?
Sorry, no, I really don't know anything about this, I'm just guessing.
You'd have to test this in a pure GTK application (they used to have
examples distributed with GTK itself, including one using GtkNotebook so
perhaps you could use this) to even determine whether this guess is
correct.

Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
Loading...