Jim
WebDialog has no methods to get the window's position,
I hava tried to get screen size using JavaScript in html with get_element_value methods,it can work in SU ruby panel.
In html:
@unknownuser said:
<script language="javascript">
document.write('<div style="display:none;" ><input type="text" name="textfield" id="screen_width" style="width:150px;" value="'+ screen.width + '" /></div>')</javascript>
In rb program:
@unknownuser said:
$dlg.get_element_value "screen.width"
when the program is running, $dlg.get_element_value "screen.width" always get nothing;but in ruby panel,$dlg.get_element_value "screen.width" return "1680",that's exact my screen width!
If somebody can tell me why and give me some advice, SUTool will go farther.
If not, I will add a setting file to SUTool.User can modify it manually.
Another question,Jim,have you installed the full Ruby language?