|
General window attributesDescriptionA window is the base class of all specific window classes. The attributes defined in here are shared among all inherited widows.General Attributes
Border Attributes
Alignment values
Size values
Setting colorsThere are two ways to set a color. For example the color attribute is named color.First way is: color="#rrggbbaa". There is a hash followed by hexadecimal byte values for red, green, blue and alpha. If you set color="#ff0000ff" you use red which is not transparent. If you set color="#00000000" the color is marked as not set. Second way is to set the four color values separately: color.r=<red> color.g=<green> color.b=<blue> color.a=<alpha>. Each value has range from 0 to 255 decimal. If you set color.r="0" color.g="0" color.b="255" color.a="255" you use blue which is not transparent. If you set color.a="0" the color is marked as not set. Note on alpha value: The value 0 (00) means that the whole color is not set. The value 255 (ff) means that the color is set with full opacity. The values 1..254 (01..fe) sets a transparent color. Setting imagesThere are two ways to set a image. For example the image attribute is named image.First way is: image="path/filename". You know the complete path and the filename (inclusive the extension) to the image and put it directly to the image attribute. If you set image="" the image is marked as not set. Second way is to set the path and the filename separately: image.path="path" image.name="filename". If you set image.path="" the image path is marked as not set. If you set image.name="" the image name is marked as not set. Note on transparency of images: You should only use images without alpha channel. Because currently we cannot handle image-based transparency. But if you want to have a transparent image you can use the alpha value of the correspondent color. For example you can load the bgimage="<filename>" of a window or a widget and set the bgcolor="#00000080". The alpha value 80 hex sets the half opacity of the bgimage. |