[Implemented] misc stuff for the PB library system
Posted: Sat Jun 19, 2004 6:15 am
- WindowOutput() and ImageOutput() should get a number as argument,
like SpriteOutput(#sprite) and TextureOutput(#texture) - DrawText() is the only 2D-Drawing function that doesnt have
an optional Color parameter, so i would say its missing - The Font library should get a command to get the height of
a Font, lets say: FontHeight(#Font)
FontHeight() should return the height of a Font in pixels. Not the
height that you specify in LoadFont() -> it should return the biggest
height of the font, which means from top to bottom.
For Example 'T' goes to the top, 's' is normal and 'g' goes to the bottom.
Know what i´m trying to say? - FontID() should get a parameter FontID(#font)
- ImageHeight(), ImageWidth() and ImageDepth() should all
get a parameter #image, same like point 1 -> ImageHeight(#image) ... - DisableMenuItem() requires the #Menu as first parameter to
specify in which menu i want to disable which item.
Atm we can only use 1 menu with it, always the last created
menu is used. - AddStatusBarField(Width) needs a parameter #statusbar to know
which statusbar is used atm.
DeleteStatusBarField(#statusbar, field) would be nice, to add and
remove fields at runtime like required. - WindowX()/Y(), WindowMouseX()/Y(), WindowWidth()/Height(),
ResizeWindow(), MoveWindow(), DetachMenu() and ActivateWindow()
should all get a parameter #window, like AddKeyboardShortcut(),
CloseWindow(), HideWindow(), and so on...
Its needed to get a system into PureBasic! Some commands have
the #window parameter, others dont have it and rely on the current
window specified with UseWindow()! - ExamineJoystick() should return the number of joysticks available.
All other joystick functions should use #joystick as first parameter
then. - Docs for MouseX(), MouseY() and the other functions say its
Windows and Amiga only, but it works on Linux too.
The docs should get updated to really show which functions are
available on which platform and whats not available. - WindowMouseX() and WindowMouseY() should return the co-ordinates
relatively to the client area, because PB uses the client area for
everything and the border+titlebar sizes can always be different. - new commands ScreenWidth() and ScreenHeight() should return
the width and height for the opened (windowed)screen (0 if no screen is opened)
Linux and Windows (and for 3.91 final please

Thanks for listening!