From befeb59842e35999816429ddc55472259e401061 Mon Sep 17 00:00:00 2001 From: Graeme Geldenhuys Date: Fri, 20 Aug 2010 09:26:05 +0200 Subject: docs: New fpg_tree.pas documentation. Minor updates to fpg_widget, fpg_buttons docs. --- docs/xml/corelib/fpg_widget.xml | 88 ++++++++++++++++++++++++----------------- 1 file changed, 51 insertions(+), 37 deletions(-) (limited to 'docs/xml/corelib/fpg_widget.xml') diff --git a/docs/xml/corelib/fpg_widget.xml b/docs/xml/corelib/fpg_widget.xml index cb0ed0f5..726859ae 100644 --- a/docs/xml/corelib/fpg_widget.xml +++ b/docs/xml/corelib/fpg_widget.xml @@ -1,40 +1,54 @@ - - - - - - - Sets the position and size of the component. - Sets the position and size of the component. It also fires the Resize message. If you are setting up a component like a button on a form, you don't really want the resize event to fire for the button, before the form is displayed (visible). In that case, rather use the components Top, Left, Width and Height properties. - - - If assigned, then this widget is being editing in the Form Designer - - - An alias for Owner. - Unlike Delphi or Lazarus, fpGUI treats Owner and Parent as the same thing. Owner or Parent manages the life of children, and the parent/child hierarchy defines the visual aspect as well. - - - Can this component managed child components. - This is mainly used in fpGUI UI Designer, to know if you can drop on widget inside another widget. - - - This determines if the widget is allowed to received keyboard focus. - - - Allows the component to resize or reposition based on its Parent. - -

By default Anchors are set to Top Left.

-

- NOTE -

-

Anchoring only takes affect after the component is visible on the screen (when the component has a window handle assigned). So if you create a Button in the constructor and set its Anchor property to Bottom/Right, and then set the size of the Form, the Button will not be repositioned. -

-

This is by design. fpGUI allows you to setup a window layout without triggering unnecesary events as you set property values for each widget. Only when csLoading is not in ComponentState, then anchoring events will be triggered. This allows the developer or the fpGUI UI Designer to setup a window layout undisturbed.

-
-
-
-
+ + + + + + +Sets the position and size of the component +. It also fires the Resize message. If you are setting up a component like a button on a form, you don't really want the resize event to fire for the button, before the form is displayed (visible). In that case, rather use the components Top, Left, Width and Height properties. + + + +If assigned, then this widget is being editing in the Form Designer + + + +An alias for Owner +Unlike Delphi or Lazarus, fpGUI treats Owner and Parent as the same thing. Owner or Parent manages the life of children, and the parent/child hierarchy defines the visual aspect as well. + + + +Can this component managed child components +This is mainly used in fpGUI UI Designer, to know if you can drop on widget inside another widget. + + + +This determines if the widget is allowed to received keyboard focus +. No focus rectangle will be drawn, even +if the user clicks this component. + + + +Allows the component to resize or reposition based on its Parent. +

By default Anchors are set to Top Left.

+Anchoring only takes affect after the component is visible on the +screen (when the component has a window handle assigned). So if you create a Button +in the constructor and set its Anchor property to Bottom/Right, and then set the +size of the Form, the Button will not be repositioned. +

This is by design. fpGUI allows you to setup a window layout without triggering unnecesary events as you set property values for each widget. Only when csLoading is not in ComponentState, then anchoring events will be triggered. This allows the developer or the fpGUI UI Designer to setup a window layout undisturbed.

+
+
+ + +Occurs after the component processed the mouse button press event +. By default this method also +triggers the OnClick event, but this behaviour can be overridden by descendant +components. + + + +
+
-- cgit v1.2.3-70-g09d2