This post shows how to get the result shown in the image below:
It's quite simple, just create the images observing the height in pixels that you want to have in the listbox. The height in pixels of the image will define the line spacing. Knowing this, just create the necessary images and add them to the project.
But how to make them appear in the listbox?
Suppose your listbox component is called LSTCOTACAO, the code would look like this:
THISFORM.lstcotacao.CLEAR() && To clear
THISFORM.lstcotacao.ADDITEM('Your text') && Text that will appear in the line
THISFORM.lstcotacao.PICTURE(.LISTCOUNT) = 'legenda_branca.png' && Image that will be added to the line just inserted
It's quite simple, just create the images observing the height in pixels that you want to have in the listbox. The height in pixels of the image will define the line spacing. Knowing this, just create the necessary images and add them to the project.
But how to make them appear in the listbox?
Suppose your listbox component is called LSTCOTACAO, the code would look like this:
THISFORM.lstcotacao.CLEAR() && To clear
THISFORM.lstcotacao.ADDITEM('Your text') && Text that will appear in the line
THISFORM.lstcotacao.PICTURE(.LISTCOUNT) = 'legenda_branca.png' && Image that will be added to the line just inserted
Comments
Post a Comment