Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / set display mode help

Author
Message
Daniel wright 2311
User Banned
Posted: 7th Jun 2012 06:42
ok, so, Is there a better way to do this,mabey a function I can make it in,I tryed,the function did not work.



my signature keeps being erased by a mod So this is my new signature.
Mr Bigglesworth
18
Years of Service
User Offline
Joined: 4th Mar 2008
Location:
Posted: 7th Jun 2012 07:06
Where exactly do you want the cursor? You could make a simple equation to do it at any resolution you use.
Daniel wright 2311
User Banned
Posted: 7th Jun 2012 07:50
see,that is the thing,I want the cursor diffrent places in my program,so,to make it simple,I would make this into a function for diffrent positions of the cursor.I tryed this,but it did not work.

my signature keeps being erased by a mod So this is my new signature.
Pincho Paxton
23
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 7th Jun 2012 13:05
Well if desktop width = 1280 you can set cursor 600,3 that gets rid of 4 checks. If Desktopwidth > 1300 and dektopheight = 768 then set cursor 630,3.

...it's now a reasonable size.

zeroSlave
17
Years of Service
User Offline
Joined: 13th Jun 2009
Location: Springfield
Posted: 7th Jun 2012 13:49 Edited at: 7th Jun 2012 13:49
Depending on where things are drawn and to make it more dynamic, you could just use something like: set cursor screen width() / 2 - 50, 3

Everybody is a genius. But if you judge a fish by its ability to climb a tree, it will live its whole life believing that it is stupid.
Daniel wright 2311
User Banned
Posted: 7th Jun 2012 19:33
@zeroSlave good point,thank you

@Pincho Paxton, right,this is true,its not the hidth,its the width,thanks,the makes it short.

my signature keeps being erased by a mod So this is my new signature.

Login to post a reply

Server time is: 2026-07-08 17:35:32
Your offset time is: 2026-07-08 17:35:32