Improved status bar text updating at window change
This commit is contained in:
parent
203c50f4e6
commit
4e447a6096
|
@ -1,3 +1,6 @@
|
|||
2016-06-18 Markus Gans <guru.mail@muenster.de>
|
||||
* Improved status bar text updating at window change
|
||||
|
||||
2016-06-16 Markus Gans <guru.mail@muenster.de>
|
||||
* Bug fix in FTerm updateVTerm() for updates from vdesktop
|
||||
* Bug fix in FDialog onWindowActive() for combined setFocus()
|
||||
|
|
|
@ -527,6 +527,7 @@ void FDialog::onMouseDown (FMouseEvent* ev)
|
|||
{
|
||||
FWidget* old_focus = FWidget::getFocusWidget();
|
||||
setActiveWindow(this);
|
||||
|
||||
if ( focus_widget )
|
||||
{
|
||||
focus_widget->setFocus();
|
||||
|
@ -536,6 +537,9 @@ void FDialog::onMouseDown (FMouseEvent* ev)
|
|||
}
|
||||
else if ( old_focus && focusFirstChild() )
|
||||
old_focus->redraw();
|
||||
|
||||
if ( statusBar() )
|
||||
statusBar()->drawMessage();
|
||||
updateTerminal();
|
||||
}
|
||||
if ( has_raised )
|
||||
|
@ -580,9 +584,12 @@ void FDialog::onMouseDown (FMouseEvent* ev)
|
|||
if ( old_focus )
|
||||
old_focus->redraw();
|
||||
}
|
||||
else if ( focusFirstChild() )
|
||||
if ( old_focus )
|
||||
old_focus->redraw();
|
||||
else if ( old_focus && focusFirstChild() )
|
||||
old_focus->redraw();
|
||||
|
||||
if ( statusBar() )
|
||||
statusBar()->drawMessage();
|
||||
updateTerminal();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -605,12 +612,14 @@ void FDialog::onMouseDown (FMouseEvent* ev)
|
|||
if ( old_focus )
|
||||
old_focus->redraw();
|
||||
}
|
||||
else if ( focusFirstChild() )
|
||||
if ( old_focus )
|
||||
old_focus->redraw();
|
||||
};
|
||||
else if ( old_focus && focusFirstChild() )
|
||||
old_focus->redraw();
|
||||
|
||||
if ( has_lowered )
|
||||
if ( statusBar() )
|
||||
statusBar()->drawMessage();
|
||||
updateTerminal();
|
||||
}
|
||||
else if ( has_lowered )
|
||||
updateTerminal();
|
||||
}
|
||||
}
|
||||
|
@ -730,12 +739,15 @@ void FDialog::onWindowActive (FEvent*)
|
|||
{
|
||||
focus_widget->setFocus();
|
||||
focus_widget->redraw();
|
||||
if ( statusBar() )
|
||||
statusBar()->drawMessage();
|
||||
}
|
||||
else
|
||||
focusFirstChild();
|
||||
}
|
||||
|
||||
if ( statusBar() )
|
||||
statusBar()->drawMessage();
|
||||
|
||||
updateTerminal();
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
|
|
|
@ -52,12 +52,14 @@ ProgressDialog::ProgressDialog (FWidget* parent)
|
|||
|
||||
reset = new FButton(this);
|
||||
reset->setText("&Reset");
|
||||
reset->setStatusbarMessage ("Reset the progress bar");
|
||||
reset->setGeometry(2, 6, 8, 1, false);
|
||||
reset->setShadow();
|
||||
reset->setDisable();
|
||||
|
||||
more = new FButton(this);
|
||||
more->setText("&More");
|
||||
more->setStatusbarMessage ("Increases the progress bar position");
|
||||
more->setGeometry(15, 6, 8, 1, false);
|
||||
more->setShadow();
|
||||
more->setDisable();
|
||||
|
|
Loading…
Reference in New Issue