Sytze,
It is a little bit fiddly here but you are missing the basics.

1. You firstly need an ActiveX Imagelist control on your form so in your
form controls ActiveX you need to add one. Do this by using
tools/options/controls and then select the "Microsoft Imagelist Control 6.0
(SP6)

2. Having dropped the Imagelist control onto your form in the same way as
say a textbox in the designer but select the ActiveX items in the Form
Controls toolbar first, you give it a name say oImagelist. Next you need to
populate the imagelist it with the images(s) that you may want to use with
the DBI controls as they only accept OLBoundControl images ...hence the use
of the imagelist.

With thisform.oImagelist
  * Load the images into the imagelist
  .Listimages.Add(1, "MyKey1", LoadPicture("c:\temp\temp1.bmp"))
  .Listimages.Add(2, "MyKey2", LoadPicture("c:\temp\temp2.bmp"))
  * etc, etc to add all the images you need
Endwith

3. Now you have to allocate one of these images to the Backimage property of
the ctlistbar:

With Thisform.ctlistbar1
  .Backimage=Thisform.oImagelist.Listimages(1).Picture
  .Refresh
endwith


4. Go for a beer!!

It isn't obvious how you do this and it took me a while to sort it out
myself, but I haven't used the DBI controls recently.

Dave Crozier


  
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf
Of Sytze de Boer
Sent: 21 January 2010 02:08
To: [email protected]
Subject: VFP9 - CtListbar

Is there anyone here who uses this control?
I bought the suite several years ago and now want to use the listbar control
I can't get it to work and display the background I want
But particularly, I can't seem to display the ITEMS I want
Age I guess
But I would really appreciate it if someone could guide me.
I guess a picture of your one with a screenshow of the Properties?

-- 
Regards
Sytze de Boer
Kiss Systems
Hamilton, NZ
Ph: 64-7-8391670, Mob:64 21 937611
URL: www.kiss.co.nz


--- StripMime Report -- processed MIME parts ---
multipart/alternative
  text/plain (text body -- kept)
  text/html
---

[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/0d02fe8014564628bc80944ac95ca...@develop
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to