Hi all.
I posted a few days ago a question relevant to assembler statements. I had a problem with following warning & error:
[C++ Warning] Unit1.cpp(14): W8002 Restarting compile using assembly.
[Tasm Fatal Error] Invalid command line.
Now i know that
#pragma option -w-asc // causes that...
Hi All.
I have a problem with assembler statemets nasted in my source code. I spend some time reading help on asm, _asm , __asm directives. In my program i wrote such simple instruction:
asm mov ax,5
But when i run it i see following warning & error:
[C++ Warning] Unit1.cpp(14): W8002...
Hi All.
Sometimes my project consist of many object modules and i decided replace them with just one static library. I have done so by way of Tlib.exe furnished with each environment. Ready "mylib.lib" was placed in current directory, I hadn't forgotten to add current directory to a...
Hi ALL.
Ok I'd better begin from the first :).
I create an array of panels using the following function:
void __fastcall TForm1::butt1Click(TObject *Sender)
{
for(int i=0 ; i < 5 ; i++)
{
array[i] = new TPalel(this);
array[i]->setBounds(40*i,40*i,50,30);
array[i]->Tag = i...
Thanks for your help arcbkc.
I decided to use TShape in my program. Actually my application is similar to Simulink that works with Matlab.
It is a kind of interface for steering certain machine
Sorry for img->InsertControl(img); :)
Originally i used this->InsertControl(img); & i tryed to modify...
Hi All !
I have a problem with my image (img). I create it when i click on (butt1) :
TImage *img;
.
.
.
void __fastcall TForm1::butt1Click(TObject *Sender)
{
if((img = new TImage(this))!=NULL)
{
img->SetBounds(0,0,300,10);
img->Canvas->Brush->Color = clGreen...
I realize that the condition:
if((IMG = new TImage(this))!=NULL) ShowMessage("Error ! [cannot create it]");
is incorrectly written [or upside down :)] ( '!=' replace '==' )
Im my application i needs to create & delete images during runtime. I've been told that every visible object...
I have two buttons on the form (butt1 and butt3).
when i click on butt1 i start the following fuction :
void __fastcall TForm1::butt1Click(TObject *Sender)
{
if((IMG = new TImage(this))!=NULL) ShowMessage("Error ! [cannot create it]");
IMG->SetBounds(10,10,60,60)...
My problem concerns mouse pointer image.
On the form i have a panel (which name is 'pan') and when i click on it OnMouseDown event is called immediately:
void __fastcall TForm1::panMouseDown(TObject *Sender, TMouseButton Button,
TShiftState Shift, int X, int Y)
{
pan->Cursor = crDrag...
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.