Callout in Rectangle tool - activex

Just want to know how can I add a callout to Rectangle tool. Below is the code which I have added but Arrow is not drawn. Only a Dot appears at (0,0).
m_ctrlChart.GetTools().GetItems(0).GetAsRectangle().GetCallout().SetVisibl‌​e(TRUE); m_ctrlChart.GetTools().GetItems(0).GetAsRectangle().GetCallout().GetBrush().SetC‌​olor(RGB(255,0,0)); m_ctrlChart.GetTools().GetItems(0).GetAsRectangle().GetCallout().GetPen().SetCol‌​or(RGB(0,0,255)); m_ctrlChart.GetTools().GetItems(0).GetAsRectangle().GetCallout().GetArrow().SetC‌​olor(RGB(0,255,0));
Thanks
Akshay

I think the property you are looking for is Callout.Arrow.Visible:
m_ctrlChart.GetTools().GetItems(0).GetAsRectangle().GetCallout().GetArrow().SetVisible(TRUE);
GetCallout().SetVisibl‌​e(TRUE) is for the Pointer

Related

Changing UILabel position to strokeEnd of CGPath

I'm trying to achieve something similar to the attached image, where the circle is animated depending on your level progress and then a label is attached to both the end of the animated path to show the gained experience and also the undrawn part of the circle to show the remaining experience. I have the circle animating as wanted but am having trouble coming up with a solution to the labels to appear in the right spot.
I've tried setting the position of the label to the path.currentPoint but that always seems to be the start of the drawn path and not the end.
Any pointers on how to achieve this would be great!
I had been working on your question, first of all to achieve this you must animate the path the real path, not only the strokeEnd, if you animate only the strokeEnd your path.currentPoint will always return the circle endPoint of the path, in order to animate the path you need to make a KeyFramed Animation animating the “path” as keyPath and passing an array of paths from current angle to desired one, then in order to set the correct position for your label you need to get de currentPoint of all this paths values and making another keyFramed animation with “position” keyPath and passing as values all this points collected from paths array
This is a basic example working
The code is in GitHub in this Repo
You have a lot of work to do yet but, this can be an starting point for your final solution
Hope this helps, best regards

How can I center the GMSMapMarker view in a coordinate

Is there a way to center the orange arrow (a GMSMapMarker) in a coordinate, changing the view frame or something? I'm using Google Maps for iOS. I can rotate the view with an angle, but I want to set the view's center in a custom coordinate.
I found the solution using the property groundAnchor of GMSMarker:
_mapMarker.groundAnchor = CGPointMake(0.5,0.5);
I think you can calculate the pixel/degree by using the GMSCoordinateBounds, then you can shift the center bases on your icon size and heading.

Cropping sharp edges from behind a UIBezierPath rounded rectangle

I'm learning my way through UIBezierPaths by creating a table from scratch, and having individual cells filled with different colours.
This is a custom object I'm building which is contained in a subclassed UIView.
At the moment, I'm constructing this in this order:
'Cell' fill colours
Column lines
Row lines
Outer box (rounded rect)
As the picture suggests, I'm having trouble getting rid of the sharp corner of the cell fill outside the orange rounded rectangle.
Can anyone point me in the right direction to get rid of these?
Cheers! :)
At the beginning of your drawing code you should add the outer rounded rect path to the clipping path using its addClip method. That way nothing will get drawn that is outside this path.

Issue about openXML SDK

I have a picture and I want to put it in the excel cell (so that left upper corner picture lays on left upper corner cell) with specific coordinate. But I haven't got absolute cell coordinate. I have known excel's coordinate (for example G120) only.
I have tried calculate absolute coordinate through other cell, but I have got significant error.
How do I calculate exactly absolute coordinate through Excel's coordinate?
Thanx in advance for the helping hand.
Have you tried using the AbsoluteAnchor class?

WP7.5 Mango Tile BackContent alignment

Is it possible to center-align the BackContent of a tile?
For example:
54"
2-2
I want the above two lines aligned centered on the back side of a tile. Is this possible?
Sample: http://www.silverlightshow.net/Storage/Users/AndreaBoschin/__Capture.png
You have to draw the text manually onto your BackBackgroundImage as you cannot adjust the placement of the BackContent.
It is not possible to update your Tile with animations or sound. The
placement of the Tile properties is not customizable.
MSDN Source
Edit: Have a look at this question, there is example code showing how to do it.
Draw a image, where it's aligned, and use that as a back property. I've written a guide about it.
(For the front tile, but the backtile is no different).

Resources