Project -> Options... -> Packages. Uncheck "Build with runtime packages".
Project -> Options... -> Linker: Linking: uncheck "Use Dynamic RTL"
Totte
Keep making it perfect and it will end up broken.
I did that simply by setting the ItemIndex to the item it should show.
Actual snip: cbbCOMport->ItemIndex = Counter;
Totte
Keep making it perfect and it will end up broken.
How much memory in the computer?
It could be a HD-memory swap-ting which stops everything as always.
Totte
Keep making it perfect and it will end up broken.
A Form has a number of "On..." events, ("OnResize", "OnActivate", "OnClick" and so forth) and what I'm looking for is an event that occurs when the Form has been moved to a new location on the screen.
The result would be that when i start my program the main form comes up as usual. If I then...
I have a program which consist of several forms which can be shown or not. I would like to be able to preserve a certain "look" with the different forms and thus i would like to save their position on the screen, this part is the easy and already done.
My problem is that i can't find an...
Thank You, works like a charm!
I'm just a little baffled that the versions and such are not existing like som sort of #define but never mind, this solution works and I'm fine with that.
Totte
Keep making it perfect and it will end up broken.
I understand the question as such:
The program starts and collect som variable and that variable determines the apperance of the main form, is this correct?
If it's correct there are a few ways that i come to thing about to solve it.
One is panels as c56791 suggests, placing them on top of...
WinXP, BCB6.
Have a project that the customer repeatly wants new ways of doing things. Mainly it's expansion of an existing project but i would like to be compatible so i don't need to copy and rename a lot.
I back-up with the correct names so now i have one problem:
I would like to read the...
Could it be that You're typing the value in and thus does NOT need the duble backslash?
"c:\\newpath" written as constant in the program will, in run-time, be "c:\newpath" whereas it will be interpeted as "c:\" '\n' "ewpath" (i.e. "c:\", Newline [never exist in ANSIstring]...) in "runtime"...
That file belongs to the TpaPro serial communication pack. Add the path to the project and it will work.
Totte
Keep making it perfect and it will end up broken.
I have a project which amongst other needs to read a Motorola Hex-file which is a text-reprensatation of binary datas. To speed up the program i simply read the size of the textfile, reserves memory for the whole file and reads into memory in one chunk.
From thereon it's almost the same: find a...
I use to declare them as:
char * Data[] = {"String1", "String2", "String3"};
That way Data[0] points on the first strings first character, to access the individual characters use *(Data[0] + Index) where 'Index' is the characternumber to pick.
Totte
Keep making it perfect and it will end up...
I have another approach but then i'm doing something different.
I read the file size, reserve a buffer of that size and read the whole file into that buffer and then closes the textfile.
Then i'm able to screen through the full text and pick whatever i need and when i'm done with the text i...
int event : 3; means that 'event' is 3 bits in an int.
If you need to conserve space you can do so:
struct
{
int End_Of_Line : 1;
int Start_Of_Line : 1;
int Something_Inserted : 1;
...
} Flag;
then you can access those in the usual manner 'Flag.End_Of_Line' and so forth.
I have...
Control panel->Folders->Filetypes
Then you register which program to activate by what extention.
Totte
Keep making it perfect and it will end up broken.
The constructor is the first, it runs when the program is started.
The "FormCreate" is run when the form comes from invisibel to visibel.
Totte
Keep making it perfect and it will end up broken.
The '!' means "the opposite" or "NOT".
Thus the statement means:
Set Timer->Enabled to the opposite state of what's in now.
True will become false and vice-versa.
Totte
Keep making it perfect and it will end up broken.
Must it be the character 'X'?
Would 2 lines drawn to form a X do the trick?
A textbos requires more space around it than the textsize gives.
Looked ut TShape in the BCB6 help file:
"If the shape is only part of the image of a custom control, use the methods of the control’s canvas instead."...
Well.... off the top of my head i would have printed out the square-number and the location of the textbox with the 'X' in, it seems to be a calculating problem.
If the calculating are correct it's time to test the placing of the 'X' through a for(;;) loop with a delay for each 'X' placed...
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.