Library | File

Class uifcComponent

# include <uifcComponent.h>

class uifcComponent
 : public virtual uifcBaseUIObject
{
    xaideclare(uifcComponent)
    ...
};



Description


Direct Known Subclasses:
uifcExternal_Containers, uifcButtonBase, uifcGridContainer, uifcDrawingArea, uifcHTMLWindow, uifcText, uifcSelection, uifcMenuBar, uifcMenuPane, uifcPHolder, uifcRange_Controls, uifcSash, uifcScrolledLayout, uifcSeparator, uifcTab, uifcThumbWheel, uifcToolBar



Method Summary

xintAddPopupMenu (uifcComponent_ptr parentComponent)
 
xboolCanInheritPopupMenu ()
 
xboolCanPopupMenuWhenDisabled ()
 
xboolCanReduceHeight ()
 
xboolCanReduceWidth ()
 
xintCreateInParent (uifcComponent_ptr parentComponent, uifcGridData_ptr gridData)
 
xboolDoesAllowTrailRecording ()
 
xboolDoesReserveSpace ()
 
uifcColor_ptrGetBackgroundColor ()
 
xintGetBottomOffset ()
 
xstringsequence_ptrGetChildNameArray ()
 
xstringGetComponent ()
 
xintGetComponentClass ()
 
xstringGetComponentClassName ()
 
xstringGetCursorImage ()
 
xstringGetDialog ()
 
uifcAlignmentGetHelpTextAlignment ()
 
xintGetHelpTextOriginX ()
 
xintGetHelpTextOriginY ()
 
xintGetHelpTextWidth ()
 
xintGetLeftOffset ()
 
xstringGetParentName ()
 
xstringGetPopupMenuName ()
 
xintGetRightOffset ()
 
uifcColor_ptrGetTextColor ()
 
xintGetTopOffset ()
 
uifcDragDropFlagsGetValidDropTypeFlags ()
 
xboolIsAlwaysAtFront ()
 
xboolIsAttachedAtBottom ()
 
xboolIsAttachedAtLeft ()
 
xboolIsAttachedAtRight ()
 
xboolIsAttachedAtTop ()
 
xboolIsValidDropSite ()
 
xboolIsVisible ()
 
voidSetAllowTrailRecording (xbool flag)
 
voidSetAlwaysAtFront (xbool flag)
 
voidSetAttachedAtBottom (xbool flag)
 
voidSetAttachedAtLeft (xbool flag)
 
voidSetAttachedAtRight (xbool flag)
 
voidSetAttachedAtTop (xbool flag)
 
voidSetBackgroundColor (uifcColor_ptr color)
 
voidSetBottomOffset (xint value)
 
voidSetCanInheritPopupMenu (xbool flag)
 
voidSetCanPopupMenuWhenDisabled (xbool flag)
 
voidSetCanReduceHeight (xbool flag)
 
voidSetCanReduceWidth (xbool flag)
 
voidSetCursorImage (xrstring value)
 
voidSetHelpTextAlignment (uifcAlignment value)
 
voidSetHelpTextOriginX (xint value)
 
voidSetHelpTextOriginY (xint value)
 
voidSetHelpTextWidth (xint value)
 
voidSetLeftOffset (xint value)
 
voidSetPopupMenuName (xrstring value)
 
voidSetReserveSpace (xbool flag)
 
voidSetRightOffset (xint value)
 
voidSetTextColor (uifcColor_ptr color)
 
voidSetTopOffset (xint value)
 
voidSetValidDropSite (xbool flag)
 
voidSetValidDropTypeFlags (uifcDragDropFlags value)
 
voidSetVisible (xbool flag)
 



Method Detail

xstringGetDialog ()

 


Returns:



xstringGetComponent ()

 


Returns:



xintCreateInParent (uifcComponent_ptr parentComponent, uifcGridData_ptr gridData)

 


Parameters:
parentComponent
gridData
Returns:



xintAddPopupMenu (uifcComponent_ptr parentComponent)

 


Parameters:
parentComponent
Returns:



xboolIsVisible ()

 
Returns:
Flag indicating whether the component is shown (xtrue) or hidden (xfalse).



voidSetVisible (xbool flag)

 

Sets flag indicating whether the component is shown (xtrue) or hidden (xfalse).
Parameters:
flag
Returns:



xintGetComponentClass ()

 
Returns:
The ID of the component's class.



xstringGetComponentClassName ()

 
Returns:
The name of the component's class.



xboolIsAlwaysAtFront ()

 
Returns:
If component is a child of a DrawingArea, NakedWindow or a PGLWindow class, this flag designates whether the component will be above its siblings in the Z-order. There is no precedence in the Z-order between sibling components that have this flag set. i.e. Always on top behaviour will only be seen if one component amongst others has this Attribute set.



voidSetAlwaysAtFront (xbool flag)

 

Sets if component is a child of a DrawingArea, NakedWindow or a PGLWindow class, this flag designates whether the component will be above its siblings in the Z-order. There is no precedence in the Z-order between sibling components that have this flag set. i.e. Always on top behaviour will only be seen if one component amongst others has this Attribute set.
Parameters:
flag
Returns:



uifcColor_ptrGetBackgroundColor ()

 
Returns:
The background color of the component as a uifcColor.



voidSetBackgroundColor (uifcColor_ptr color)

 

Sets the background color of the component as a uifcColor.
Parameters:
color
Returns:



xboolIsAttachedAtBottom ()

 
Returns:
Flag indicating whether the bottom of the component is attached to its parent.



voidSetAttachedAtBottom (xbool flag)

 

Sets flag indicating whether the bottom of the component is attached to its parent.
Parameters:
flag
Returns:



xintGetBottomOffset ()

 
Returns:
The size of the offset between the bottom of the component and its parent. A value of -1 indicates that the parent's own offset should be used.



voidSetBottomOffset (xint value)

 

Sets the size of the offset between the bottom of the component and its parent. A value of -1 indicates that the parent's own offset should be used.
Parameters:
value
Returns:



xstringGetCursorImage ()

 
Returns:
The cursor to use whilst the pointer is over the component. A value of "" indicates that the parent's own cursor should be used.



voidSetCursorImage (xrstring value)

 

Sets the cursor to use whilst the pointer is over the component. A value of "" indicates that the parent's own cursor should be used.
Parameters:
value
Returns:



uifcColor_ptrGetTextColor ()

 
Returns:
The foreground color of the component as a uifcColor.



voidSetTextColor (uifcColor_ptr color)

 

Sets the foreground color of the component as a uifcColor.
Parameters:
color
Returns:



uifcAlignmentGetHelpTextAlignment ()

 
Returns:
The justification of the content of the popup help-text window which is displayed whilst the pointer is over the component.

ALIGNMENT_LEFT Left justified
ALIGNMENT_CENTER Center justified
ALIGNMENT_RIGHT Right justified



voidSetHelpTextAlignment (uifcAlignment value)

 

Sets the justification of the content of the popup help-text window which is displayed whilst the pointer is over the component.

ALIGNMENT_LEFT Left justified
ALIGNMENT_CENTER Center justified
ALIGNMENT_RIGHT Right justified

Parameters:
value
Returns:



xintGetHelpTextWidth ()

 
Returns:
The width of the popup help-text window, in character widths.
A value of 0 indicates that the window should size itself based upon its contents.



voidSetHelpTextWidth (xint value)

 

Sets the width of the popup help-text window, in character widths.
A value of 0 indicates that the window should size itself based upon its contents.
Parameters:
value
Returns:



xintGetHelpTextOriginX ()

 
Returns:
The X co-ordinate of the position of the popup help-text to be displayed whilst the pointer is over the component.



voidSetHelpTextOriginX (xint value)

 

Sets the X co-ordinate of the position of the popup help-text to be displayed whilst the pointer is over the component.
Parameters:
value
Returns:



xintGetHelpTextOriginY ()

 
Returns:
The Y co-ordinate of the position of the popup help-text to be displayed whilst the pointer is over the component.



voidSetHelpTextOriginY (xint value)

 

Sets the Y co-ordinate of the position of the popup help-text to be displayed whilst the pointer is over the component.
Parameters:
value
Returns:



xboolCanInheritPopupMenu ()

 
Returns:
Flag indicating whether the component should inherit the PopupMenuName attribute of its parent.



voidSetCanInheritPopupMenu (xbool flag)

 

Sets flag indicating whether the component should inherit the PopupMenuName attribute of its parent.
Parameters:
flag
Returns:



xboolIsAttachedAtLeft ()

 
Returns:
Flag indicating whether the left-hand side of the component is attached to its parent.



voidSetAttachedAtLeft (xbool flag)

 

Sets flag indicating whether the left-hand side of the component is attached to its parent.
Parameters:
flag
Returns:



xintGetLeftOffset ()

 
Returns:
The size of the offset between the left-hand side of the component and its parent. A value of -1 indicates that the parent's own offset should be used.



voidSetLeftOffset (xint value)

 

Sets the size of the offset between the left-hand side of the component and its parent. A value of -1 indicates that the parent's own offset should be used.
Parameters:
value
Returns:



xboolDoesReserveSpace ()

 
Returns:
Flag indicating whether the component should occupy any space whilst it is invisible.



voidSetReserveSpace (xbool flag)

 

Sets flag indicating whether the component should occupy any space whilst it is invisible.
Parameters:
flag
Returns:



xstringGetParentName ()

 
Returns:
The name of the parent component of the component.



xstringGetPopupMenuName ()

 
Returns:
The name of the MenuPane to be displayed when the user presses the right mouse button over the component. A value of "" indicates that the parent's own popup menu should be displayed.



voidSetPopupMenuName (xrstring value)

 

Sets the name of the MenuPane to be displayed when the user presses the right mouse button over the component. A value of "" indicates that the parent's own popup menu should be displayed.
Parameters:
value
Returns:



xboolCanPopupMenuWhenDisabled ()

 
Returns:
Flag indicating whether the component should display its popup menu when it is insensitive (xtrue) or whether no popup menu should be displayed at such times (xfalse).



voidSetCanPopupMenuWhenDisabled (xbool flag)

 

Sets flag indicating whether the component should display its popup menu when it is insensitive (xtrue) or whether no popup menu should be displayed at such times (xfalse).
Parameters:
flag
Returns:



xboolIsAttachedAtRight ()

 
Returns:
Flag indicating whether the right-hand side of the component is attached to its parent.



voidSetAttachedAtRight (xbool flag)

 

Sets flag indicating whether the right-hand side of the component is attached to its parent.
Parameters:
flag
Returns:



xintGetRightOffset ()

 
Returns:
The size of the offset between the right-hand side of the component and its parent. A value of -1 indicates that the parent's own offset should be used.



voidSetRightOffset (xint value)

 

Sets the size of the offset between the right-hand side of the component and its parent. A value of -1 indicates that the parent's own offset should be used.
Parameters:
value
Returns:



xboolIsAttachedAtTop ()

 
Returns:
Flag indicating whether the top of the component is attached to its parent.



voidSetAttachedAtTop (xbool flag)

 

Sets flag indicating whether the top of the component is attached to its parent.
Parameters:
flag
Returns:



xintGetTopOffset ()

 
Returns:
The size of the offset between the top of the component and its parent. A value of -1 indicates that the parent's own offset should be used.



voidSetTopOffset (xint value)

 

Sets the size of the offset between the top of the component and its parent. A value of -1 indicates that the parent's own offset should be used.
Parameters:
value
Returns:



xboolIsValidDropSite ()

 
Returns:
Flag indicating whether the component acts as a drop-site during drag & drop.



voidSetValidDropSite (xbool flag)

 

Sets flag indicating whether the component acts as a drop-site during drag & drop.
Parameters:
flag
Returns:



uifcDragDropFlagsGetValidDropTypeFlags ()

 
Returns:
A bitwise OR of the drag & drop data types which may be dragged and dropped over the component.

DRAG_DROP_NOTHING Nothing
DRAG_DROP_FILES An array of filenames
DRAG_DROP_COMPONENT A component



voidSetValidDropTypeFlags (uifcDragDropFlags value)

 

Sets a bitwise OR of the drag & drop data types which may be dragged and dropped over the component.

DRAG_DROP_NOTHING Nothing
DRAG_DROP_FILES An array of filenames
DRAG_DROP_COMPONENT A component

Parameters:
value
Returns:



xstringsequence_ptrGetChildNameArray ()

 
Returns:
The names of the children of the component.



xboolDoesAllowTrailRecording ()

 
Returns:
Flag indicating whether the component and any of its children should output their actions to trail file.



voidSetAllowTrailRecording (xbool flag)

 

Sets flag indicating whether the component and any of its children should output their actions to trail file.
Parameters:
flag
Returns:



xboolCanReduceHeight ()

 
Returns:
Flag indicating whether the component will allow the height of the grid cell containing it to be reduced.
This attribute is only supported when the component's parent is a Dialog or a Layout.



voidSetCanReduceHeight (xbool flag)

 

Sets flag indicating whether the component will allow the height of the grid cell containing it to be reduced.
This attribute is only supported when the component's parent is a Dialog or a Layout.
Parameters:
flag
Returns:



xboolCanReduceWidth ()

 
Returns:
Flag indicating whether the component will allow the width of the grid cell containing it to be reduced.
This attribute is only supported when the component's parent is a Dialog or a Layout.



voidSetCanReduceWidth (xbool flag)

 

Sets flag indicating whether the component will allow the width of the grid cell containing it to be reduced.
This attribute is only supported when the component's parent is a Dialog or a Layout.
Parameters:
flag
Returns: