Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question About Wintoast notification #92

Open
modz2014 opened this issue Nov 12, 2023 · 1 comment
Open

Question About Wintoast notification #92

modz2014 opened this issue Nov 12, 2023 · 1 comment

Comments

@modz2014
Copy link

modz2014 commented Nov 12, 2023

hope this message finds you well. I am currently working on a project that involves the implementation of an action button within a context menu for handling toast notifications. Specifically, I am encountering challenges with the temp1.addAction functionality in my code.

Below is the snippet of the code in question:


WinToastTemplate CustomTemplate() {
    WinToastTemplate templ;
    templ = WinToastTemplate(WinToastTemplate::ImageAndText02);

    WinToastTemplate::CropHint::Circle;

    templ.setTextField(L"Hello World!", WinToastTemplate::FirstLine);
    templ.setTextField(L"This is a toast notification", WinToastTemplate::SecondLine);

    // Add action buttons
    templ.addAction(L"Open");

    return templ;
}

@modz2014 modz2014 changed the title Question Baout Wintoast notification Question About Wintoast notification Nov 13, 2023
@modz2014
Copy link
Author

so the addAction does not work on windows 11 for some reason

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

No branches or pull requests

1 participant