[Implemented] OpenWindowedScreen 3 last parameters optional

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Lebostein
Addict
Addict
Posts: 826
Joined: Fri Jun 11, 2004 7:07 am

[Implemented] OpenWindowedScreen 3 last parameters optional

Post by Lebostein »

Hi,

Code: Select all

Result = OpenWindowedScreen(WindowID, x, y, Width, Height, AutoStretch, RightOffset, BottomOffset)
please set the parameters "AutoStretch", "RightOffset" and "BottomOffset" optional:

Code: Select all

Result = OpenWindowedScreen(WindowID, x, y, Width, Height, [AutoStretch, RightOffset, BottomOffset])
so it's easier to use.
User avatar
Joakim Christiansen
Addict
Addict
Posts: 2452
Joined: Wed Dec 22, 2004 4:12 pm
Location: Norway
Contact:

Post by Joakim Christiansen »

Agreed
Lebostein
Addict
Addict
Posts: 826
Joined: Fri Jun 11, 2004 7:07 am

Post by Lebostein »

Hm...no feedback = no good idea?

I think it's very useful.
Fred
Administrator
Administrator
Posts: 18161
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

no feedback = no feedback
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6166
Joined: Sat May 17, 2003 11:31 am
Contact:

Post by blueznl »

ok feedback :-)

think it's an ok idea, though it wouldn't bother me too much to do it without :-)
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
traumatic
PureBasic Expert
PureBasic Expert
Posts: 1661
Joined: Sun Apr 27, 2003 4:41 pm
Location: Germany
Contact:

Re: OpenWindowedScreen() - 3 last parameters please optional

Post by traumatic »

I may be stoned to death for this but...

...just use a macro :P
Good programmers don't comment their code. It was hard to write, should be hard to read.
Dare2
Moderator
Moderator
Posts: 3321
Joined: Sat Dec 27, 2003 3:55 am
Location: Great Southern Land

Post by Dare2 »

Let he who is without syntax cast the first stone ..
@}--`--,-- A rose by any other name ..
Lebostein
Addict
Addict
Posts: 826
Joined: Fri Jun 11, 2004 7:07 am

Re: OpenWindowedScreen() - 3 last parameters please optional

Post by Lebostein »

traumatic wrote:...just use a macro :P
It's not for me, I have no problem with this parameters and I don't use the WindowedScreen. I would like to simplify some things for all PureBasic users. Thats my intention, a better PureBasic. I post every idea....
Last edited by Lebostein on Thu Mar 16, 2006 9:20 am, edited 2 times in total.
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6166
Joined: Sat May 17, 2003 11:31 am
Contact:

Post by blueznl »

i suppose lebostein is right, there's always room for improvement :-)
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
traumatic
PureBasic Expert
PureBasic Expert
Posts: 1661
Joined: Sun Apr 27, 2003 4:41 pm
Location: Germany
Contact:

Re: OpenWindowedScreen() - 3 last parameters please optional

Post by traumatic »

Lebostein, that's perfectly ok to me, sorry if you got me wrong somehow.

Dare2: :lol:
Good programmers don't comment their code. It was hard to write, should be hard to read.
#NULL
Addict
Addict
Posts: 1497
Joined: Thu Aug 30, 2007 11:54 pm
Location: right here

Post by #NULL »

+1

and is it possible to have a choose in the style of #PB_Image_Smooth or #PB_Image_Raw for the windowedscreen autostrech as well as for DrawImage(), just as its the case for ResizeImage()? i guess thats rather difficult.
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Post by DoubleDutch »

+1
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
User avatar
nco2k
Addict
Addict
Posts: 1344
Joined: Mon Sep 15, 2003 5:55 am

Post by nco2k »

+2 :D

c ya,
nco2k
If OSVersion() = #PB_OS_Windows_ME : End : EndIf
Post Reply