Microsoft Windows Phone 8.1 support ends (13 Jul 2017)

Microsoft has ended support for Windows Phone 8.1

Questions about Android development and PDF

The class Annotation: non-working getters

More
IP: 192.168.0.71 11 years 6 months ago #7277 by Semenovich
I use the methods SetCheckValue() and SetRadio() for editing my PDF form.
Code:
switch (element.GetCheckStatus()) { case 0: element.SetCheckValue(true); break; case 1: element.SetCheckValue(false); break; case 2: case 3: element.SetRadio(); break; } mRadaeeView.vRenderSync(page); mListener.onFormComboButtonClick(page, element);

It works great and radiobox and checkbox buttons updated. But when I call getters for the updated object of Annotation I get illegal values:
Code:
@Override public void onFormComboButtonClick(PDFVPage vPage, Annotation formElement) { Log.d(TAG, "onFormComboButtonClick: page #" + vPage.GetPageNo() + ", annotation #" + formElement.GetIndexInPage() + ", selected: " + formElement.GetComboItemSel() + " of " + formElement.GetComboItemCount()); }
Code:
09-24 16:09:10.193: D/FormActivity(1061): onFormComboButtonClick: page #0, annotation #-1, selected: -1 of -1

Why the methods GetIndexInPage(), GetComboItemSel() and GetComboItemCount() are not working for me?
More
IP: 192.168.0.71 11 years 6 months ago #7279 by radaee
after set check value or combo value, PDFView refresh the page, Page and Annotation object was not aviable.
you shall re-get annotation object after page refreshed.
More
IP: 192.168.0.71 11 years 6 months ago - 11 years 6 months ago #7284 by Semenovich
OK, I remember page number and annotation index before calling SetCheckValue() or SetRadio() methods. Then I get annotation again using these values.

Here is the code.

But the methods GetComboItemSel() and GetComboItemCount() are still not working
Code:
09-25 12:00:20.304: D/FormActivity(21368): onFormComboButtonClick: page #2, annotation #27, selected: -1 of -1
Last edit: 11 years 6 months ago by carpinteyroyku.
More
IP: 192.168.0.71 11 years 6 months ago #7285 by radaee
to be ensure you actived premium license.
if so, you can send me PDF file.
More
IP: 192.168.0.71 11 years 6 months ago - 11 years 6 months ago #7286 by radaee
oh, sorry, radio and check-box has no combo items.
combobox is a dropdown list box, and users can select 1 item to change text value.
Last edit: 11 years 6 months ago by .
More
IP: 192.168.0.71 11 years 6 months ago #7288 by Semenovich
Hmm... Nevertheless can I get the selected radiobox position?
Time to create page: 0.378 seconds
Powered by Kunena Forum