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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

using multiple static text controls in the dialog editor

Status
Not open for further replies.

Manderin

Programmer
Dec 30, 2003
3
US
im creating a dialog in the dialog editor.. when dealing with static controls or group boxes, the editor puts an extra symbol in the (name) properties of the control. Well this is a problem. It seems when it runs out of symbols you cannot create more static text controls. I have thought of various ways around it, but i would rather not have to.. does anyone know why it does this or can anyone tell me how to fix it?

thanks,
Manderin
 
hmm, Could you say, which extra symbol? I believe you have choosen a language different by english.

Ion Filipski
1c.bmp
 
The extra symbol is located in the (name) part of the misc properties for the control. You type in the name for the control and if you look above it in the name, an extra symbol appears. example: ID (IDC_STATICTEXT) the name would say (IDC_STATICTEXT1) and i didnt put a 1 in the ID box... well... if you continue to create static text controls... eventually you cannot add any more. they will not appear at all.

thanks,
Manderin
 
Now I understand what is your problem. The name of some control must be unique. So, you must invent some unique name for each control. VisualStudio will never allow you to add many than one controls with the same name.

Ion Filipski
1c.bmp
 
Every static text control i create has a unique id, everytime i add a new text control or group box it puts some symbol there (only in the (name) box in the misc properties, not in the ID) whether its unique or otherwise. If you have microsoft visual studio.net i suggest you try it. Ive never been able to make the extra symbol go away and i cannot create new text boxes or group box because of this reason.

thanks,
Manderin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top