TWebWaitMessage, ElementClassName and ElementId properties

Hi,
Is it possible to add ElementClassName and ElementId to output TWeb WaitMessage HTML element.
Currently when I set something on these properties the HTML is rendered without values.
e.g.

<span tabindex="0" style="background-color: black; opacity: 0.2; inset: 0px; z-index: 19999; user-select: none; position: fixed;"><div style="position: relative; width: 100%; height: 100%;"><img src="Unit1.wbwtmsg1.Picture.gif" style="position: absolute; inset: 0px; margin: auto;"></div></span>

Hello Support,

Can I get answer for my question?

Hello

Sorry to up this subject, but I have the same question, I create dynamically:

       WaitMessage := TWebWaitMessage.Create( nil );
       WaitMessage.Name := 'WebWaitMessage' + SIdWait;
       WaitMessage.ElementClassName := 'WaitMessage';
       WaitMessage.ElementID := 'WebWaitMessage' + SIdWait;
       WaitMessage.PictureURL := './assets/img/waiting.svg';
       WaitMessage.Opacity := 0.5;
       WaitMessage.Show;

and result (under the body) is:


.

I want to retrieve this part to use it in a CSS file but I can't because no class and no elementId are written in the html code.
And WaitMessage.ElementHandle is "null" too, so no way to retreive it.

How to identify this component ?

We have investigated this and the TWebWaitMessage behaves a bit atypical as the HTML elements it needs are only created and added to the DOM from the .Show call.
We can make the main DIV element of TWebWaitMessage accessible via ElementHandle after this .Show call it his helps.

ElementHandle is "null" after show too, I also tried by connecting the "OnShow" event and retrieving the "sender", but it's the same.

I mentioned "We can make the main DIV element of TWebWaitMessage accessible via ElementHandle", i.e. this is currently not implemented but it is something we can do for a next version.

1 Like

I read too fast
Thanks :slight_smile:

Thanks for the the update 2.9.4 to access ElementHandle, works fine :+1:
I can't close this subjectbecause it's not mine

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.