Mega Search
23.2 Million


Sign Up

Make a donation  
Bug in wxNotebook (can be seen in notebook sample)  
News Group: comp.soft-sys.wxwindows

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

Vote for best question.
Score: 0  # Vote:  0
Date Posted: 26-Aug-2011, at 3:42 PM EST
From: Marco DeFreitas
 
Re: Bug in wxNotebook (can be seen in notebook sample)  
News Group: comp.soft-sys.wxwindows
On 2011-08-29, Marco DeFreitas  wrote:
> On Aug 27, 4:36?pm, Vadim Zeitlin  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.

 Regards,
VZ

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

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 30-Aug-2011, at 10:45 PM EST
From: Vadim Zeitlin
 
Re: Bug in wxNotebook (can be seen in notebook sample)  
News Group: comp.soft-sys.wxwindows
On Aug 27, 4:36 pm, Vadim Zeitlin  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

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 29-Aug-2011, at 8:30 AM EST
From: Marco DeFreitas
 
Re: Bug in wxNotebook (can be seen in notebook sample)  
News Group: comp.soft-sys.wxwindows
On 2011-08-26, Marco DeFreitas  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/

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 27-Aug-2011, at 8:36 PM EST
From: Vadim Zeitlin