[Implemented] Constants for network events
[Implemented] Constants for network events
It would be nicer if the network events 0, 2 and 3 had constants so you didn't have to remember them. It would make sense since everything else in PB has constants.
-
- Addict
- Posts: 2344
- Joined: Mon Jun 02, 2003 9:16 am
- Location: Germany
- Contact:
-
- Enthusiast
- Posts: 613
- Joined: Tue May 06, 2003 2:50 pm
- Location: Germany
- Contact:
Ah, back in those days: viewtopic.php?t=9455&highlight=drawingmodeDarkDragon wrote:DrawingMode() - do for them, too.

<°)))o><²³
-
- Addict
- Posts: 2344
- Joined: Mon Jun 02, 2003 9:16 am
- Location: Germany
- Contact:
Yeah, but I just wanted to mention it again here, because this topic is similarfreedimension wrote:Ah, back in those days: viewtopic.php?t=9455&highlight=drawingmodeDarkDragon wrote:DrawingMode() - do for them, too.

bye,
Daniel
Daniel
-
- Enthusiast
- Posts: 613
- Joined: Tue May 06, 2003 2:50 pm
- Location: Germany
- Contact:
Another constant suggestion: #PB_Window_Standard would equal #PB_Window_MaximizeGadget | #PB_Window_ScreenCentered | #PB_Window_SizeGadget | #PB_Window_SystemMenu | #PB_Window_MinimizeGadget
or something, so that you didn't have to type everything everytime. It would of course also be nice if constants could be removed from the chain, for example if you could remove #PB_Window_ScreenCentered and add #PB_Window_WindowCentered (this may already be possible for all I know).
or something, so that you didn't have to type everything everytime. It would of course also be nice if constants could be removed from the chain, for example if you could remove #PB_Window_ScreenCentered and add #PB_Window_WindowCentered (this may already be possible for all I know).
Until your wish gets considered, you may be interested in this tip:
viewtopic.php?p=120641
viewtopic.php?p=120641
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.
Good tip, however it will create a bit of a mess if everyone had their own constants I think...PB wrote:Until your wish gets considered, you may be interested in this tip:
viewtopic.php?p=120641
> it will create a bit of a mess if everyone had their own constants
True; I didn't consider what would happen if someone posted some code here
that made use of their own custom "Residents" file. But if they're not posting
their code, then it's totally fine. Good pick-up, though!
True; I didn't consider what would happen if someone posted some code here
that made use of their own custom "Residents" file. But if they're not posting
their code, then it's totally fine. Good pick-up, though!

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.
If this will really happen, Fred could add the long forgotten Client Event 4.
This request is from 22 Apr 2003 and someone called "AlphaSND" said something like "I will add this. Thanks for the suggestions !"
This request is from 22 Apr 2003 and someone called "AlphaSND" said something like "I will add this. Thanks for the suggestions !"

{Home}.:|:.{Dialog Design0R}.:|:.{Codes}.:|:.{History Viewer Online}.:|:.{Send a Beer}
Yes, you can using the xor binary operator:Trond wrote:or something, so that you didn't have to type everything everytime. It would of course also be nice if constants could be removed from the chain, for example if you could remove #PB_Window_ScreenCentered and add #PB_Window_WindowCentered (this may already be possible for all I know).
Code: Select all
#PB_Window_Standard = #PB_Window_MaximizeGadget | #PB_Window_ScreenCentered | #PB_Window_SizeGadget | #PB_Window_SystemMenu | #PB_Window_MinimizeGadget
OpenWindow(0, 0, 0, 640, 480, #PB_Window_Standard & ~#PB_Window_SizeGadget, "Test")
Repeat
Until WaitWindowEvent() = #PB_Event_CloseWindow