1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-06-29 10:30:36 +00:00

Path to IDE Auto-position

Since _SCREENHIDE doesn't currently work on Linux, alterations were made
to the auto-position routine to keep the IDE from storing screen
positions when minimized and closed that would make it reopen off-screen
and impossible to move/position.
This commit is contained in:
SteveMcNeill 2016-03-04 14:51:08 -05:00
parent 117f12e4d4
commit e9472743e5
2 changed files with 7 additions and 6 deletions

View file

@ -1 +0,0 @@
qb64.bas

View file

@ -637,13 +637,15 @@ DO
idedeltxt 'removes temporary strings (typically created by guibox commands) by setting an index to 0
STATIC ForceResize
if IDE_AutoPosition then
if _SCreenhide = 0 then
'if _SCreenhide = 0 then 'Screenhide currently does not work in Linux, so we need a different check
IF IDE_TopPosition <> _SCREENY OR IDE_LeftPosition <> _SCREENX THEN
WriteConfigSetting "'[IDE DISPLAY SETTINGS]", "IDE_TopPosition" , str$(_SCREENY)
WriteConfigSetting "'[IDE DISPLAY SETTINGS]", "IDE_LeftPosition" , str$(_SCREENX)
IDE_TopPosition = _SCREENY: IDE_LeftPosition = _SCREENX
IF _SCREENY => -_height * _fontheight AND _SCREENX => -_width * _fontwidth THEN 'Don't record the position if it's off the screen, past the point where we can drag it back into a different position.
WriteConfigSetting "'[IDE DISPLAY SETTINGS]", "IDE_TopPosition" , str$(_SCREENY)
WriteConfigSetting "'[IDE DISPLAY SETTINGS]", "IDE_LeftPosition" , str$(_SCREENX)
IDE_TopPosition = _SCREENY: IDE_LeftPosition = _SCREENX
END IF
END IF
end if
'end if
end if
IF _RESIZE or ForceResize THEN