- Posts: 67
- Thank you received: 0
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...
- apdeveloper
- Topic Author
- Offline
- Senior Member
-
Less
More
IP: 123.252.230.127
6 years 5 months ago #14738
by apdeveloper
Multiple annotation for line,rectangle,square etc... was created 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.
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.
IP: 212.97.62.176
6 years 5 months ago - 6 years 5 months ago #14739
by federico
Replied by federico on topic Multiple annotation for line,rectangle,square etc...
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:
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.
- apdeveloper
- Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 67
- Thank you received: 0
IP: 114.143.46.222
6 years 5 months ago - 6 years 5 months ago #14742
by apdeveloper
Replied by apdeveloper on topic Multiple annotation for line,rectangle,square etc...
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.
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.
IP: 212.97.62.176
6 years 5 months ago - 6 years 5 months ago #14746
by federico
Replied by federico on topic Multiple annotation for line,rectangle,square etc...
Hi,
You could add and using it in the same way of others.
Add a count in PDFLayoutView.h:
Then you should add this line at the beginning of OnInkTouchBegin, OnInkTouchMove and OnInkTouchEnd methods in PDFLayoutView class:
In the end you should add this line in vInkCancel and vInkEnd methods:
You could add and using it in the same way of others.
Add a count in PDFLayoutView.h:
Code:
int m_ink_cnt;
Code:
if (m_ink_cnt > 0) return false;
Code:
m_ink_cnt = 0;
Last edit: 6 years 5 months ago by federico.
Time to create page: 0.489 seconds