Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug in wxNotebook (can be seen in notebook sample)

45 views
Skip to first unread message

Marco DeFreitas

unread,
Aug 26, 2011, 6:42:54 PM8/26/11
to
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

unread,
Aug 27, 2011, 4:36:12 PM8/27/11
to
On 2011-08-26, Marco DeFreitas <defr...@gmail.com> wrote:
> 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

unread,
Aug 29, 2011, 11:30:33 AM8/29/11
to
On Aug 27, 4:36 pm, Vadim Zeitlin <va...@wxwidgets.org> wrote:
>  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

unread,
Aug 30, 2011, 6:45:15 PM8/30/11
to
On 2011-08-29, Marco DeFreitas <defr...@gmail.com> wrote:
> On Aug 27, 4:36?pm, Vadim Zeitlin <va...@wxwidgets.org> wrote:
>> ?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.

0 new messages