[Overview][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'fpg_widget' (#fpgui)

TfpgWidget.SetPosition

Sets the position and size of the component

Declaration

Source position: fpg_widget.pas line 176

public procedure TfpgWidget.SetPosition(

  aleft: TfpgCoord;

  atop: TfpgCoord;

  awidth: TfpgCoord;

  aheight: TfpgCoord

); virtual;

Description

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.

See also

TfpgWindowBase.UpdateWindowPosition

  

Forces fpGUI to act on window position and size properties


Documentation generated on: 2015-04-04