PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → [WD20] change one table row height
[WD20] change one table row height
Iniciado por guest, 27,feb. 2018 10:48 - 4 respuestas
Publicado el 27,febrero 2018 - 10:48
hi,

is it possible to just change one specific table row height without effecting the rest ?
Publicado el 27,febrero 2018 - 15:41
From the Help it would seem ..Height would be the answer...

"The height of each row found in a Table control, List Box control or ListView control can be defined by programming. For the browsing List Box and Table controls, this height is kept for the visible section on the screen only.

Example: Defines the height of row 3 in "LIST_List1" to 200.

LIST_List1[3]..Height = 200"

However, when I try to change the height of one row on my test table control, such as:

Table_CustNameQry[4] = 30 // where the original height = 23

... all I get is a blank line that is 23 tall, no data in the row and not resized.

Maybe somebody else has a better idea.
Publicado el 28,febrero 2018 - 01:16
thanks Art,


RowNum = TableAddLine(TABLE_Items

TABLE_Items[RowNum]..height = 100

work for me
Publicado el 28,febrero 2018 - 04:55
// In Selecting a row of Table_CustNameQry

giRowNum = TableSelect(Table_CustNameQry) //global integer

Table_CustNameQry[giRowNum]..Height = 30 // make selected row higher
IF giLastRowNum > 0
Table_CustNameQry[giLastRowNum]..Height = 23 // make ex-selected row lower
END
giLastRowNum = giRowNum // set Last Row Num for next iteration


Somewhere in that code I would make the text bold, or set background color, or some such other silly stuff to impress the natives.
Publicado el 28,febrero 2018 - 11:37
Hello Art,

>>Somewhere in that code I would make the text bold, or set background color, or some such other silly stuff to impress the natives.<<

easy enough with the gpen and other gxxx functions...

Best regards