wopag
  • wopag
  • Member Topic Starter
2011-10-05T09:35:58Z


Im trying to implement the 10Tec imagelist as a replacement for the vbaccelerator one.


grid.SetImagelist (icon.hIml) returns '438' object doesnt suport this property ?



Igor/10Tec
2011-10-06T06:10:38Z
That's impossible to say what is wrong just looking at this line of code. Can you send us a sample we can use to reproduce the problem?
wopag
  • wopag
  • Member Topic Starter
2011-10-06T11:02:54Z


Nothing special :-

1 form with the grid and imagelist in


VERSION 5.00
Object = "{3CAE3B0A-2E39-407A-A22F-585643D71497}#1.0#0"; "vbalIml240_10tec.ocx"
Object = "{93F93A55-A0CB-4F94-8FF7-F2922E2C1661}#1.0#0"; "igrid470_10tec.ocx"
Begin VB.Form frmDetails 
   Caption         =   "Form1"
   ClientHeight    =   3480
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   3735
   LinkTopic       =   "Form1"
   ScaleHeight     =   3480
   ScaleWidth      =   3735
   StartUpPosition =   3  'Windows Default
   Begin iGrid470_10Tec.iGrid iGrid1 
      Height          =   2040
      Left            =   450
      TabIndex        =   0
      Top             =   1230
      Width           =   2970
      _ExtentX        =   5239
      _ExtentY        =   3598
   End
   Begin vbalIml240_10Tec.vbalImageList icon 
      Left            =   240
      Top             =   255
      _ExtentX        =   1905
      _ExtentY        =   1323
   End
End
Attribute VB_Name = "frmDetails"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False

Private Sub Form_Load()



    iGrid.SetImageList (icon.himl)
End Sub

Doumis
2011-10-07T04:56:18Z
hey wopag,

try this:

Form1.iGrid1.SetImageList form1.icon

so just leave the .himl-property and use the correct name for the grid (not iGrid but iGrid1) - it's not really necessary to specify the form-control in this example, but it's safer :)

have a nice day...

Doumis
wopag
  • wopag
  • Member Topic Starter
2011-10-07T08:53:24Z

Doh, as simple as that !

Hope this helps others ....

KomodoLabs
2011-10-19T17:10:34Z
wopag, I think you'll love iGrid. We switched to it many years ago. It works much better than the old S-Grid and has been consistently updated ever since. 32-bit icons work perfectly as well, using 10Tec's new image list control. And the support second to none.

And if anyone's interested, I made couple screenshots showing the power of 10Tec's ActiveX image list. One can create a pretty modern interface with it!

Click here: Image list screenshots