Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Development and suggestions about third part tool integration.
Cordova, Xamarin, Basic4Android topics are listed here.
  • Page:
  • 1

TOPIC:

Managed Tap on CheckBox 5 years 11 months ago #13781

  • mfranc28
  • mfranc28's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 25
  • Thank you received: 0
I'd like to know how I can managed tap on checkbox.
I open my PDF with OpenStream, I can edit field type but when I tap on a CheckBox nothing happen.

Please Log in or Create an account to join the conversation.

Managed Tap on CheckBox 5 years 11 months ago #13783

  • nermeen
  • nermeen's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 962
  • Thank you received: 87
Checkbox/radio buttons are managed on the single tap event, it gets recognized and handled using the following code:
int check = annot.CheckStatus;
            if(doc.CanSave() && check >= 0)
            {
                switch (check)
                {
                    case 0:
                        annot.SetCheckValue(true);
                        break;
                    case 1:
                        annot.SetCheckValue(false);
                        break;
                    case 2:
                    case 3:
                        annot.SetRadio();
                        break;
                }
                mView.RefreshCurrentPage();
                mView.PDFEndAnnot();
            }
If you still have issues with the check boxes, can you please send us the pdf?
The following user(s) said Thank You: mfranc28

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Powered by Kunena Forum