#PB_Window_ScreenCentered offsets

Got an idea for enhancing SpiderBasic? New command(s) you'd like to see?
User avatar
SparrowhawkMMU
Posts: 281
Joined: Wed Aug 19, 2015 3:02 pm
Location: United Kingdom

#PB_Window_ScreenCentered offsets

Post by SparrowhawkMMU »

It would be great if when #PB_Window_ScreenCentered is specified in an OpenWindow() command, the x and y coordinates could act as an offset rather than being ignored. For example:

Code: Select all

OpenWindow(#Window1, -100, 20, 500, 300, "Foo", #PB_Window_ScreenCentered)
would open Window1 centred on the screen but offset 100 pixels left and 20 pixels down.


This would be useful for opening pop ups to capture specific data, allowing the window to be opened whilst not overlapping some important information below.

Where x and y coordinates are both 0 or #PB_Ignore, the effect would be as it is now, i.e. fully centred.