|
-
Oct 15th, 2014, 07:46 AM
#11
Re: [VB6] TaskDialogIndirect: Complete class implementation of Vista+ Task Dialogs
I do not plan on supporting external DLL icon selection, for the following reasons:
1) no guarantee DLL exists on all computers, in all O/S the code will be run on
2) believe option might be used by like 1% of 'educated' users. The other users might fall into above trap
3) If desire exists to use external icons, then code readily exists to do that and hIcon can be passed to the class instead
4) This is the big one: people that want icons for their own programs, include icons in their resource files to ensure portability
Regarding custom resource entries... I am not suggesting that users create custom resources, just for the IDE WYSIWYG workaround
1) When placed in the CUSTOM section, TaskDialog and other APIs won't be able to find them since they will not exist in the RT_GROUPICON section
2) Users cannot use code like: Set Me.Picture = LoadResPicture(...). APIs like LoadImage will not work for those icons
3) I do allow users to pass a CUSTOM resource, but do not require icons be placed there.
Unless using rc.exe or a res file hack, understand that 32bit & Vista-PNG icons will probably reside there
My idea for parsing the uncompiled RES file follows this train of thought
1) Inform users of the code how to get WYSIWYG during IDE, uncompiled
2) In IDE only (class tests for running uncompiled). Use the RES path/file if user provided it
3) The call to pass the path/file can be encoded with #IF #ENDIF if desired
P.S. CUSTOM is default, but users can rename it and create as many as they'd like.
For example, to place AVI files in a resource appropriately named AVI, these easy steps are used
1) Add AVI file to the CUSTOM resource
2) Double click on the newly added AVI item
3) Change the "Type" textbox value to read: AVI
4) Save changes
Last edited by LaVolpe; Oct 15th, 2014 at 02:51 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|