4D v15

QR Get text property and QR SET TEXT PROPERTY

Home

 
4D v15
QR Get text property and QR SET TEXT PROPERTY

QR Get text property and QR SET TEXT PROPERTY  


 

 

QR Get text property (area ; colNum ; rowNum ; property ) -> Function result

ParameterTypeDescription
areaLongint ->Reference of the area
colNumLongint ->Column number
rowNumLongint ->Row number
propertyLongint ->Property number
Function resultLongint | String<-Value for the selected property

 

QR SET TEXT PROPERTY ( area ; colNum ; rowNum ; property ; value )

ParameterTypeDescription
areaLongint ->Reference of the area
colNumLongint ->Column number
rowNumLongint ->Row number
propertyLongint ->Property number
valueLongint | String->Value for the selected property

Originally introduced in 4D v14 R3

These commands have been modified to support font names to define text properties instead of font numbers, which are deprecated in the 4D v14 range (and higher). This modification is part of the overall 4D strategy of removing QuickDraw calls from the program. 

The property parameter has been changed:

  • The qr font constant (1) has been renamed _O_qr font. It is now deprecated and should no longer be used (compatibility is maintained but it will not be supported in future releases)
  • The new qr font name constant (10) has been added to the "QR Text Properties" theme. You must now use this constant to define the font and use a string value. You can pass a name returned by the FONT LIST command.

Example  

This method defines the font attributes of the first column’s title:

  // The following call assigns the Times font:
 QR SET TEXT PROPERTY(qr_area;1;-1;qr font name;"Times")

 
PROPERTIES 

Product: 4D
Theme: Language

 
HISTORY 

 
ARTICLE USAGE

4D v15 - Upgrade (standard edition) ( 4D v15)