Default flag parameters for OpenWindow
Default flag parameters for OpenWindow
The docs say for OpenWindow say:
If the optional Flags parameter is not specified, #PB_Window_SystemMenu will be used.
Can I request that this has a couple of additional default flags, specifically:
#PB_Window_SystemMenu | #PB_Window_ScreenCentered | #PB_Window_MinimizeGadget
The reason being is that 99% of apps with a window have a Minimize gadget,
so it'd be handy to have it there for the user's convenience, and opening in
the center of the Desktop is always nice too. What do you think? If anyone
doesn't want these as defaults then they can always specify their desired
flags themselves.
If the optional Flags parameter is not specified, #PB_Window_SystemMenu will be used.
Can I request that this has a couple of additional default flags, specifically:
#PB_Window_SystemMenu | #PB_Window_ScreenCentered | #PB_Window_MinimizeGadget
The reason being is that 99% of apps with a window have a Minimize gadget,
so it'd be handy to have it there for the user's convenience, and opening in
the center of the Desktop is always nice too. What do you think? If anyone
doesn't want these as defaults then they can always specify their desired
flags themselves.
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
"PureBasic won't be object oriented, period" - Fred.
- Kaeru Gaman
- Addict
- Posts: 4826
- Joined: Sun Mar 19, 2006 1:57 pm
- Location: Germany
I think it's a good idea. agree with the 99% assumption...
BTW
do the PB-Constants really every StatusBit avaliable CrossPlatform?
...I think there are a few StatusBits under windows that are currently not PB-supported
(only by the constants, of course you can use API-constants)
and there are StatusBits supported in combination that are not supported single...
BTW
do the PB-Constants really every StatusBit avaliable CrossPlatform?
...I think there are a few StatusBits under windows that are currently not PB-supported
(only by the constants, of course you can use API-constants)
and there are StatusBits supported in combination that are not supported single...
oh... and have a nice day.
we had this discussion already once and came to the conclusion, that there is absolutely no point in overriding the x, y parameters by default. as for the #PB_Window_MinimizeGadget, everyone has a different taste, some would like a min, others a min+max and others a max only. because of that, i think having only #PB_Window_SystemMenu is a good choice. i also doubt that this feature was meant as a replacement for the flags, but more like an easy and fast way to test some code, without the need for extra typing.
c ya,
nco2k

c ya,
nco2k
If OSVersion() = #PB_OS_Windows_ME : End : EndIf
> [this feature was] more like an easy and fast way to test some code,
> without the need for extra typing
Agreed, which is why I like the extra flags that I mentioned. It means I don't
have to specify an X/Y position, which, if left to the Windows default, usually
makes my window underneath something else, such as the Debugger window.
Then I have to drag my test window out, which is annoying; or specify precise
X/Y positions (such as 200,200) to ensure my Debugger doesn't cover it.
> there is absolutely no point in overriding the x, y parameters by default
True, I forgot about that.
> without the need for extra typing
Agreed, which is why I like the extra flags that I mentioned. It means I don't
have to specify an X/Y position, which, if left to the Windows default, usually
makes my window underneath something else, such as the Debugger window.
Then I have to drag my test window out, which is annoying; or specify precise
X/Y positions (such as 200,200) to ensure my Debugger doesn't cover it.
> there is absolutely no point in overriding the x, y parameters by default
True, I forgot about that.
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
"PureBasic won't be object oriented, period" - Fred.
-
- New User
- Posts: 9
- Joined: Fri Apr 28, 2006 4:20 pm
- Location: Missouri
FLAGS
I'm fairly new to PB. It seems that there is tremendous power in using the right flags with the code. Where do I find out that kind of info?
Thanks.
Thanks.
Re: FLAGS
In the Help File.bhatkins2000 wrote:I'm fairly new to PB. It seems that there is tremendous power in using the right flags with the code. Where do I find out that kind of info?
Thanks.
- Joakim Christiansen
- Addict
- Posts: 2452
- Joined: Wed Dec 22, 2004 4:12 pm
- Location: Norway
- Contact:
I think the default parameters now are plain silly (I have never used them), why can't we just have this (as PB suggested)?
Anyone else agree with me? I always end up writing them manually anyway...
Code: Select all
#PB_Window_SystemMenu | #PB_Window_ScreenCentered | #PB_Window_MinimizeGadget
I like logic, hence I dislike humans but love computers.
- Kaeru Gaman
- Addict
- Posts: 4826
- Joined: Sun Mar 19, 2006 1:57 pm
- Location: Germany
> If new windows used the #PB_Window_ScreenCentered parameter by
> default then we will need a new parameter "#PB_Window_NotScreenCentered"
No, because the idea is that if you specify an X,Y position then it uses that,
and ignores the #PB_Window_ScreenCentered flag in that case. Otherwise,
you can use #PB_Ignore for X,Y and the window will be centred automatically.
> default then we will need a new parameter "#PB_Window_NotScreenCentered"
No, because the idea is that if you specify an X,Y position then it uses that,
and ignores the #PB_Window_ScreenCentered flag in that case. Otherwise,
you can use #PB_Ignore for X,Y and the window will be centred automatically.
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
"PureBasic won't be object oriented, period" - Fred.
- Kaeru Gaman
- Addict
- Posts: 4826
- Joined: Sun Mar 19, 2006 1:57 pm
- Location: Germany
> No, because the idea is that if you specify an X,Y position then it uses that,
> and ignores the #PB_Window_ScreenCentered flag in that case. Otherwise,
> you can use #PB_Ignore for X,Y and the window will be centred automatically.
that is not possible!
a set ScreenCentered-Flag will ignore the coordinates, also Ignore-Coordinates.
an Ignore for the Coordinates without ScreenCentered will place the Window on the actual cascaded position.
this topic is about altering the default flag,
not about changing the default behaviour reacting to the flags.
the latter is not at all possible because it's an OS issue.
> and ignores the #PB_Window_ScreenCentered flag in that case. Otherwise,
> you can use #PB_Ignore for X,Y and the window will be centred automatically.
that is not possible!
a set ScreenCentered-Flag will ignore the coordinates, also Ignore-Coordinates.
an Ignore for the Coordinates without ScreenCentered will place the Window on the actual cascaded position.
this topic is about altering the default flag,
not about changing the default behaviour reacting to the flags.
the latter is not at all possible because it's an OS issue.
oh... and have a nice day.