[Done] DisableWindow()

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

[Done] DisableWindow()

Post by SparrowhawkMMU »

Sorry, I know I'm posting a lot of feature requests - it's only because I'm enjoying SB so much and I want it to get even better.

Anyway, I was wondering whether it would be possible to disable an entire window, so that we can have modal style functionality (ie open window A, click on a button and open window B. Window B is made sticky, window A is disabled)

Ideally, if the disabled window could be optionally dimmed / greyed out to indicate it's state, that would be great

If this is possible / desirable, I propose the following syntax to keep it in line with other Disable commands:

Code: Select all

DisableWindow(#Window, state [, Flags])
Where
#Window is the integer window number that the window was created with
state is either #True or #False
Flags (optional): #PB_Window_Dim

Or add a new flag to the list allowed on OpenWindow(): #PB_Window_DimOnDisabled
Last edited by SparrowhawkMMU on Fri Mar 25, 2016 7:12 pm, edited 1 time in total.
User avatar
SparrowhawkMMU
Posts: 281
Joined: Wed Aug 19, 2015 3:02 pm
Location: United Kingdom

Re: DisableWindow()

Post by SparrowhawkMMU »

Just spotted in the docs that this has been added - thanks Fred! :)
Post Reply