NetTalk Central

Author Topic: How to Enable and Disable CancelButton  (Read 1324 times)

Johan de Klerk

  • Full Member
  • ***
  • Posts: 214
  • Johan de Klerk
    • View Profile
    • Designer Software
How to Enable and Disable CancelButton
« on: September 14, 2021, 04:55:40 AM »
Hi Bruce,

I have made my NetWebForm ViewOnly on a certain condition.
This works perfect.

Only one problem.
The Cancel Button is also Disabled.

Is there a command I can use right at the end of the GenerateForm Routine to enable the CancelButton?

Something like:
IF loc:viewonly = 1
    Enable(CancelButton)
END

Regards
Johan de Klerk
Clarion10
NT11.53
Clarion 10, NT 11.57

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11175
    • View Profile
Re: How to Enable and Disable CancelButton
« Reply #1 on: September 15, 2021, 04:53:05 AM »
If the form is in View-Only mode there should not be an Ok or Cancel button.
Just a Close button.

So perhaps post an example of what you are doing? Tweak one of the shipping examples to show the effect maybe?

cheers
Bruce