Microsoft Windows Phone 8.1 support ends (13 Jul 2017)

Microsoft has ended support for Windows Phone 8.1

Questions about iOS development and PDF

Multiple annotation for line,rectangle,square etc...

More
IP: 123.252.230.127 6 years 5 months ago #14738 by apdeveloper
Dear Team,
Suppose we are doing rectangle annotation and we have selected rectangle and after that we are making multiple rectangle and then we are clicking the done button or cancel button.
My query is whenever user makes one rectangle then they should either click on done or cancel .
They should not make another rectangle and same for other annotation as well.
Once the done button or cancel button is clicked now they should be able to make rectangle again or any other annotation.
More
IP: 212.97.62.176 6 years 5 months ago - 6 years 5 months ago #14739 by federico
Hi,
If you want to force user to click done or cancel on every annot rect drawn you should add this line at the beginning of OnRectTouchBegin, OnRectTouchMove and OnRectTouchEnd methods in PDFLayoutView class:
Code:
if( m_rects_cnt > 0 ) return false;
Last edit: 6 years 5 months ago by federico.
More
IP: 114.143.46.222 6 years 5 months ago - 6 years 5 months ago #14742 by apdeveloper
Dear Team,
Problem for rectangle,Line and oval has been resolved but how to restrict ink annotation.Their is no counter set for ink annotation or you can say pen annotation.
Last edit: 6 years 5 months ago by apdeveloper.
More
IP: 212.97.62.176 6 years 5 months ago - 6 years 5 months ago #14746 by federico
Hi,
You could add and using it in the same way of others.
Add a count in PDFLayoutView.h:
Code:
int m_ink_cnt;
Then you should add this line at the beginning of OnInkTouchBegin, OnInkTouchMove and OnInkTouchEnd methods in PDFLayoutView class:
Code:
if (m_ink_cnt > 0) return false;
In the end you should add this line in vInkCancel and vInkEnd methods:
Code:
m_ink_cnt = 0;
Last edit: 6 years 5 months ago by federico.
Time to create page: 0.489 seconds
Powered by Kunena Forum