4D v16

Using commands from the Objects (Forms) theme

Home

 
4D v16
Using commands from the Objects (Forms) theme

Using commands from the Objects (Forms) theme  


 

 

The following commands support 4D Write Pro form objects:

CommandComments
OBJECT DUPLICATE
OBJECT Get auto spellcheck/OBJECT SET AUTO SPELLCHECK
OBJECT Get border style/OBJECT SET BORDER STYLE
OBJECT Get context menu/OBJECT SET CONTEXT MENU
OBJECT GET COORDINATES/OBJECT SET COORDINATES
OBJECT Get data source/OBJECT SET DATA SOURCE
OBJECT GET DRAG AND DROP OPTIONS/OBJECT SET DRAG AND DROP OPTIONS
OBJECT Get enabled/OBJECT SET ENABLED
OBJECT Get enterable/OBJECT SET ENTERABLE
OBJECT GET EVENTS/OBJECT SET EVENTS
OBJECT Get focus rectangle invisible/OBJECT SET FOCUS RECTANGLE INVISIBLE
OBJECT Get font/OBJECT SET FONTApplied to current selection (if any)
OBJECT Get font size/OBJECT SET FONT SIZEApplied to current selection (if any)
OBJECT Get font style/OBJECT SET FONT STYLEApplied to current selection (if any)
OBJECT Get horizontal alignment/OBJECT SET HORIZONTAL ALIGNMENTApplied to current selection (if any). Support of the wk justify constant for 4D Write Pro areas
OBJECT GET RESIZING OPTIONS/OBJECT SET RESIZING OPTIONS
OBJECT SET COLORApplied to current selection (if any)
OBJECT GET RGB COLORS/OBJECT SET RGB COLORSApplied to current selection (if any)
OBJECT Get type
OBJECT Get vertical alignment/OBJECT SET VERTICAL ALIGNMENTVertical alignment of paragraphs: only has an effect when paragraph height is greater than paragraph text height
OBJECT Get visible/OBJECT SET VISIBLE
OBJECT Is styled textReturns true
OBJECT MOVE
OBJECT GET SCROLL POSITION/OBJECT SET SCROLL POSITION
OBJECT GET SUBFORM CONTAINER SIZE
OBJECT Get name
OBJECT Get pointer

Any OBJECT commands not listed above are not applicable to 4D Write Pro areas.

Example  

You want to set the horizontal alignment of a 4D Write Pro area to the center:

 Case of
    :(Form event=On Clicked)
       OBJECT SET HORIZONTAL ALIGNMENT(*;"myObject";Align center)
       hAlignLeft:=0 //store property for next display
       hAlignRight:=0
 End case



See also 

Using commands from the Styled Text theme

 
PROPERTIES 

Product: 4D
Theme: 4D Write Pro Language

 
HISTORY 

 
ARTICLE USAGE

4D Write Pro Reference ( 4D v16)