Rank: Newbie
Groups: Registered
Joined: 1/28/2011(UTC) Posts: 7 Location: Germany
Thanks: 1 times
|
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 : Code:
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
|
|
|
|
|
|
Rank: Administration
Groups: Administrators, Forum Moderator Joined: 1/17/2011(UTC) Posts: 63
Was thanked: 8 time(s) in 8 post(s)
|
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?
|
|
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 1/28/2011(UTC) Posts: 7 Location: Germany
Thanks: 1 times
|
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 1 time(s).You cannot view/download attachments. Try to login or register.
|
|
|
|
|
|
Rank: Administration
Groups: Administrators, Forum Moderator Joined: 1/17/2011(UTC) Posts: 63
Was thanked: 8 time(s) in 8 post(s)
|
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: Quote: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.
|
 1 user thanked Igor/10Tec for this useful post.
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 1/28/2011(UTC) Posts: 7 Location: Germany
Thanks: 1 times
|
Hello Igor,
I don't know why, but its working again.. Seems to be some of the mysteries of MS Access.
Thanks
Klaus
|
|
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.