imagen y nil

HMG en Español

Moderator: Rathinagiri

Post Reply
User avatar
Renegado
Posts: 83
Joined: Tue Mar 11, 2014 11:59 pm

imagen y nil

Post by Renegado »

saludos a todos. Hace un buen rato hice un pequeño aporte. Se muestra una lista con una imagen para cambiar al dar [enter], pero no me di cuenta que aparece la palabra NIL a un lado de la imagen. ¿cómo se la puedo quitar?. adjunto el código. Gracias y Bendiciones.
Attachments
Lista_Asis.rar
(1.23 MiB) Downloaded 201 times
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

imagen y nil

Post by Pablo César »

Hola Renegado,

Tu ejemplo parece con el C:\hmg.3.4.3\SAMPLES\Controls\Grid\GRID_19

Si tew fijas bien en el demo del GRID_19, verás que la primera columna tiene definido un tamaño menor, haciendo que se oculte la palabra NIL.
Es la primera vez que lo veo. WIDTHS de la primera columna es 20. Haz lo mismo en la tuya al invés de 50.

Pero esta puede ser una solucion para ti no ?

Hay otros ejemplos como el GRID_08 que alterna si con no.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
User avatar
Renegado
Posts: 83
Joined: Tue Mar 11, 2014 11:59 pm

Re: imagen y nil

Post by Renegado »

En realida mi código hace esto, pero envié el ejemplo 19. no me gusta como se ve el nil ahí. Si cierro no se ve el header "asistió". Gracias.
[img]http:\\ Bibliotecas\Imágenes\lista.png[img]
Attachments
lista.png
lista.png (12.34 KiB) Viewed 6146 times
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

imagen y nil

Post by Pablo César »

Entiendo. Es un defecto de la función C AddListViewBitmap(), creo que poderias reportar como BUG. :|

Si compilas con HMG Extended, no pasa eso. Para mi es el valor del hb_parinfa y un Caption vacio que deberia cargar junto con las imagenes y como no encuentra la string viene como NIL :|

Lamento no poder ayudarte más... está en las manos de Claudio.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
User avatar
srvet_claudio
Posts: 2193
Joined: Thu Feb 25, 2010 8:43 pm
Location: Uruguay
Contact:

Re: imagen y nil

Post by srvet_claudio »

I will check
Best regards.
Dr. Claudio Soto
(from Uruguay)
http://srvet.blogspot.com
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

imagen y nil

Post by Pablo César »

Thank you Claudio and sorry with this another demand to overcharge you. I'm so sorry. I wish I could help you more ... but my knowledge in C language is nothing compared to your knowledge ...
Last edited by Pablo César on Wed Nov 30, 2016 11:37 am, edited 2 times in total.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
User avatar
Renegado
Posts: 83
Joined: Tue Mar 11, 2014 11:59 pm

Re: imagen y nil

Post by Renegado »

¡uff!, ¡por fin!. Gracias Pablo Cesar, se me prendió el foco con tu comentario y creo que ya lo tengo.

Saludos Dr. Claudio
Attachments
lista1.png
lista1.png (22.24 KiB) Viewed 6049 times
Post Reply