Chrysaor
asked on
Simple C++ questions concerning Borland C++ Builder
1. I want to make the caption of label to be "The sum is:" SUM, where SUM is an integer. Label1->Caption = "The sum is" + SUM; doesn't work..
2. How do I change line in a label caption?
(these two questions are for borland c++ builder)
Thanks
2. How do I change line in a label caption?
(these two questions are for borland c++ builder)
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
>> It doesn't change the line with \n ..
What do you mean ? What do you see ?
What do you mean ? What do you see ?
Write
int intValue = 5;
Label1->Caption = "text" + AnsiString(intValue);
You can define WordWrap = true for the Label so it wraps the text if it is too long to fit into the current line. Or make 2 separate labels ;)
int intValue = 5;
Label1->Caption = "text" + AnsiString(intValue);
You can define WordWrap = true for the Label so it wraps the text if it is too long to fit into the current line. Or make 2 separate labels ;)
ASKER