NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Djordje Radovanovic on December 05, 2015, 05:11:21 PM

Title: How to change text for CloseButton
Post by: Djordje Radovanovic on December 05, 2015, 05:11:21 PM
I need to change text for close button on one browse.

I know that p_web.site.CloseButton.TextValue is variable where I have to change value but I do not know right Embed point. I tried several Embeds but no luck.

Best regards,

Djole
Title: Re: How to change text for CloseButton
Post by: Stu on December 06, 2015, 08:39:16 PM
Best place is probably in the Generate Form list of embeds, under the "Start" embed.

[edit] Apologies, didn't read your question through Djole! This advice is for a NetWebForm :).
Title: Re: How to change text for CloseButton
Post by: Djordje Radovanovic on December 07, 2015, 03:45:17 AM
Thank you Stu,

I found solution. I was wrong with p_web.site.CloseButton.TextValue instead of that I need p_web.site.BrowseCloseButton.TextValue.

I put my code into ! Start of "Before Close Button" and it works.

I notice something that one may call it bug or feature, whatever he likes.

There is several routines which have embed ! Start of "Before Close Button" and if you edit one all are updated in code. My opinion it is a but.

Best regards,

Djole

Title: Re: How to change text for CloseButton
Post by: Bruce on December 07, 2015, 10:44:14 PM
It's done that way on purpose. The close button itself can be generated in three different places depending on the context, so the code is automatically duplicated to all three places for you, so that you don't end up inadvertently making a mistake by missing one.

cheers
Bruce