Python Reference Guide
FBPopup Class Reference

Popup window. More...

Inheritance diagram for FBPopup:

Public Member Functions

 FBPopup ()
 Constructor. More...
 
 Close (bool pOk=False)
 Close popup. More...
 
bool Show (FBVisualComponent pParent=None)
 Show popup. More...
 
- Public Member Functions inherited from FBLayout
 FBLayout ()
 Constructor. More...
 
bool AddRegion (str pName, str pTitle, int pX, FBAttachType pXType, str pXRelative, float pMultX, int pY, FBAttachType pYType, str pYRelative, float pMultY, int pW, FBAttachType pWType, str pWRelative, float pMultW, int pH, FBAttachType pHType, str pHRelative, float pMultH)
 Add a region to the layout. More...
 
 ClearControl (str pName)
 Remove a control from a region in a visual component. More...
 
FBVisualComponent GetControl (str pName)
 Get control of a region in a visual component. More...
 
bool GetRegion (str pName)
 Verify if a region with pName exists. More...
 
bool GetRegionPositions (str pName, bool pComputed, int pX, int pY, int pW=None, int pH=None)
 Get region pName information (position and size) More...
 
FBSplitStyle GetSplitStyle (str pName)
 Get a region's splitstyle. More...
 
bool MoveRegion (str pName, int pX, int pY)
 Move a region. More...
 
bool RemoveRegion (str pName)
 Remove a region. More...
 
bool RenameRegion (str pOldName, str pNewName)
 Rename a region. More...
 
 Restructure (bool pNoMove)
 Force a recomputation of all region placements in the layout. More...
 
 SetAutoRestructure (bool pAutoRestructure)
 Suspend all automatic layout recomputation. More...
 
bool SetBorder (str pName, FBBorderStyle pType, bool pShowTitle, bool pInSet, int pWidth, int pSpacing, float pMaxAngle, int pCornerRadius)
 Set border properties for a region. More...
 
bool SetControl (str pName, FBVisualComponent pComponent)
 Set control of a region to a visual component. More...
 
bool SetControl (str pName, FBVisualComponent pComponent)
 
bool SetRegionTitle (str pName, str pTitle)
 Set a region's title. More...
 
bool SetSplitStyle (str pName, FBSplitStyle pRegionType)
 Set a region's splitstyle. More...
 
bool SetView (str pName, FBVisualComponent pComponent)
 Set view. More...
 
bool SetView (str pName, FBVisualComponent pComponent)
 
bool SizeRegion (str pName, int pW, int pH)
 Change a region's size. More...
 
- Public Member Functions inherited from FBVisualComponent
 FBVisualComponent ()
 Constructor. More...
 
bool AddChild (FBVisualComponent pChild, int pId=0)
 Add a child component. More...
 
FBVisualComponent GetChild (int pId=0)
 Get a child component. More...
 
QWidget GetQWidgetAddress ()
 Get internal QWidget. More...
 
bool IsView ()
 Is component a view? More...
 
 Refresh (bool pNow=False)
 Refresh component. More...
 
 ViewExpose ()
 Exposed view callback function. More...
 
 ViewInput (int pMouseX, int pMouseY, FBInputType pAction, int pButtonKey, int pModifier)
 Input callback function. More...
 

Public Attributes

str Caption
 Read Write Property: Caption to display in popup.
More...
 
bool Modal
 Read Write Property: Modal?
More...
 
- Public Attributes inherited from FBLayout
FBEvent OnIdle
 Event: Idle.
More...
 
FBEvent OnInput
 Event: Input.
More...
 
FBEvent OnPaint
 Event: Paint layout.
More...
 
FBEvent OnResize
 Event: Resize layout.
More...
 
FBEvent OnShow
 Event: Show layout.
More...
 
- Public Attributes inherited from FBVisualComponent
str RegionName
 Read Write Property: Region name. More...
 
int RegionOffsetX
 Read Write Property: Region X offset. More...
 
int RegionOffsetY
 Read Write Property: Region Y offset. More...
 
int RegionOffsetWidth
 Read Write Property: Region width offset. More...
 
int RegionOffsetHeight
 Read Write Property: Region height offset. More...
 
float RegionRatioX
 Read Write Property: Ratio for X attachment. More...
 
float RegionRatioY
 Read Write Property: Ratio for Y attachment. More...
 
float RegionRatioWidth
 Read Write Property: Ratio for Width attachment. More...
 
float RegionRatioHeight
 Read Write Property: Ratio for Height attachment.
More...
 
FBAttachType RegionAttachTypeX
 Read Write Property: X Attachment type. More...
 
FBAttachType RegionAttachTypeY
 Read Write Property: Y Attachment type. More...
 
FBAttachType RegionAttachTypeWidth
 Read Write Property: Width Attachment type. More...
 
FBAttachType RegionAttachTypeHeight
 Read Write Property: Height Attachment type. More...
 
FBVisualComponent RegionAttachToX
 Read Write Property X Attachment source. More...
 
FBVisualComponent RegionAttachToY
 Read Write Property: Y Attachment source. More...
 
FBVisualComponent RegionAttachToWidth
 Read Write Property: Width Attachment source. More...
 
FBVisualComponent RegionAttachToHeight
 Read Write Property: Height Attachment source.
More...
 
int RegionPosMaxX
 Read Write Property: Region X position Max More...
 
int RegionPosMinX
 Read Write Property: Region X position Min More...
 
int RegionPosMaxY
 Read Write Property: Region Y position Max More...
 
int RegionPosMinY
 Read Write Property: Region Y position Min More...
 
str BorderCaption
 Read Write Property: Caption to display in border. More...
 
bool BorderShowCaption
 Read Write Property: Show caption? More...
 
FBBorderStyle BorderStyle
 Read Write Property: Style of border. More...
 
bool BorderInSet
 Read Write Property: Is border inset? More...
 
int BorderWidth
 Read Write Property: Width of border. More...
 
int BorderSpacing
 Read Write Property: Spacing of border. More...
 
float BorderMaxAngle
 Read Write Property: Max angle for rounding. More...
 
int BorderCornerRadius
 Read Write Property: Corner radius (rounded).
More...
 
str Caption
 Property: Widget caption.
More...
 
bool Enabled
 Read Write Property: Is visual enabled?
More...
 
int Height
 Read Write Property: Height.
More...
 
str Hint
 Read Write Property: Hint to show.
More...
 
int Left
 Read Write Property: Left coordinate.
More...
 
bool ReadOnly
 Read Write Property: Is visual component read only?
More...
 
int Top
 Read Write Property: Top coordinate.
More...
 
bool Visible
 Read Write Property: Is visual component visible?
More...
 
int Width
 Read Write Property: Width.
More...
 

Detailed Description

Popup window.


This class lets a window (inheriting from FBLayout) be created for another interface.

See sample: Popup.py.

Constructor & Destructor Documentation

◆ FBPopup()

FBPopup ( )

Constructor.

Member Function Documentation

◆ Close()

Close ( bool  pOk = False)

Close popup.

Parameters
pOkEquivalent of OK button clicked if true (default = false).

◆ Show()

bool Show ( FBVisualComponent  pParent = None)

Show popup.

Parameters
pParentParent object for popup
Returns
Operation was successful (true or false).

Member Data Documentation

◆ Caption

str Caption

Read Write Property: Caption to display in popup.

◆ Modal

bool Modal

Read Write Property: Modal?