Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Need Help with View.Set/Window.Open
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
xStil




PostPosted: Thu Oct 30, 2008 5:38 pm   Post subject: Need Help with View.Set/Window.Open

In view.set there is a "graphics:<sizeX>;<sizeY>" to set up the screen size...

Is there a possible way of having the user specify 'sizeX' and 'sizeY' through a get statement or something??? I know that if 'sizeX' and 'sizeY' are set to 'max' then they will fit the whole screen, but how can a user specify them for a Window.Open function while running the program???
Sponsor
Sponsor
Sponsor
sponsor
TheGuardian001




PostPosted: Thu Oct 30, 2008 7:02 pm   Post subject: Re: Need Help with View.Set/Window.Open

you can have the user enter the values they want in pixels by using a get statement. to use these values as parameters for View.Set/Window.Open,
simply use
code:

View.Set("graphics:" + xvariable + ";" + yvariable)


this will add the contents of the variable to the string "graphics:". make sure to have the x and y values as strings before adding them, and you're all set
xStil




PostPosted: Thu Oct 30, 2008 7:22 pm   Post subject: RE:Need Help with View.Set/Window.Open

Thanks very much!!!
xStil




PostPosted: Fri Oct 31, 2008 5:55 pm   Post subject: RE:Need Help with View.Set/Window.Open

OK, since this is for the same program and I don't want to make up new topics, I also need help with 'RGB.AddColor'

It only updates the active window, so if the user sets up a new color, it only updates the maxcolor on the window that was active
If they use the Window.Open function, the maxcolor is still 255.

How do I make it update maxcolor on all the windows that are opened or will be opened in the future.

I have only 2 window variables (MainWin and WinID) MainWin being the window active where the colors are created.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 4 Posts ]
Jump to:   


Style:  
Search: