• Advertisement

Archived

This topic is now archived and is closed to further replies.

form text

This topic is 5215 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

for the opening form i want to have a msg box where the player puts in his name and the name goes on the top bar (i dont know what to call it but it has the _ and X button on it) i can do the msg box but how do i change the text on the top bar to have it say the players name? thanks.

Share this post


Link to post
Share on other sites
Advertisement
There are many ways to do it.

What language are you using, what OS are you using?

Are you using a library, like GLUT, SDL, DirectX, for your windowing systems?

~~~~~
Adam & Eve "did not know right from wrong, therefore God could not punish them whenever they did all those things that really creeped him out." - Ghastly.
Download and play Slime King I.

Share this post


Link to post
Share on other sites
sorry, i was in a rush
im using VC++ 6 and its on XP home. im i am just using a basic library, nothing special

Share this post


Link to post
Share on other sites
quote:
Original post by james_14
sorry, i was in a rush
im using VC++ 6 and its on XP home. im i am just using a basic library, nothing special
Off the top of my head, MFC requires you to change the resources.

IF you are using CreateWindowEx(), it is the third parameter. I believe there is also a parameter in CreateWindow(), but you''ll have to use MSDN to find the parametors.

~~~~~
Adam & Eve "did not know right from wrong, therefore God could not punish them whenever they did all those things that really creeped him out." - Ghastly.
Download and play Slime King I.

Share this post


Link to post
Share on other sites
The bar you are thinking of is called the titlebar. The second parameter of CreateWindow() will allow you to set the text of the bar as will the function SetWindowText().


Colin Jeanne | Invader''s Realm

Share this post


Link to post
Share on other sites

  • Advertisement