Corrects directly the input cursor position on window moving

This commit is contained in:
Markus Gans 2017-03-12 20:29:10 +01:00
parent 7ab1a6b353
commit 06ec274d00
4 changed files with 14 additions and 10 deletions

View File

@ -1,3 +1,6 @@
2017-03-13 Markus Gans <guru.mail@muenster.de>
* Corrects directly the input cursor position on window moving
2017-03-12 Markus Gans <guru.mail@muenster.de>
* The FButtonGroup now has a scrolling area
with on-demand scroll bars

View File

@ -279,12 +279,14 @@ void FDialog::setPos (int x, int y, bool)
// set the cursor to the focus widget
FWidget* focus_widget = FWidget::getFocusWidget();
if ( focus_widget
&& focus_widget->isVisible()
&& focus_widget->hasVisibleCursor() )
{
FPoint cursor_pos = focus_widget->getCursorPos();
focus_widget->setCursorPos(cursor_pos);
updateVTermCursor(vwin);
}
updateTerminal();

View File

@ -111,15 +111,15 @@ FString::FString (uInt len, char c)
}
//----------------------------------------------------------------------
FString::FString (const FString& s) // copy constructor
: string(0)
, length(0)
, bufsize(0)
, c_string(0)
{
if ( s.string )
_replace (s.string);
}
FString::FString (const FString& s) // copy constructor
: string(0)
, length(0)
, bufsize(0)
, c_string(0)
{
if ( s.string )
_replace (s.string);
}
//----------------------------------------------------------------------
FString::FString (const std::wstring& s)

View File

@ -41,7 +41,6 @@ int main (int argc, char* argv[])
x = (app.getColumnNumber() - w) / 2;
y = (app.getLineNumber() - h) / 2;
dgl->setGeometry (x, y, w, h);
dgl->setShadow();
// Create another button group
FButtonGroup* checkButtonGroup = new FButtonGroup("choice", dgl);