Results 1 to 40 of 274

Thread: [VB6] TaskDialogIndirect - Complete class implementation of Vista+ Task Dialogs

Threaded View

  1. #11
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    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.
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width