FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour How To Display JPG In Listbox
Posts: 175
Joined: Tue Nov 10, 2009 10:56 AM
How To Display JPG In Listbox
Posted: Sun May 15, 2011 11:42 AM

In a listbox, to display bitmaps:

      @ 0.2, 0.5 LISTBOX oLbx FIELDS abc->image,READBITMAP( 0,alltrim(abc->image1) ), abc->name,;

How to display jpg files and bmp files in listbox.

Regards
acwoo

Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: How To Display JPG In Listbox
Posted: Sun May 15, 2011 12:16 PM
From sample : Testlbx2.prg
You can use BMP's. For JPG's use xBrowse !!!

Code (fw): Select all Collapse
@ 0.5, 0.5 LISTBOX oLbx VAR cItem ;
ITEMS { "One", "Two", "Three", "Four" } ;
BITMAPS { "..\bitmaps\level1.bmp",;
               "..\bitmaps\level2.bmp",;
                "..\bitmaps\level3.bmp",;
                "..\bitmaps\level4.bmp" } ;
SIZE 100, 100


Best Regards
Uwe :-)
Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.

Continue the discussion