Computer Science Canada Need Help with View.Set/Window.Open |
Author: | xStil [ 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??? |
Author: | TheGuardian001 [ 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
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 |
Author: | xStil [ Thu Oct 30, 2008 7:22 pm ] |
Post subject: | RE:Need Help with View.Set/Window.Open |
Thanks very much!!! |
Author: | xStil [ 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. |