Is there any way I can get an OnMouseDown event for a shape that I have created using:
(Canvas->Ellipse) method?.
I need to add 1 each time the Ellipse is clicked with the mouse.
I realise I should have placed a shape on the form rather than used the canvas, however I have come too far with...
I am trying to get a shape to move by using a timer and 4 buttons. The idea is to get the timer to get the shape moving to the right on creation and then use the buttons to move the shape either to the left, up or down. The problem is that when the form is created and the shape begins to move...
Could someone please tell me how I can get the text that is typed into an edit box to become displayed in a list box.
Basically I am adding an item to an existing list (the method i have returns a void) but i wish to display this text with the click of a button.
Any help please?
INDO
I am trying to create a bar graph using the MoveTo and LineTo methods.
This is the code for the original display, I am trying to convert to a bar graph.
Any pointers please?
if (initialised){
Canvas->MoveTo(20,199 - 2* DataEngine1.NextItem());
for (Count = 2; Count <+DataEngine.Size(); Count...
I am trying to create a form with 3 shapes and each shape is chosen from a combo box and in turn is displayed on the form with the other shapes not visible. What is the best way to accomplish this. Where do I place the code and what properties do I use? just a push in the right direction would...
could somebody please give me a clue as to how I can reduce the number of digits from a float when giving a write out command i.e. for a float that gives currency as an answer?
rather than 2.6799346 I would like 2.67.
many thanks
Indo
if I was to use the following code(from a library source)
would the - 1 remove digits from the beginning or the end of the string?.
for(Index = 1; Index <= Length(Line))
if(Line[Index] = 32)
Line[Index] = Line[Index]-1;
Index = Index + 1;
also will the (32) be recognised as a space...
I am trying to write what i guess should be a simple program where i enter a string which may have spaces at the beginning and elsewhere and i have to print out the string with one word per line and no spaces. The basic part of the code I have so far is:
Line = ReadStringPr("Enter a line...
I have witten a code to check if a numbe is a cube but keep getting an endless loop when I enter a cubed number. I can't spot my mistake. Any help please?
int Number;
int Test;
Test = 1;
Number = ReadIntPr("Enter a whole number for testing: ");
while(Test * Test * Test <=...
Could somebody please give me some pointers on my code for palindrome testing. As you can see I am new to Borland programming. I think i have the main points okay but there are still errors.
Many thanks.
int main (int argc int, chr** argv)
{
AnsiString word;
int Index;
int Reverse;
char...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.