NetTalk Central

Author Topic: How to change text for CloseButton  (Read 2831 times)

Djordje Radovanovic

  • Full Member
  • ***
  • Posts: 237
    • View Profile
How to change text for CloseButton
« 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

Stu

  • Hero Member
  • *****
  • Posts: 510
    • View Profile
    • Email
Re: How to change text for CloseButton
« Reply #1 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 :).
« Last Edit: December 10, 2015, 05:26:34 PM by Stu »
Cheers,

Stu Andrews

Djordje Radovanovic

  • Full Member
  • ***
  • Posts: 237
    • View Profile
Re: How to change text for CloseButton
« Reply #2 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


Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11204
    • View Profile
Re: How to change text for CloseButton
« Reply #3 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