Page 1 of 2
OpenScreen()
Posted: Tue Mar 23, 2010 6:55 pm
by Thomas
Where is the mouse pointer?
Code: Select all
InitSprite()
If OpenScreen(9999,9999,32,"Test")=0
MessageRequester("Test","Error opening screen")
EndIf
Re: OpenScreen()
Posted: Tue Mar 23, 2010 7:19 pm
by Kaeru Gaman
where is the bug report?
if you post, use more words and more sentences.
Re: OpenScreen()
Posted: Wed Mar 24, 2010 12:29 am
by case
the purebasic documentation state that screen resolution must have standards height and width like : 640*480, 800*600, 1024*768...
9999,9999 are not standard screen résolutions...
Re: OpenScreen()
Posted: Wed Mar 24, 2010 2:30 am
by Demivec
@Kaeru: I think the OpenScreen() statement is designed to fail in the sample code so that it demonstrates the problem. The problem is that when the message requester is displayed the mouse pointer disappears when it is placed over it.
It would have been simpler if Thomas had just said that.

Re: OpenScreen()
Posted: Wed Mar 24, 2010 7:47 am
by Kaeru Gaman
I seen that after I tested the code.
... but this does not make this a bug report.
"where is the mouse pointer"... that's not enough for a line in a chat... what should be the answer... "your mama"...?
nevertheless this reveals an interesting problem...
seems that the function first switches off the mousepointer, and does not properly return before opening the requester.
I never happened to see this before, and I did test a lot of failstarts over the years.
Re: OpenScreen()
Posted: Wed Mar 24, 2010 9:21 am
by djes
Maybe brutal for prudish ears, but, in french forums, when one's asking where is something, the answer is always the same...
[censured by Fred]

Re: OpenScreen()
Posted: Wed Mar 24, 2010 12:08 pm
by Thomas
For those who know a bit about programming, no more words are needed. By running the code the problem should be obvious. Even if standard resolutions are required, the failing of the command should not hide the mouse pointer.
Re: OpenScreen()
Posted: Wed Mar 24, 2010 12:49 pm
by Kaeru Gaman
For those who know a bit about netiquette, so few words are hardly acceptable.
you didn't spend enough time to write three explaining sentences what was the matter.
so why should we spend a second to even copy your code to the IDE?
we're not the bloody service hotline, we are fellow programmers.
spend at least that little time you want your colleques to spend.
learn more
Re: OpenScreen()
Posted: Wed Mar 24, 2010 1:43 pm
by djes
djes wrote:Maybe brutal for prudish ears, but, in french forums, when one's asking where is something, the answer is always the same...
[censured by Fred]


Re: OpenScreen()
Posted: Wed Mar 24, 2010 6:19 pm
by Thomas
The best programmers don't say a single word, they just know. You guys are just a bad joke.

Re: OpenScreen()
Posted: Wed Mar 24, 2010 7:59 pm
by luis
Thomas wrote:The best programmers don't say a single word, they just know.
Self-casting a vote to yourself as the best programmer doesn't count.
I see a lot of votes about being lazy tough !
I agree the meaning of your post was understandable, but agree a lot more with Kaeru Gaman on principle. But as programmer I'm only moderately good and probably you don't give a damn about all this

Re: OpenScreen()
Posted: Mon Feb 07, 2011 5:58 pm
by Rescator
Code: Select all
InitSprite()
If OpenScreen(9999,9999,32,"Test")=0
ShowCursor_(#True)
;ReleaseMouse(#True) ;If you use InitMouse() and ExamineMouse() you should release it as well.
MessageRequester("Test","Error opening screen")
ShowCursor_(#False) ;these two are not really needed if the game quits at this point
;ReleaseMouse(#False) ;grab the mouse again.
EndIf
That's all there is to it. Why so many games fail to do this I have no idea.
I've often "lost" the mousepointer due to a error dialog like that in games.
Even worse is that some games bring up an error dialog like that,
but you can't see it and have to alt-tab to the desktop/window to find it,
and the pointer may STILL be hidden.
So showing the cursor when you fire up a error like that is a must IMO.
Re: OpenScreen()
Posted: Mon Feb 07, 2011 7:53 pm
by Trond
Thomas wrote:The best programmers don't say a single word, they just know. You guys are just a bad joke.

If you just knew, why did you ask in the first place?
Anyways, this is documented on the page of OpenScreen(): "Also, the Requester functions cannot be used on screens created with OpenScreen."
Re: OpenScreen()
Posted: Tue Feb 08, 2011 12:29 am
by dobro
djes wrote:Maybe brutal for prudish ears, but,
in french forums, when one's asking where is something, the answer is always the same...
[censured by Fred]

?? c'etait quoi la réponse ?

Re: OpenScreen()
Posted: Tue Feb 08, 2011 3:28 pm
by djes
dobro wrote:djes wrote:Maybe brutal for prudish ears, but,
in french forums, when one's asking where is something, the answer is always the same...
[censured by Fred]

?? c'etait quoi la réponse ?

It was a direction
