FAQ Database Discussion Community


Creating a chat bubble using Shapes or 9-patch image

android,shapes,nine-patch
I am trying to create a template for my chat bubbles in an android app i am currently working on. The end result should look something like this: I tried it with Shapes, but i could not get the multiple layers right. I also tried a 9-patch image, but creating...

Variable present in an object

vba,excel-vba,variables,object,shapes
Does a variable have to be specifically available (help on terminology?) within a For...Next Statement Dim ws As Worksheet Set ws = ActiveSheet For i = 10 To 13 ws.Shapes.Range(Array("Rectangle " & i + 24)).Height = 43.5 ws.Shapes.Range(Array("Rectangle " & i + 24)).Width = 43.5 ws.Shapes.Range(Array("Rectangle " & i +...

Excel VBA Shapes TextFrame Characters Text Charset

excel,vba,excel-vba,shapes
I insert textbox to my Excel 2013 document and put some text 正体字/繁体字 with UTF-8 symbols In textbox its looks ok but when I trying to msgbox it with command MsgBox ActiveSheet.Shapes("Textbox 1").TextFrame.Characters.Text I get something like ???/??? So how to set UTF_8 charset to get normally this text in...

Development of a windows form-based application to calculate the area and boundary lengths for Circles, Squares and Right-Angled Triangles [closed]

c#,visual-studio,radio-button,rounding,shapes
I am trying to create a program in C# using Microsoft Visual Studio. The application should be able to calculate the area and boundary lengths for Circles, Squares and Right-Angled Triangles; it must also draw each of these shapes on the screen at the currently set size. One of the...

How to make the arc corners go out not in with a Three.js Shape

javascript,three.js,shapes
How to make all three corners ( created using shape.absarc) of the Three.js Shape go out and not in? See http://jsfiddle.net/theo/v7v4fu2v/ // Shape var radius = 10; var material = new THREE.MeshNormalMaterial(); pt1 = new THREE.Vector3(40, 50, 0); pt2 = new THREE.Vector3(-40, 0, 0); pt3 = new THREE.Vector3(30, -20, 0);...

Beautiful Header Shapes Using Pseudo:Before Trick, Adding SPACE

css,pseudo-element,shapes
With a little help, it's almost GORGEOUS: TheZoo.com/shapes Except, there is no space between the header icon and the text, which I want to control. So how do I add margin (or padding) to a css pseudo:before shape, while AVOIDING extra markup, spacer div or other elements, relying purely on...

Custom shapes in CSS [duplicate]

css,css-shapes,shapes
This question already has an answer here: How to bevel the corner of a block div? 4 answers How do I create a 'Parallelogram' shape in css with a straight side? [duplicate] 2 answers Trapezium responsive Div with CSS or jQuery 2 answers Basically, I am trying to make...

HTML5 Canvas determine shapes from a sillouette

html5,image,canvas,shapes
I'm trying to identity the center x and y of a circle drawn from an png image source in a canvas, is there a context 2d function that can do this? Or is there a function that can trace a circle in a png file so that I can identify...

Create a shape in C++

c++,shapes
I want to create a shape like this: ccccccc cccccc ccccc cccc ccc cc c My code is: #include <iostream> using namespace std; int main(){ int i, j; for(i = 0; i < 7; i++){ for(j = 7; j > 7; j--){ cout << 'c'; } cout << endl; }...

How do I get each of my toggle buttons to do something different?

java,swing,user-interface,shapes,jtogglebutton
Okay so I am programming a GUI using java swing and I have been using some old code that I used to create a moving square, but now I have to use toggle buttons to make some shapes appear and disappear from the window. My program is supposed to have...

Excel and VBA regarding shapes

excel,vba,shapes
I'm working on some experiments and I've run across something I'd like to do that I cannot figure out. I would like to allow for a user to click a shape on an Excel spreadsheet that lets the user keep the shape highlighted so they can move it with the...

How to draw a square composed of four triangles ? ( libgdx )

java,libgdx,shapes
I've a case in which I need to draw square composed of four triangles like in the photo bellow : The triangles parameters are stored in the JDBC , I know how to draw shapes in Libgdx but this kind of shape seems a bit tricky to me , any...

Array Creation Stack overflow

java,arrays,shapes,rectangles
I'm getting an error where it would keep giving me a stack overflow. What I basically wanna do is create an Array List of objects that have rectangles. However, if any of the object overlap one another then, I would call the method again and create an array till it...

How to create a sphere in css?

html,css,css-shapes,css-transforms,shapes
I have trying to create a 3D sphere using just pure css, but I've been unable to generate the shape required. I've seen a cylinder but I can't find any reference to creating an actual sphere. My current code looks like: .red { background-color: red; } .green { background-color: green;...

Change color from a Rectangle using a TColorListBox

c++,c++builder,firemonkey,shapes,c++builder-xe6
I'm here again. I just would like to discover how to change the color background of a rectangle (Shape) using a TColorListBox. I know it is easy, however I'm getting exception all the time I try to set a new value for the Rectangle. The command I'm using is the...

New Created Custom List Shape Doesn't Work in Microsoft Visio 2013 x64

shape,visio,shapes,stencils,shapesheet
Objective: First, I should say what I want to do, and then I'll describe what I've done to achieve to my Goal in the next (Descriptions) part. I want to create a Custom List Master Shape from the Plain Container of the Diagram Parts section in the Insert tab of...

ggplot2 shapes by variables with replicates [duplicate]

r,ggplot2,shapes
This question already has an answer here: Changing shapes used for scale_shape() in ggplot2 3 answers I have the table that I attach in the Excel in Dropbox I want to make a plot with three basic colours (black, red and blue) by Country and the shapes (e.g., 24,...

Java moving square on a frame - how do I stop it at the edge of the Frame?

java,graphics,shapes
I have a program to move a square about using the keyboard. It moves around fine when I press one of the arrow keys, but if I move it to the edge of the frame, I want it to stop. It does not do this however. If I move the...