GTWVG e Wvt_DrawLabel
Enviado: 20 Abr 2020 21:45
Fazendo alguns testes agora que consegui compilar os exemplos usando hb3.2, não estou conseguindo obter o resultado desejado.
Assim exibe na tela todos
Alguma idéia?
Assim exibe na tela todos
Assim só exibe o último, é como se o array ser preenchido em tempo de execução só o último adicionado é considerado.aPaint := {}
l=14
c=4
AAdd( aPaint, { "Label", {|| Wvt_DrawLabel( l, c, "ITEM NUMERO 1", 0, , RGB( 0, 0, 0 ), RGB( 255,255,255 ), "Arial", 8,8 , , , , .F., .F. ) }, { WVT_BLOCK_LABEL, 2, 00, 4, 00 } } )
AAdd( aPaint, { "Label", {|| Wvt_DrawLabel( l+1, c, "ITEM NUMERO 2", 0, , RGB( 0, 0, 0 ), RGB( 255,255,255 ), "Arial", 8,8 , , , , .F., .F. ) }, { WVT_BLOCK_LABEL, 2, 00, 4, 00 } } )
AAdd( aPaint, { "Label", {|| Wvt_DrawLabel( l+2, c, "ITEM NUMERO 3", 0, , RGB( 0, 0, 0 ), RGB( 255,255,255 ), "Arial", 8,8 , , , , .F., .F. ) }, { WVT_BLOCK_LABEL, 2, 00, 4, 00 } } )
AAdd( aPaint, { "Label", {|| Wvt_DrawLabel( l+3, c, "ITEM NUMERO 4", 0, , RGB( 0, 0, 0 ), RGB( 255,255,255 ), "Arial", 8,8 , , , , .F., .F. ) }, { WVT_BLOCK_LABEL, 2, 00, 4, 00 } } )
Estou criando uma lista dos itens do pedido usando os labels e parei nesta etapa.l=14
c=4
for i=1 to 4
AAdd( aPaint, { "Label", {|| Wvt_DrawLabel( l+i, c, "ITEM NUMERO "+STR(i), 0, , RGB( 0, 0, 0 ), RGB( 255,255,255 ), "Arial", 8,8 , , , , .F., .F. ) }, { WVT_BLOCK_LABEL, 2, 00, 4, 00 } } )
next
WvtSetPaint( aPaint )
Alguma idéia?