Up until version 6.04, it was much smaller.
I am writing this in the bug forum because the changelog says that the size of the executable files would be smaller, but the opposite is the case.
Here is an example:
Code: Select all
EnableExplicit
If OpenWindow(0, 0, 0, 230, 90, "Event handling example...", #PB_Window_SystemMenu|#PB_Window_ScreenCentered)
ButtonGadget (1, 10, 10, 200, 20, "Click me")
CheckBoxGadget(2, 10, 40, 200, 20, "Check me")
If CreateMenu(0, WindowID(0))
MenuTitle("Menu")
MenuItem(1, "Item 1")
MenuItem(2, "Item 2")
MenuItem(3, "Item 3")
EndIf
Repeat
Select WaitWindowEvent()
Case #PB_Event_CloseWindow
Break
Case #PB_Event_Gadget
Select EventGadget()
Case 1: Debug "Button 1 clicked!"
Case 2: Debug "Button 2 clicked!"
EndSelect
Case #PB_Event_Menu
Select EventMenu()
Case 1 : Debug "Menu item 1 clicked!"
Case 2 : Debug "Menu item 2 clicked!"
Case 3 : Debug "Menu item 3 clicked!"
EndSelect
EndSelect
ForEver
EndIfPureBasic x64 6.12: 234Kb

