If OpenWindow(0,0,0,500,250,"Window",#PB_Window_SystemMenu|#PB_Window_ScreenCentered) If CreateToolBar(0,WindowID(0)) TBID = SendMessage_(ToolBarID(0),#TB_GETIMAGELIST,0,0) ImageList_SetIconSize_(TBID,32,32) SendMessage_(ToolBarID(0),#TB_SETIMAGELIST,0,TBID) SendMessage_(ToolBarID(0),#TB_AUTOSIZE,0,0) ToolBarImageButton(1,3) ToolBarImageButton(2,5) ToolBarImageButton(3,7) ToolBarImageButton(4,9) ToolBarImageButton(5,11) EndIf Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow EndIf