How do I create a custom dialog?
Posted: Thu May 26, 2011 3:36 pm
I want to create a custom dialog (panel with edge/corner images).
I (think I) know that I need to add a .js file to /profoundui/userdata/custom/widgets and I have a sample panel js file but it doesn't show how to specify the images used for the edges/corners or indicate if there are additional widget properties for a dialog versus a panel. I do see a boolean dialog property.
I also see a /profoundui/proddata/images/panels directory with directories for each panel style and they seem to have consistently named images for the edge/corner images.
Is a custom dialog created simply by turning the boolean dialog property on and having a directory of images with the correct names? Is this driven by naming convention? Profound knows that if the dialog property is true, it looks in the /profoundui/proddata/images/panels directory for a directory with the same name as the panel and then knows to look for images with the names bottomleft.png, bottommiddle.png, etc.? If this is the case, then I assume this means I must use PNG files for the images? Which begs the question concerning supported browsers, specifically IE6 and its lack of PNG transparency support, that I asked about in another forum post. Not that this is necessarily a bad thing. I would personally love it if Profound says IE6 is not supported. [Ahem, hint!]
Or, is there something else that controls this (the specification of what images to use for a custom dialog)?
Thanks!
I (think I) know that I need to add a .js file to /profoundui/userdata/custom/widgets and I have a sample panel js file but it doesn't show how to specify the images used for the edges/corners or indicate if there are additional widget properties for a dialog versus a panel. I do see a boolean dialog property.
I also see a /profoundui/proddata/images/panels directory with directories for each panel style and they seem to have consistently named images for the edge/corner images.
Is a custom dialog created simply by turning the boolean dialog property on and having a directory of images with the correct names? Is this driven by naming convention? Profound knows that if the dialog property is true, it looks in the /profoundui/proddata/images/panels directory for a directory with the same name as the panel and then knows to look for images with the names bottomleft.png, bottommiddle.png, etc.? If this is the case, then I assume this means I must use PNG files for the images? Which begs the question concerning supported browsers, specifically IE6 and its lack of PNG transparency support, that I asked about in another forum post. Not that this is necessarily a bad thing. I would personally love it if Profound says IE6 is not supported. [Ahem, hint!]
Or, is there something else that controls this (the specification of what images to use for a custom dialog)?
Thanks!