getmusicbee.com

Support => Developers' Area => MusicBee API => Topic started by: ThY on August 09, 2022, 09:37:40 PM

Title: A loading message
Post by: ThY on August 09, 2022, 09:37:40 PM
Hello, are there any tips around to display a loading message ?

I'm asking that for a plugin i'm working on, which can take several seconds to do what is asked.
I would like the user to know something is going on.

I'm a beginner and i didn't find anything like that in the API methods.
Is the only way a window form opening and closing when the task is done ?

Thank you for your help :)
Title: Re: A loading message
Post by: Steven on August 10, 2022, 08:38:56 AM
MB_SetBackgroundTaskMessage
Title: Re: A loading message
Post by: ThY on August 10, 2022, 12:04:59 PM
Thank you, i'm sorry for this useless post.
I swear i tried MB_SetBackgroundTaskMessage, but i don't know what i did, it wasn't working.

I just needed some sleep i guess. It's working fine :)

Is it good practice to remove the message with an empty string ?
Title: Re: A loading message
Post by: boroda on August 10, 2022, 01:15:16 PM
Is it good practice to remove the message with an empty string ?
yes, i always do this in my plugins.
Title: Re: A loading message
Post by: ThY on August 10, 2022, 01:17:02 PM
Thank you both ;)