viewerwidth = 0 .. 1024
The viewerwidth command allows you to set the width in pixels that the new game viewer page will use upon opening in its new window. If no value is provided, then the program will determine a best-fit estimate for the new viewer window. This value can then be adjusted based upon how the actual window appears when opened. An example of a viewer window is: viewerheight = 450 viewerwidth = 700 ![]() For the most part, all you really want to do is set an appropriate value for the height and width of the new window. There are a few factors to take into consideration when calculating these values. For example, the width of the game's IFRAME is set by the INI option iframewidth which is usually set to 400, while the board's width is generally ten times the width of the pieces used. So a minimum width for the window would be 400 + 10 * 29 = 690. So 700 is a good choice. For the height, we know that our board is going to be at least 10 * 29 = 290, but we also have the controlpanel and the mail address, etc. under the board which is about 2/3 the height of the board again. So we need a little less than 500 for the height. By examining the viewer page, we can best decide if we need a little more or less room in either direction and then adjust our numbers accordingly. The actual viewer window is placed in the center of the screen by the program, but the user can freely move the window himself by dragging it. |