Kirix Support Forums

Possibly only Cosmetic change

Please post any wxAUI patches or modifications you've created here. Thanks!

Possibly only Cosmetic change

Postby epage on Fri Jul 28, 2006 5:20 pm

Code: Select all
void wxFrameManager::OnFloatingPaneMoving(wxWindow* wnd)
{
...
    // no hint for toolbar floating windows
    if (pane.IsToolbar() && m_action == actionDragFloatingPane)
    {
        if (m_action == actionDragFloatingPane)
        {
            ...
        }
        return;
    }
...
}


is equivelant to

Code: Select all
void wxFrameManager::OnFloatingPaneMoving(wxWindow* wnd)
{
...
    // no hint for toolbar floating windows
    if (pane.IsToolbar() && m_action == actionDragFloatingPane)
    {
        ...
        return;
    }
...
}


The extra if-statement was redundant, but was something else meant?
epage
Registered User
 
Posts: 10
Joined: Thu Jul 13, 2006 2:16 pm

Postby epage on Fri Jul 28, 2006 7:35 pm

Code: Select all
    if (pane.IsToolbar() && m_action == actionDragFloatingPane)
    {
        if (m_action == actionDragFloatingPane)
        {


Code: Select all
    if (pane.IsToolbar())
    {


For me, if I pulled out a toolbar and moved it over a docking area again, it will dock without a mouse release.
If I released the mouse and left it floating, and then docked the toolbar, it would act like a docking window.

This makes it always act like the first case
epage
Registered User
 
Posts: 10
Joined: Thu Jul 13, 2006 2:16 pm

Return to wxAUI Patches & Modifications