Skip to content

Simplify setting dialog icon from bitmaps - #15

Merged
kpreisser merged 1 commit into
kpreisser:taskdialogfrom
RussKie:Simplify_set_icon_from_bitmap
Apr 8, 2020
Merged

kpreisser merged 1 commit into
kpreisser:taskdialogfrom
RussKie:Simplify_set_icon_from_bitmap

Conversation

@RussKie

@RussKie RussKie commented Mar 24, 2020

Copy link
Copy Markdown

Typically images are used from Resources, and those are of Bitmap type.
The existing API only takes Icon that requires additional work from a developer, which wouldn't be straight forward for a significant part of the development community, e.g.:

new TaskDialogIcon(Icon.FromHandle(Properties.Resources.Network.GetHicon()))

Provide an overload that takes a Bitmpa and handles the necessary plumbing.

@RussKie
RussKie force-pushed the Simplify_set_icon_from_bitmap branch from 37a759d to 2e8fbe9 Compare March 26, 2020 03:22
Typically images are used from Resources, and those are of `Bitmap` type.
The existing API only takes `Icon` that requires additional work from a
developer, which wouldn't be straight forward for a significant part of
the development community, e.g.:

    new TaskDialogIcon(Icon.FromHandle(Properties.Resources.Network.GetHicon()))

Provide an overload that takes a `Bitmpa` and handles the necessary plumbing.
@RussKie
RussKie force-pushed the Simplify_set_icon_from_bitmap branch from 705d861 to 94ca1a3 Compare April 3, 2020 02:03
@RussKie

RussKie commented Apr 3, 2020

Copy link
Copy Markdown
Author

Updated

@kpreisser

Copy link
Copy Markdown
Owner

Thanks a lot!

@kpreisser
kpreisser merged commit 245651f into kpreisser:taskdialog Apr 8, 2020
@RussKie

RussKie commented Apr 14, 2020

Copy link
Copy Markdown
Author

Looks like we'll need to implement IDisposable on TaskDialogPage et al after all :)
TIL that to make the TaskDialog design-able we'll need to implement IComponent to show in the designer. This is obviously not something we'll need to action immediately, just sharing the learning.

@RussKie
RussKie deleted the Simplify_set_icon_from_bitmap branch April 14, 2020 04:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants