That's seriously useful Fred- Added: #PB_Canvas_Container support to have a container behaviour for canvas

That's seriously useful Fred- Added: #PB_Canvas_Container support to have a container behaviour for canvas
Code: Select all
Debug #PB_EventType_Change ; The current displayed tab has been changed.
Debug #PB_EventType_Resize ; The gadget has been resized.
Code: Select all
#PB_EventType_Resize = 6
Code: Select all
- Added: "Joe Doe <joe.doe@domain.com>" email format support for SendMail()
- Added: Compression level support for CreatePack() and CompressMemory()
- Added: Large icons and text support to ToolBar library
- Added: GetUserDirectory() to get user specific directories
- Added: #PB_Canvas_Container support to have a container behaviour for canvas
- Added: (IDE) find previous (reverse find)
Code: Select all
- Changed: ToolBar, Menu and StatusBar are now excluded from inner window area for all OS
- Changed: MenuHeight(), StatusBarHeight() and ToolBarHeight() are now deprecated (all returns 0)
No because on OSX it worked alrealdy like that (MenuHeight()/ToolBarHeight() returned always 0), on Linux the toolbar was excluded as well, but you needed to take it in account in your window calc. On Window, the gadget Y coordinate was the window top, not the toolbar bottom like on Linux/OSX so shift were needed. It was quite a bit of mess, so this change was done to solve it and make it easy as it should have been from the start.kenmo wrote:This seems like taking GUI information away from the programmer...?Code: Select all
- Changed: ToolBar, Menu and StatusBar are now excluded from inner window area for all OS - Changed: MenuHeight(), StatusBarHeight() and ToolBarHeight() are now deprecated (all returns 0)
Code: Select all
OpenWindow(0, 100, 100, 800, 400, "", #PB_Window_SizeGadget | #PB_Window_SystemMenu | #PB_Window_MaximizeGadget)
ButtonGadget(0, 0, 0, 100, 30, "CreateToolBar")
ButtonGadget(1, 110, 0, 100, 30, "FreeToolBar")
ButtonGadget(2, 220, 0, 100, 30, "CreateMenu")
ButtonGadget(3, 330, 0, 100, 30, "FreeMenu")
ButtonGadget(4, 440, 0, 100, 30, "CreateStatus")
ButtonGadget(5, 550, 0, 100, 30, "FreeStatus")
ButtonGadget(6, 0, 370, 100, 30, "Bottom")
Repeat
Event = WaitWindowEvent()
If event = #PB_Event_Gadget
Select EventGadget()
Case 0
If CreateToolBar(0, WindowID(0), #PB_ToolBar_Large | #PB_ToolBar_Text)
ToolBarStandardButton(3, #PB_ToolBarIcon_Cut, 0, "Hello")
ToolBarStandardButton(4, #PB_ToolBarIcon_Copy, 0, "Hello")
ToolBarStandardButton(5, #PB_ToolBarIcon_Paste, 0)
EndIf
Case 1
If IsToolBar(0)
FreeToolBar(0)
EndIf
Case 2
CreateMenu(0, WindowID(0))
MenuTitle("Test")
MenuTitle("About")
Case 3
If IsMenu(0)
FreeMenu(0)
EndIf
Case 4
CreateStatusBar(0, WindowID(0))
AddStatusBarField(100)
StatusBarText(0, 0, "Test")
Case 5
If IsStatusBar(0)
FreeStatusBar(0)
EndIf
EndSelect
EndIf
If event = #PB_Event_SizeWindow
Debug "Window inner size: "+WindowWidth(0) + "x" + WindowHeight(0)
EndIf
Until Event = #PB_Event_CloseWindow
Code: Select all
- Added: (IDE) new specific popup menu for file tab to ease source file management
Code: Select all
- Added: GIF decoder support
- Added: SetImageFrame(), GetImageFrame(), ImageFrameCount(), AddImageFrame(), RemoveImageFrame()
Code: Select all
- Added: SetImageFrame(), GetImageFrame(), ImageFrameCount(), AddImageFrame(), RemoveImageFrame()