Concept

<< 点击显示目录 >>

主页  mappView帮助助手 > mapp View帮助信息 > Widgets  > Containers  > FlyOut  >

Concept

This section contains additional information about the concept of widget "FlyOut".

Styling the button

"FlyOut" contains properties that can be used to style the widget's button. The button in widget "FlyOut" is widget "ToggleButton".

Specifying an image without text:

If the button should show an image but no text, then a path to the desired image must be specified for property image; the default value of property text must be removed. In addition, properties imageWidth, imageHeight and imageColor can be used to modify the appearance of the image.

Changing the button style

Properties such as buttonBackColor and buttonBorderWidth can be used to modify the styleable properties of the button directly on widget "FlyOut". These properties do not exist for all available styleable properties of the button, however. If additional available styleable properties of the button should be modified, an existing or new style can be applied to widget "ToggleButton" using flyout property buttonStyle.

Example:

<Style xsi:type="widgets.brease.ToggleButton" id="styled"
  checkedImageColor='rgba(192, 0, 0, 1)'
  rotation='6deg'
  shadow='10px 2px 5px 5px #FF8800'
  textColor='rgba(192, 0, 0, 1)'
  bold='true'
  disabledBackGroundGradient='linear-gradient(to bottom, rgba(247,247,247,1) 0%,rgba(234,234,234,1) 62%,rgba(218,218,218,1) 100%,rgba(239,239,239,1) 100%)'
/>

Which styleable properties can be defined by which widget style is explained here:

X= Not available for the button in widget "FlyOut"

Property

FlyOut style

ToggleButton style

buttonBackColor (FlyOut)

check

 

buttonBorderColor (FlyOut)

check

 

buttonBorderStyle (FlyOut)

check

 

buttonBorderWidth (FlyOut)

check

 

buttonBackGroundGradient (FlyOut)

check

 

buttonCornerRadius (FlyOut)

check

 

imageColor (FlyOut)

check

 

fontName (ToggleButton)

check

 

fontSize (ToggleButton)

check

 

bold (ToggleButton)

check

 

opacity (ToggleButton)

check

 

textAlign (ToggleButton)

check

 

italic (ToggleButton)

check

 

textColor (ToggleButton)

 

check

checkedImageColor (ToggleButton)

 

check

checkedTextColor (ToggleButton)

 

check

checkedBackGroundGradient (ToggleButton)

 

check

checkedBackColor (ToggleButton)

 

X

checkedBorderColor (ToggleButton)

 

X

disabledBackColor (ToggleButton)

 

X

disabledBorderColor (ToggleButton)

 

X

disabledImageColor (ToggleButton)

 

X

disabledTextColor (ToggleButton)

 

X

disabledBackGroundGradient (ToggleButton)

 

check

shadow (ToggleButton)

 

check

rotation (ToggleButton)

 

check

padding (ToggleButton)

 

check

margin (ToggleButton)

 

check

backGround (ToggleButton)

 

check

mouseDownBackColor (ToggleButton)

 

X

mouseDownImageColor (ToggleButton)

 

X

mouseDownBorderColor (ToggleButton)

 

X

mouseDownBorderWidth (ToggleButton)

 

X

mouseDownShadow (ToggleButton)

 

X

mouseDownTextColor (ToggleButton)

 

X

mouseDownBackGroundGradient (ToggleButton)

 

X

disabledCheckedBorderColor (ToggleButton)

 

X

disabledCheckedTextColor (ToggleButton)

 

X

disabledCheckedBackColor (ToggleButton)

 

X

disabledCheckedImageColor (ToggleButton)

 

X

disabledCheckedBackGroundGradient (ToggleButton)

 

X