In all codes I've written with cocos2d-x there is a part in the screen at left down corner. It has 3 lines. I've found that the first line is for counting nodes in the scene. What exactly it is and how can I remove it from the screen?
I think the 3rd line is the FPS. for disabling this part, Go to AppDelegate.cpp file , then go to the function: applicationDidFinishLaunching and delete or comment this line:
pDirector->setDisplayStats(true);
OR, set the input value to false
Go intoAppDelegate.m file in your project. In the didFinishLaunchingWithOptions method, change
[director_ setDisplayStats:YES];
to
[director_ setDisplayStats:NO];
Related
Just getting into Inkscape. When I use the pencil or "Draw Bezier lines.." buttons, I follow the instructions in the manual to get the intended effect to get a horizontal or vertical line.
Except, I cannot see the line itself. In the examples the line shows up, but after I stop highlighting it, it goes away completely. The other lines turn out fine. Below is a picture of my screen.
image
My opacity, and alpha are correct for the line segment (as you can see from the screenshot), so I was wondering what I'm doing wrong here.
Thanks!
Try setting a stroke instead of a fill. And make sure you are in a visible layer.
I often use a TPanel or TGroupBox to group my form controls.
Now I need to draw just a straight line like the border of a Panel or GroupBox.
How do I do this on LAZARUS?
Thanks in advance!
Note: The technique must work on both Linux and Windows
As an optical line separator you should use either the TBevel component with Shape property set to one of the following values bsTopLine, bsBottomLine, bsLeftLine or bsRightLine depending on which line you currently need and resize it to a smaller size (in your case you can use bsTopLine or bsBottomLine and resize the bevel vertically):
Or you can use a special component called TDividerBevel which except the single line adds to this optical divider also a caption:
Here's what I've finally done but I'm not sure if this is the RIGHT way so I won't accept my answer. If there's someone else who can point out any issues with this, please let me know. I found this pretty straightforward as well :)
Place a TGroupBox on the form.
Leave the Caption property blank. Now it should look like a panel with only borders.
Use the mouse and drag the bottom border towards the top. Now it looks like a line.
Well, I personally think this method is NOT efficient as it would take up more memory space than just a real straight line. Anyway, so far it seems to work for me :)
Here's the screenshot - look towards the bottom (just above the last text box). The only issues is that on the sides of the line, it shows the lines bending. I think I should set the properties correctly than dragging with the mouse.
I have a class derived from CStatic and on that i m painting lines to show measurement in MFC C++ project. The problem is that I m displaying the line's distance at round about the mid of the line. I m using ExtTextOut function to draw the text. As i m using device context for that, I googled alot to erase that text and redraw on some other location, but i m unable to do. Basically CStatic has an image display over which i m drawing for measurement. Please can anyone tell me how to erase the text drawn through ExtTextOut without harming the background image?
Thanks In advance
I don't think you can just erase the text, leaving what's behind it untouched. You have to redraw the background again.
If you don't want to redraw everything, you can invalidate the part where the text lies (with InvalidateRect or InvalidateRgn) and only that will be redrawn.
Another option, that works with lines but I don't know if it works with text, would be to set the drawing mode with CDC::SetROP2 to R2_XORPEN (I think), draw the text, then draw it again to erase it. By doing it this way, the text will look "mixed" with the background, though.
Hello i am new to world of MSChart and was wondering why
LineColor, LineDashStyle, LineWidth of Secondary AxisX2 and AxisY2 keeps overlay on top at Primary AxisX and AxisY ?
MajorTickMark and MinorTickMark are shown as expected at top and right side of ChartArea,
Is it possible to Locate Line Style of Secondary Axes X2 Y2 to align at top and right side of ChartArea aswell some how ?
I was think of to use the chart1_PostPaint event to get this Line rectangle of X2 and Y2 being painted at top and right side location i looked at this event but even i don't have a clue if this is possible and right way to re locate the line painting of Secondary set of axes
Thanks in advance
At APP: Over 200 Interactive Samples Of MSChart
At Sample: Contents|Appearance: Axis Line Appearance
Located At: \ChartFeatures\Axis\Appearance\cscode.txt
Is actually doing what i am looking for, the AxisY2 LineColor is painted at right side of chartarea
I looked at it's code but still find no clue how to align this AxisY2 Line to right side ??
hmmm i did set AxisX2 Crossing to zero maybe i should set this one to a higher max value
Now AxisY2 Line Color is located at zero instead of showing at right side aswell as its labels already do
Sorry to abuse this answer but i did try comments first
but comments function at this message board is stripping new lines and answer function is stripping new lines aswell some how
Yeah set crossing of AxisX2 to appear AxisY2 at right side or move it anywhere,
solved it, what i was looking for
I am trying to draw a line along with mouse move on a paper. I just know how to draw a line using path. But wanted to know if anyone have ideas to make drawing a line along with mousemove. Please help me on this.
Here a link to such example using raphael
Drawing with Raphael.(Credit:Jonas). (click view->source to see how its done...)
And a jsfiddle that I did just in case(just for back up)
It uses the drag and mousemove events of raphael over a rectangle element...