PNG Compatibility |
Post Reply |
Author | |
giro21k
Newbie Joined: 08 July 2008 Location: Colombia Status: Offline Points: 9 |
Post Options
Thanks(0)
Posted: 08 July 2008 at 6:54pm |
i want import PNG files to Codejock Product. Is Posible.
Thanks
Excuse me english
|
|
ijwelch
Senior Member Joined: 20 June 2006 Status: Offline Points: 262 |
Post Options
Thanks(0)
|
Yeah.
You can add png to ImageManager at runtime using LoadBitmap or LoadBitmapFromResource (tip-the resource type needs to be 'PNG'). |
|
giro21k
Newbie Joined: 08 July 2008 Location: Colombia Status: Offline Points: 9 |
Post Options
Thanks(0)
|
how set resource type in resources editor of visual basic 6?
Thanks
|
|
ijwelch
Senior Member Joined: 20 June 2006 Status: Offline Points: 262 |
Post Options
Thanks(0)
|
You can't. The VB6 resource editor is just an outdated and pretty useless add-in.
You need to compile your own .res file. You can do this using a MS tool called RC.exe. Here's a few links (the first one is easiest to understand): http://www.darinhiggins.com/2007/04/22/VisualBasic6AndResourceFiles.aspx http://www.vbaccelerator.com/home/vb/code/Libraries/Resources/Using_RC_EXE/article.asp I've attached a zip containing a dead simple resource project. uploads/20080802_010054_Res_Files.zip |
|
TShriver
Groupie Joined: 27 July 2008 Location: United States Status: Offline Points: 34 |
Post Options
Thanks(0)
|
Do you know if there is a way to use the LoadBitmapFromResource command and see these images while in VB's IDE. Compiling to debug is a REAL pain. I have other 3rd party controls which don't have a problem with referencing image resources from within the IDE. Thank you in Advance! Tim |
|
ijwelch
Senior Member Joined: 20 June 2006 Status: Offline Points: 262 |
Post Options
Thanks(0)
|
Add resources to a dll. Then you can use the code in this thread to load them:
https://forum.codejock.com/forum_posts.asp?TID=9901&KW= This works at both design time and runtime. |
|
TShriver
Groupie Joined: 27 July 2008 Location: United States Status: Offline Points: 34 |
Post Options
Thanks(0)
|
ijwelch, Thank you for your help!Regards,
Tim
|
|
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 |