Need help adujusting similar screens
Author |
Message |
cubera
|
Posted: Thu Jan 12, 2012 12:08 am Post subject: Need help adujusting similar screens |
|
|
What is it you are trying to achieve?
I want my program to work on most computers.
What is the problem you are having?
when i try it on somebody else's computer the program becomes distorted and the pictures and texts aren't in the right places.
Describe what you have tried to solve this problem
Not quite sure how to fix this.
Post any relevant code (You may choose to attach the file instead of posting the code if it is too long)
This is the command line i use at the start of my program:
View.Set ("graphics:max;max,nobuttonbar")
However when i tried it on my friends computer the program did pop up but the pictures and texts i put on the screen were different in his monitor then mine.
is there a way to adjust the viewset so its similar on all computers?
Turing: |
<Add your code here>
|
Please specify what version of Turing you are using
4.1 |
|
|
|
|
|
Sponsor Sponsor
|
|
|
ttm
|
Posted: Thu Jan 12, 2012 12:25 am Post subject: RE:Need help adujusting similar screens |
|
|
Most likely you're drawing things relative to maxx and maxy. Try using graphics:666;888 instead of graphics:max;max so that your window sizes are the same. Also, the <Add your code here> is here for a reason.
Perhaps you could post screenshots of what it looks like on the two computers? |
|
|
|
|
|
Beastinonyou
|
Posted: Thu Jan 12, 2012 5:09 pm Post subject: Re: Need help adujusting similar screens |
|
|
Well, It seems that what you really want, is have your program appear in alignment on all resolutions, whatever they may be, depending on what computer somebody is running it on.
You really have 2 options (that I can think of), which is either:
1. Use a constant value for window sizes, not a variable (i.e., 920;680 rather than max;max) so the window of your program will not change
I personally like to open my windows like this:
Turing: |
var window : int := Window.Open ("graphics: 920;680")
% So later, instead of the program stopping and manually having to close the window, I can close the run window by doing:
Window.Close (window )
|
2. Placing anything in your run window will have to be based off of the max of both x and y (i.e., circle_x := maxx div 2) .. |
|
|
|
|
|
|
|