Site Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
developer:scriptsamples:htmlboxstyling [2016/04/07]
sandy
developer:scriptsamples:htmlboxstyling [2016/04/07] (current)
sandy
Line 6: Line 6:
 I am trying to make an HTML dialog box and display it with RhinoScript'​s **HtmlBox** method. If I preview the dialog in Internet Explorer, I get the styling I want, which is the default styling for buttons, input fields, etc. used by the operating system. It looks identical to the user interface controls in Rhino. I am trying to make an HTML dialog box and display it with RhinoScript'​s **HtmlBox** method. If I preview the dialog in Internet Explorer, I get the styling I want, which is the default styling for buttons, input fields, etc. used by the operating system. It looks identical to the user interface controls in Rhino.
  
-When I use the **HtmlBox** method to display the dialog, it looks much different and less appealing. Could it be that the **HtmlBox** and the web control that it is using are displaying with a wrong default style sheet? ​I appreciate any help on this problem, as my goal is to make a user interface which perfectly fits into Rhino'​s existing user interface elements.+When I use the **HtmlBox** method to display the dialog, it looks much different and less appealing. Could it be that the **HtmlBox** and the web control that it is using are displaying with a wrong default style sheet? ​My goal is to make a user interface which perfectly fits into Rhino'​s existing user interface elements.
  
 =====Answer===== =====Answer=====
Line 17: Line 17:
 =====More information===== =====More information=====
  
-There are many applications,​ written in HTML and deployed as an HTML Application (HTA) or a Win32 application,​ that use HTML or host the WebObject in their user interface (UI) elements. ​These applications can have a look, when running on Windows, that is consistent with Win32-based applications running on the same operating system. Following are some considerations when applying visual styles to HTML content.+There are many applications,​ written in HTML and deployed as an HTML Application (HTA) or a Win32 application,​ that use HTML or host the WebObject in their user interface (UI) elements. ​When running in Windows, these applications can look consistent with Win32-based applications running on the same operating system. Following are some considerations when applying visual styles to HTML content.
  
 Visual styles in relation to HTML content applies only to Intrinsic HTML Controls such as buttons, scroll bars, and select controls. The Windows visual style is applied automatically to controls on HTML pages. If you do not want your page to have a visual style applied, use the META tag with its attribute set to no. The META tag is documented in a following section. Visual styles in relation to HTML content applies only to Intrinsic HTML Controls such as buttons, scroll bars, and select controls. The Windows visual style is applied automatically to controls on HTML pages. If you do not want your page to have a visual style applied, use the META tag with its attribute set to no. The META tag is documented in a following section.
developer/scriptsamples/htmlboxstyling.txt ยท Last modified: 2016/04/07 by sandy