Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to accede to options of some objects?

Status
Not open for further replies.

SLider3

Programmer
Jun 17, 2003
56
PT
Hi

I´m trying to put multiple languages in my program and to do that i need to change Captions of some objects and other things. Well my problem is chnging the caption of some ojbects.

I want to change:
- the caption of the tabs of a TPageControl
- the items of TComboBox

I also want to accede to the Items of a PopupMenu1 and dont know how.

Please give me examples of a way to do all this.
Thanks in advance.
 
ComboBox1->Items->Strings [0] = "text";
PageControl1->Pages[0]->Caption = "text";
File1->Caption = "text";

tomcruz.net
 
Create a file for each supported langauge containing all the phrases the program uses. Have some way to match up phrases, be it line number or some tag in your (the developer's) langauge. When the user of the program selects the langauge, either load everything from the corresponding file and set everything, or remember the selected langauge and do load stuff from the proper file when needed.
 
You can do it by internationalizing your project.

In the Main menu-> project-> languages- >add
the you'll access to a wizard, where you can translate every text that your program includes.(error messages, object's captions, etc)

Check the documentation and the example that comes with your bcb disks

--- LastCyborg ---
 
butthead wrote
File1->Caption = "text";
What is this for?

@butthead
Thanks. The TPageControl and the TComboBox are done.
I still don't know how to change the propreties of the Items (the Menu) of my PopupMenu1. Can you help me?

@chipperMDW
I´m already puting all the phrases in one single file. :)

@lastcyborg
Thanks for your tip. I'll look it.
 
Well...i found a way to do what i want.
Thanks anyway.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top