From 86483640d7271f5535f3e5d361bdebd83a79a2bb Mon Sep 17 00:00:00 2001 From: djes Date: Sun, 2 Oct 2016 19:52:49 +0200 Subject: [PATCH] Linux SetActiveGadget(-1) fix --- PBMap.pb | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/PBMap.pb b/PBMap.pb index b034bb4..86797ee 100644 --- a/PBMap.pb +++ b/PBMap.pb @@ -2209,6 +2209,10 @@ CompilerIf #PB_Compiler_IsMainFile StringGadget(#StringGeoLocationQuery, 530, 450, 150, 20, "") SetActiveGadget(#StringGeoLocationQuery) AddKeyboardShortcut(#Window_0, #PB_Shortcut_Return, 1) + CompilerIf #PB_Compiler_OS = #PB_OS_Linux + Dummy = ButtonGadget(#PB_Any, 0, 0, 1, 1, "Dummy") + HideGadget(Dummy, 1) + CompilerEndIf Define Event.i, Gadget.i, Quit.b = #False Define pfValue.d @@ -2301,7 +2305,11 @@ CompilerIf #PB_Compiler_IsMainFile Case #PB_Event_Menu Select EventMenu() Case 1 - SetActiveGadget(-1) + CompilerIf #PB_Compiler_OS = #PB_OS_Linux + SetActiveGadget(Dummy) + CompilerElse + SetActiveGadget(-1) + CompilerEndIf EndSelect EndSelect Until Quit = #True @@ -2311,9 +2319,10 @@ CompilerIf #PB_Compiler_IsMainFile CompilerEndIf -; IDE Options = PureBasic 5.50 (Windows - x64) -; CursorPosition = 1156 -; FirstLine = 1144 +; IDE Options = PureBasic 5.42 LTS (Windows - x64) +; CursorPosition = 2180 +; FirstLine = 2221 ; Folding = ---------------- +; EnableUnicode ; EnableThread ; EnableXP \ No newline at end of file