Code: Select all
; bad
OpenWindow(0,0,0,220,100, "", #PB_Window_SystemMenu|#PB_Window_ScreenCentered)
x+1
; good
OpenWindow(0, 0, 0, 220, 100, "", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
x + 1
Code: Select all
; bad
OpenWindow(0,0,0,220,100, "", #PB_Window_SystemMenu|#PB_Window_ScreenCentered)
x+1
; good
OpenWindow(0, 0, 0, 220, 100, "", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
x + 1
I don't know about this one specifically, but in general, tools like this do not modify strings. They usually skip anything within quotes, because strings are usually not code and frequently must remain unaltered.
Code: Select all
comstr$ = ~"-c \"find %s 2>&1\""
Code: Select all
If ToolBar::Gadget(#MainWindow, #ToolBar, 10, 10, 200, 40, ToolBar::#ImageAndText)
If IsFont(ToolBarFont) : ToolBar::SetFont(#ToolBar, FontID(ToolBarFont)) : EndIf
CatchImage(#TBImage1, ?TBImage1)
EndIf
Code: Select all
Procedure.s AddTabs(Tabs, Tab.s)
ProcedureReturn RSet("", Tabs * Len(Tab), Tab)
EndProcedure
Code: Select all
Select EventMenu()
Case #Shortcut_Ctrl_A
Select_All()
Case #Shortcut_Ctrl_U
Unselect_All()
EndSelect
Code: Select all
Enumeration DWMWINDOWATTRIBUTE
#DWMWA_USE_IMMERSIVE_DARK_MODE = 20
#DWMWA_BORDER_COLOR = 34
#DWMWA_CAPTION_COLOR = 35
#DWMWA_TEXT_COLOR = 36
EndEnumeration
#DWMWA_USE_IMMERSIVE_DARK_MODE = 20
#DWMWA_BORDER_COLOR = 34
#DWMWA_CAPTION_COLOR = 35
#DWMWA_TEXT_COLOR = 36