KGunder
2012-02-13T18:27:18Z
Hello Igor,

I have a running Access 2007 application with iGrid OCX 4.6 and the standard MS Imagelist
Now I am trying to switch to iGrid OCX 4.7 / 5.0 and 10Tec ImageList 2.4,
but won't display the Icons any more. Do I need to have the icons in a specific resolution / color depth ?

My Code so far :

Private Sub FillIGrid( Byval TheRecordset as ADODB.Recordset)
  Dim objGrid  As iGrid470_10Tec.iGrid
  Dim objIcons As vbalIml240_10Tec.vbalImageList

  Set objGrid = Me.iGrid.Object
  Set objIcons = Me.vbalImageList.Object

  Call FG.FillFromRS(TheRecordset, igFillRSRecreateColsOnly)
  
  .... ' Setup of Column Formats 

  Call FG.FillFromRS(TheRecordset)

  Call objGrid.SetImageList(objIcons)

  For row = 1 to objGrid.RowCount
    objGrid.CellIcon(row,2) = 1
  Next


The text in Column 2 gets indented to make space for an Icon but the Icon isn't visible...

Best regards

Klaus

Igor/10Tec
2012-02-14T07:53:18Z
iGrid can display any icon the vbalImageList control contains. Can you send us a sample that demonstrates the problem so we can see what's happening?
KGunder
2012-02-14T11:00:57Z
Originally Posted by: Igor/10Tec 

iGrid can display any icon the vbalImageList control contains. Can you send us a sample that demonstrates the problem so we can see what's happening?



I tried to create a sample database from scratch to demonstrate the problem, but it is working (frmWorking)!!
Then I imported the form "FArtikelInfo" from my production database, and it is working too !!!

and now comes the mad part:
I imported frmWorking in my production database.
If I open frmWorking first and then FArtikelInfo, I have icons in both forms.
But if I open FArtikelInfo first and then frmWorking I have no icons at all !!!!


File Attachment(s):
Grid-Test.zip (54kb) downloaded 86 time(s).
Igor/10Tec
2012-02-15T08:54:01Z
We see no problems in the code related to iGrid. Can you reproduce this odd behavior in a brand new database with two simple forms, when each form contains one iGrid and vbalImgList?

It may be a next glitch deep inside MS Access - we saw that many time when working with iGrid in this dev env (you can open What's New and see that we implemented many "fixes" for MS Access related problems which should have not appeared).

By the way, we get the following error when launching FArtikleInfo:
引用:

The expression On Open you entered as the event property setting produced the following error: A problem occurred while Microsoft Access was communicating with the OLE server or ActiveX Control.

KGunder
2012-02-17T16:53:25Z
Hello Igor,

I don't know why, but its working again..
Seems to be some of the mysteries of MS Access.

Thanks

Klaus