popupbox

This widget represents a popup box. The side of popupboxFirstMenuItem and popupboxSecondMenuItem depends of the Kuix.firstIsLeft property.


Attributes
Attribute Default Object Set Get Description
barsontop false No Yes No Define if the popupboxBottomBar is displayed on top of popupbox content.
class - No Yes No The widget's style class. The value is as string text.
cleanupwhenremoved false No Yes No Define if the cleanUp method is called when this popupbox is removed from the widget tree. Activate this parameter if you don't want to see this popupbox any more.
dataprovider null Yes No Yes The associated dataProvider.
enabled true No Yes No Define the widget's state. The value is a boolean (true or false).
focusable false No Yes No Uneditable.
focused false No Yes Yes Request the focus for this widget.
focusedwidget - Yes No Yes Give the focused widget which is a child of the same focusManager that this widget instance. This attribute is read only and could be use in action metod definition.
focusloop false No Yes No Define the popupbox focus manager 'loop' parameter.
id - No Yes Yes The widget's unique identifier. The value is as string text.
onaction - No Yes No The action called method when the popupbox is closed.
onfocus - No Yes No The focus gain called method.
onlostfocus - No Yes No The focus lost called method.
pressedshortcuts - No Yes No see shortcuts.
releasedshortcuts - No Yes No The widget key released shortcuts.
repeatedshortcuts - No Yes No The widget key repeated shortcuts.
shortcuts - No Yes No The widget key pressed shortcuts. The value is a string representing one or more KuixKeyCode ( 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, *, #, softleft, softright, up, left, right, down, fire, delete, back, pencil ). The multiple keys separator is the '|'.
style - No Yes No The author style. The value is as string text where each style property/value couple is separated by a ';' and is conforme to style properties syntax. ( ex: color:red;layout:borderlayout ).
visible true No Yes No The widget visibility. The value is a string boolean ( true or false ).


Style properties
Property Default Inherit Description
align top-left No Define the content alignment. The value is an alignement string ( top, top-left, left, bottom-left, bottom, bottom-right, right, top-right, center, fill, fill-top, fill-left, fill-bottom, fill-right, fill-center ).
bg-align top-left No Define the background images alignment. The value is a list of alignment like align property separated by a '|'. This property is only used if bg-image is defined.
bg-color - No Define the background color. The value is a color like color property.
bg-image - No Define the background images. The value is a liste of image files path separated by a '|'.
bg-repeat 0 0 No Define the background images repeat method. The value is a list of <repeatx> <repeaty> separated by a '|'. 0 means infinit. This property is only used if bg-image is defined.
border 0 0 0 0 No Define the border size. Syntax : <top> <right> <bottom> <left>. If all the values are the same, you can specify only one value.
border-align - No Define the border images alignment. Syntax : <align top> <align top-right> <align right> <align bottom-right> <align bottom> <align bottom-left> <align left> <align top-left>. This property is only used if border-images is defined.
border-color - No Define the border color. The value is an array of 4 colors values (like color property). Syntax : <top> <right> <bottom> <left>. If all the values are the same, you can specify only one value.
border-image - No Define the border image.
Syntax : url(<img>)
or url(<img>) top right bottom left
or url(<top>) url(<top-right>) url(<right>) url(<bottom-right>) url(<bottom>) url(<bottom-left>) url(<left>) url(<top-left>).
border-stroke - No Define the border stroke. The value is dotted or solid.
color #000000 Yes Define the font color. The value is a color string ( red, green, blue, white, black or #rrggbb ).
gap 0 0 No Define the gap. The gap represents the space in pixels between widget of a same parant. It could depends of the parent's layout. Syntax : <hgap> <vgap>.
greyed-color none No Define greyed color used when the widget is added as a popup to the desktop to greyed it. By default this color is null.
layout gridlayout(1,1) No Define the content layout. The value is a layout tag ( borderlayout, flowlayout(<align>), gridlayout(<cols>,<rows>), inlinelayout(<horizontal>,<align>), staticlayout, tablelayout ).
layout-data sld(center,-1,-1) No Define the widget layout data. The value is a layout data tag ( bld(<align>), sld(<align>,<width>,<height>) ).
margin 0 0 0 0 No Define the margin. The margin is the outside border space. Syntax : <top> <right> <bottom> <left>. If all the values are the same, you can specify only one value.
min-size 0 0 No Define the widget min size. Syntax : <minwidth> <minheight>.
padding 0 0 0 0 No Define the padding. The padding is the inside border space. Syntax : <top> <right> <bottom> <left>. If all the values are the same, you can specify only one value.
span 1 1 No Define the col and row span. Span is used only if the parent's widget is a TableLayout. Syntax : <colspan> <rowspan>.
weight 0 0 No Define the weight x and y. Weight is used only if the parent's widget is a TableLayout. Syntax : <weightx> <weighty>.


Pseudo Classes
Name Description
disabled Active when the widget is disabled (enabled = false)
hover Unapplicable for this widget.


Available internal widgets
Internal widget Description
popupboxbottombar This widget represents a popupbox bottom bar (used for menu items)
popupboxfirstmenuitem The popupbox's first menu item, displayed by default on the left in the bottom bar (see Kuix.firstisleft parameter).
popupboxsecondmenuitem The popupbox's first menu item, displayed by default on the right in the bottom bar (see Kuix.firstisleft parameter).


Copyright © 2007-2008 Kalmeo. All Rights Reserved.