Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Wednesday, May 15, 2013 4:34:55 PM(UTC)
Twinmoon

Groups: Registered
Posts: 5


Hello!

I wanna control celltag in realtime.
However it is only possible by SetCellTag function.

For example,
SetCellTag(0, DISPWIN_ALIGN_BOTTOMCENTER, DISPWIN_TYPE_RULERUNIT, NULL, 0);
It could show 'Centimeter' or something.
But 'Centimeter' is too long. And when I'm changing zoom rate, 'Centimeter' will be changed to 'Millimeter' in realtime!!
So I wanna show 'cm' not 'Centimeter'. It is also same as 'Millimeter' to 'mm' in realitme.
It is all I want to know. (Not just show 'cm' instead of 'Centimeter'. Change in real time is most important.)




 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Sunday, May 19, 2013 5:13:24 AM(UTC)

Daoud  
Daoud

Groups: Registered
Posts: 256


Do you mean you want to change the Cell's Ruler string? If yes, currently this is not implemented. If you want, you can send a new email to support@leadtools.com to request that we submit a feature request for you.
In the mean time, you can use SetTag() function to add the tag string you want. You can then implement an event so that when you reached a certain zoom factor for example, the event will be triggered and it will call EditTag() to change the tag string.

 
#3 Posted : Monday, May 20, 2013 8:14:07 PM(UTC)
Jerome76

Groups: Registered
Posts: 13


Hello,

Is it possible to change the Cell's Ruler type or Design as shown in the attached figure?
Actually, It's not a design we wanted, becuase it's too big.
Please let me know what could I do the next.

Have a great day!
Thanks.

Jerome



Jerome76 attached the following image(s):
RulerType.JPG
 
#4 Posted : Tuesday, May 21, 2013 1:49:34 AM(UTC)

Daoud  
Daoud

Groups: Registered
Posts: 256


You can show the vertical ruler by setting the cell properties to
=====================
DISPCELLPROPERTIES DispContainerProp;  
DispContainerProp.uStructSize = sizeof(DISPCELLPROPERTIES);
nRet=hCellWnd->GetCellProperties(&DispContainerProp,0);
DISPCELLPROPERTIES.uShowRuler=DCCELLPF_SHOWRULER_VERT;
hCellWnd->SetCellProperties(&DispContainerProp,0);
=====================
To write the string "10cm", use SetCellTag() with "DISPWIN_TYPE_USERDATA" flag and set the text. See the following code:
=====================
hCellWnd->SetCellTag(0, DISPWIN_ALIGN_BOTTOMLEFT,    DISPWIN_TYPE_USERDATA,      TEXT("10cm"), 0);
=====================

 
#5 Posted : Tuesday, May 21, 2013 3:01:23 PM(UTC)
Jerome76

Groups: Registered
Posts: 13


Thank you for your answer, but it's not answer I wanted.
I know that as you mentioned leadtools's providing this, and we're using the Vertical and Horizontal ruler. However we can not change the design of the ruler we're using. That's why I asked you how to change this.
Please help me with the further information.

Thanks

Jerome

 
#6 Posted : Wednesday, May 22, 2013 5:15:59 AM(UTC)

Daoud  
Daoud

Groups: Registered
Posts: 256


Jerome,
Currently there isn't a different way to customize the cell's rulers. If you want, you can send a new email to support@leadtools.com to request that we submit a feature request for you.
If you send the email, please include your toolkit serial number with it, in a addition to a link to this forum post.

 
#7 Posted : Wednesday, May 22, 2013 5:06:55 PM(UTC)
Jerome76

Groups: Registered
Posts: 13


Thanks for your effort.
I'm going to summarize about this soon, and then as you mentioned I'll send it your support team with serial key number of the toolkit.

Jerome
 
#8 Posted : Thursday, May 23, 2013 6:33:55 AM(UTC)

Daoud  
Daoud

Groups: Registered
Posts: 256


Jerome,
I have received your email in ticket #2013052310000235. I will continue working with you there.

 
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.155 seconds.