Usina BRAdvPL Guide
Sign in
← All topics
FUNCTIONUnder review

MoveControl / ResizeControl

MoveControl(oObj,nLin,nCol); ResizeControl(oObj,nWidth,nHeight)

Moves or resizes a control in the historical eADVPL API.

MoveControl / ResizeControlAdvPL
01 · OVERVIEW

Overview

MoveControl takes object, row and column. ResizeControl takes object, width and height. The historical reference does not establish uniform units or support in current clients; verify the runtime. These names are not interchangeable methods on arbitrary UI objects. The block only prepares calls for a compatible caller-supplied control. (Sources: refs. 1–1.)

02 · SYNTAX

Syntax

MoveControl(oObj,nLin,nCol); ResizeControl(oObj,nWidth,nHeight)

Parameters

oObj
ObjectRequired

Compatible control.

nLin / nCol
NumericRequired

Target position in MoveControl.

nWidth / nHeight
NumericRequired

Target dimensions in ResizeControl.

Return value

No applicable return specified by the historical guide.

03 · PRACTICAL EXAMPLE

Commented example

#Include "Protheus.ch"

User Function Ed530()
    // Blocks not invoked; require a compatible control and runtime.
    Local bMove := {|oControl,nRow,nCol| MoveControl(oControl,nRow,nCol)}
    Local bSize := {|oControl,nWidth,nHeight| ResizeControl(oControl,nWidth,nHeight)}
    ConOut(ValType(bMove)+ValType(bSize))
Return Nil
Expected result

Prints BB. No control is moved or resized. Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.

BEST PRACTICES
  • Check object, coordinates, units and container bounds. Test fonts, scaling and navigation after layout changes.
  • Under review: editorial example neither compiled nor run in Protheus. Check includes, release, RDD and context before testing.

Related content

REFERENCES
  1. Guia de Referência eADVPL (histórico). §3.40–3.41. Accessed on 2026-10-27.
Status
Under review
Page created on
Last reviewed on
Original language
Portuguese
Reviewed by
Usina.BR
0 approved comment(s)

Comments

There are no approved comments yet.

Sign in with Google or Microsoft to comment.

Powered by Usina Docs · Alpha