![]() |
CodeJock ImageManager question |
Post Reply
|
| Author | |
eugene_v
Groupie
Joined: 12 September 2007 Location: Canada Status: Offline Points: 14 |
Post Options
Thanks(0)
Quote Reply
Topic: CodeJock ImageManager questionPosted: 22 September 2007 at 12:10am |
|
Hello everyone!
I am trying to replace VB's ImageList with CodeJock ImageManager. I get "Object variable not set" error. Variable TrayIcon remains empty.
Can you show me where is my mistake in the following lines:
Eugene
|
|
![]() |
|
SuperMario
Senior Member
Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
Quote Reply
Posted: 24 September 2007 at 3:49pm |
|
What is TrayMenu?
|
|
![]() |
|
eugene_v
Groupie
Joined: 12 September 2007 Location: Canada Status: Offline Points: 14 |
Post Options
Thanks(0)
Quote Reply
Posted: 24 September 2007 at 4:23pm |
It's a 3rd party component from DBI-Tech. The ItemPicture property type is StdPicture. So, I just need to supply an StdPicture to it, by using the CreatePicture method of CodeJock ImageManager. But I don't see why it doesn't work.
|
|
|
Eugene V
A happy registered user of Xtreme SuitePro 2007 11.2.0 with VB6 |
|
![]() |
|
SuperMario
Senior Member
Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
Quote Reply
Posted: 24 September 2007 at 4:29pm |
|
This worked for me:
Dim mystdpic As StdPicture Set mystdpic = ImageManager.Icons.GetImage(100, 16).CreatePicture(xtpImageNormal) Picture1.Picture = mystdpic |
|
![]() |
|
SuperMario
Senior Member
Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
Quote Reply
Posted: 24 September 2007 at 4:30pm |
|
Note Picture1 is a standard picturebox control.
|
|
![]() |
|
eugene_v
Groupie
Joined: 12 September 2007 Location: Canada Status: Offline Points: 14 |
Post Options
Thanks(0)
Quote Reply
Posted: 24 September 2007 at 9:17pm |
I am sorry, but there is no data type named StdPicture in VB. This cannot be compiled. Any ideas?
|
|
|
Eugene V
A happy registered user of Xtreme SuitePro 2007 11.2.0 with VB6 |
|
![]() |
|
eugene_v
Groupie
Joined: 12 September 2007 Location: Canada Status: Offline Points: 14 |
Post Options
Thanks(0)
Quote Reply
Posted: 24 September 2007 at 9:23pm |
|
Sorry, my mistake. You need to add a reference to "OLE Automation" in order to use this data type.
|
|
|
Eugene V
A happy registered user of Xtreme SuitePro 2007 11.2.0 with VB6 |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() 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 |