custom widgets 2004-06-15 - By Jim Rothrock
Back In an ideal world, this is what would happen:
In my shader's SPDL file, there is a parameter "param" of type "color." In the "Defaults" section, the UIType would be set to the CLSID of a custom control type, rather than "UIType = "RGB", 3."
When the shader's property page was displayed, the custom control would be shown next to "param." Instead of the color button, the RGB button, and the R, G, and B sliders, there would be a color button and x, y, and Y sliders. Clicking on the color button would open a new window containing a CIE chromaticity diagram and a Y slider. The user could click on a point in the diagram to select a hue. When the user clicked "OK," the window would be closed and the "params" custom control would be updated.
After reading the documentation, it appears that it is not possible to do what I want. Each property page control has a type that is a member of the siPPGControlType enumeration. For example, "UIType = "RGB", 3" results in the creation of a control of type siControlRGB. There does not appear to be any way to create custom control types.
It looks like the best I can do is to use scripting in the SPDL's "Logic" section, perhaps combined with a custom display host, to get the behavior I want. -- Jim Rothrock | jimr@(protected) -- -- Original Message -- -- From: kim aldis To: XSI@(protected) Sent: Saturday, June 12, 2004 2:09 PM Subject: RE: custom widgets
are you thinking property pages? If so, try Application->Property Sets- >Custom Property Wizard and chew through the sdk documentation sections on PPGLayout and PPG.
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --- From: owner-xsi@(protected) [mailto:owner-xsi@(protected)] On Behalf Of Jim Rothrock Sent: 12 June 2004 21:56 To: XSI@(protected) Subject: custom widgets
Is it possible to create custom widgets in XSI? I want to create a color selection widget that allows the color to be specified in CIE xyY coordinates. I haven't found any references to custom widgets in the SDK documentation. -- Jim Rothrock | jimr@(protected) <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=iso-8859 (See http://iso-8859.ora-code.com)-1"> <META content="MSHTML 6.00.2800.1400" name=GENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=#ffffff> <DIV><FONT face=Arial size=2>In an ideal world, this is what would happen:</FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2>In my shader's SPDL file, there is a parameter "param" of type "color." In the "Defaults" section, the UIType would be set to the CLSID of a custom control type, rather than "UIType = "RGB", 3."</FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2>When the shader's property page was displayed , the custom control would be shown next to "param." Instead of the color button, the RGB button, and the R, G, and B sliders, there would be a color button and x, y, and Y sliders. Clicking on the color button would open a new window containing a CIE chromaticity diagram and a Y slider. The user could click on a point in the diagram to select a hue. When the user clicked "OK," the window would be closed and the "params" custom control would be updated.</FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2>After reading the documentation, it appears that it is not possible to do what I want. Each property page control has a type that is a member of the siPPGControlType enumeration. For example, "UIType = "RGB", 3" results in the creation of a control of type siControlRGB. There does not appear to be any way to create custom control types.</FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2>It looks like the best I can do is to use scripting in the SPDL's "Logic" section, perhaps combined with a custom display host, to get the behavior I want.</FONT></DIV> <DIV>--<BR>Jim Rothrock | <A href="mailto:jimr@(protected)">jimr@(protected)</A></DIV> <BLOCKQUOTE dir=ltr style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"> <DIV style="FONT: 10pt arial">-- -- Original Message -- -- </DIV> <DIV style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> <A title=kim@(protected) href="mailto:kim@(protected)">kim aldis</A> </DIV> <DIV style="FONT: 10pt arial"><B>To:</B> <A title=XSI@(protected) href="mailto:XSI@(protected)">XSI@(protected)</A> </DIV> <DIV style="FONT: 10pt arial"><B>Sent:</B> Saturday, June 12, 2004 2:09 PM</DIV> <DIV style="FONT: 10pt arial"><B>Subject:</B> RE: custom widgets</DIV> <DIV><BR></DIV> <DIV dir=ltr align=left><SPAN class=000420721-12062004><FONT face=Arial color=#008080 size=2>are you thinking property pages? If so, try Application->Property Sets->Custom Property Wizard and chew through the sdk documentation sections on PPGLayout and PPG.</FONT></SPAN></DIV><BR> <BLOCKQUOTE dir=ltr style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #008080 2px solid; MARGIN-RIGHT: 0px"> <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left> <HR tabIndex=-1> <FONT face=Tahoma size=2><B>From:</B> <A href="mailto:owner-xsi@(protected)">owner-xsi@(protected)</A> [mailto:owner-xsi@(protected)] <B>On Behalf Of </B>Jim Rothrock<BR><B>Sent:</B> 12 June 2004 21:56<BR><B>To:</B> <A href="mailto:XSI@(protected)">XSI@(protected)</A><BR><B>Subject:</B> custom widgets<BR></FONT><BR></DIV> <DIV></DIV> <DIV><FONT face=Arial size=2>Is it possible to create custom widgets in XSI? I want to create a color selection widget that allows the color to be specified in CIE xyY coordinates. I haven't found any references to custom widgets in the SDK documentation.</FONT></DIV> <DIV><FONT face=Arial size=2>--<BR>Jim Rothrock | <A href="mailto:jimr@(protected)">jimr@(protected)</A></FONT></DIV>< /BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>
|
|