Instead of adding the radio buttons as Items, why not actually place RadioButtons onto your radio group box. Then say you have RadioButton1..4 and you want to make RadioButton3 invisible, just do:
RadioButton3->Visible=false;
Or with items, you'll need to delete the item that you no longer...
ShowModal() transfers control to DebugPage so that the ModalResult can be returned and evaluated. The subsequent code isn't executed until DebugPage is closed. If you really need to show the form Modally, then you need to populate the form with any values you want to see before the ShowModal...
Take a look at the left and top properties, my guess would be that one or both of these have coordinates placing your form outside of your actual screen area.
That's close 2ffat, but actually, randomize() seeds the random number generator for you in a pseudo-random way. random(N) returns a random number from 0 to N-1, so random(100) returns a random number that is < 100 and >= 0.
So if I understand you right, you have 2 images, one directly on top of the other, and behind them is a panel. When the mouse moves over Image1, you want to hide it and show Image2, then when the mouse leaves the images, you want to hide Image2 and show Image1. If that's correct, then your code...
>> The times are stored as hex values.
Stored In what type of variable, one of the flavors of int? If so, they're not stored as hex values, they're stored as binary values.
>> When I convert the times from hex to integer and then convert them into seconds, I get an entirely different value...
>> I need help in generalising a code to implement Copy function for the text given in the TMemo for a small project.
When you say "Copy", do you mean that you want to copy the text to the Windows Clipboard? If so:
Memo1->CopyToClipboard();
Note that CopyToClipboard() will only copy...
>> I am using the built-in PHP session functions and want to store that data in a MySQL db. Any ideas on how to do it?
The answer to your question is Yes I'm sure a bunch of us have ideas on how to do it. I don't think that's the answer that you want though. You didn't give any information to...
You're calling a MySQL function:
Sentence(SentenceManner)
But Sentence isn't a valid mysql function.
I know this isn't the MySQL forum, so correct me if I'm wrong, but it makes no sense to use a WHERE clause in an INSERT statement. It doesn't look like you actually want to insert a row in...
>> getc() doesnt returns the signedchar.it returns the unsigned char.
Actually, getc() returns a signed int, not a char (signed or unsigned), which means it can return values of 0-255 for your ascii characters or it can return -1 which is EOF. ascii 255 is not the same as EOF, but it appears...
Your problem is that you are mixing signed and unsigned variables. getc returns a signed integer, but your variable c is an unsigned char. getc doesn't ever return 255, it returns -1 (EOF) on end of file, but as I mentioned earlier, -1 (EOF) when assigned to an unsigned char becomes 255. To...
That is true, sometimes (one of you compiler gurus correct me if I'm wrong). If you have a compiler that performs good alias analysis, in the examples above both the reference and symbolic constant would ultimately be handled identically. The only difference is when each is replaced by the...
> If an alias isn't a reference variable, then how do i declare an alias?
You're making the concept of an alias more difficult than it is. There is no strict definition of an alias in C++, an alias is a general concept, not a specifically defined type. In the case of a reference, you have 2...
Actually if you look closely, they are not the same. I said a reference is an alias, I didn't say an alias is a reference. A reference variable is an alias to an actual variable, but an alias is not a reference variable.
Alias just means a different name for the same thing. You can create...
You mean like Form1->Print()? That should print everything on your form to your default printer.
If you need more control over printing, you can print directly to the printer canvas. There's quite a bit to controlling the printer directly, take a look at the Printer() object (<#include...
A reference is an alias.
If I have the following code:
int y;
int &x = y; // x is a reference to or alias of y
Now anything that I do to x (like x=10) is really done to y. x (which is a reference variable) is just an alias for y. Of course you've probably googled to find this info by now...
Ok, Vinay, the eof character most likely isn't 255, I think you're referring to the value of EOF, which is generally -1. The Hex equivalent of -1 is 0xFF, which if is assigned to an unsigned char becomes 255, which is also 0xFF. EOF is the value that is returned by file i/o functions (i.e...
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.