Click here to Skip to main content
15,884,388 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Adding ActiveX Control Container to Win32 Window Pin
snacker21-Jun-09 20:38
snacker21-Jun-09 20:38 
GeneralRe: Adding ActiveX Control Container to Win32 Window Pin
snacker21-Jun-09 20:42
snacker21-Jun-09 20:42 
GeneralRe: Adding ActiveX Control Container to Win32 Window Pin
Stuart Dootson1-Jun-09 20:49
professionalStuart Dootson1-Jun-09 20:49 
GeneralRe: Adding ActiveX Control Container to Win32 Window Pin
snacker25-Jun-09 7:51
snacker25-Jun-09 7:51 
GeneralRe: Adding ActiveX Control Container to Win32 Window Pin
Stuart Dootson5-Jun-09 7:57
professionalStuart Dootson5-Jun-09 7:57 
GeneralRe: Adding ActiveX Control Container to Win32 Window Pin
Stuart Dootson1-Jun-09 20:52
professionalStuart Dootson1-Jun-09 20:52 
GeneralRe: Adding ActiveX Control Container to Win32 Window Pin
snacker25-Jun-09 7:55
snacker25-Jun-09 7:55 
QuestionAppending a number to the end of a string to display in GLUI_ EDITTEXT_TEXT Box? Pin
bushimports26-May-09 11:41
bushimports26-May-09 11:41 
What I am trying to do is when I click a button it draws a cube or whatever and displays the name of the object in a
GLUI_EDITTEXT_TEXT box.I also want to append a number to the end of the object name and increment the number each time a new object is drawn. I have everything working ok except the name and number will only display one character at a time in the textbox and increments the position each time the draw button is pushed. Much Thanks to anyone who will/can help with this. Jody Bush
Below is part of the code I have for this thing.
//My variables
int Cnum = 1;
int Pnum = 1;
char Cube[sizeof(GLUI_String)] ={" "};
char Plane[sizeof(GLUI_String)] ={" "};
char Name;

//my glui edittext 
Name1 = subwin->add_edittext( "Name", GLUI_EDITTEXT_TEXT,&Name); 

//my callback functions
if(control == DRAWPLANE_ID){
drawplane = true;
sizex = 1.0;
sizey = 1.0;
sizez = 0.0;
itoa(Pnum, Plane, 10);
sprintf(Plane,"Plane %d",Cnum);
Name = Plane[Pnum];
Name1->get_text();
Pnum++;
}

if(control == DRAWCUBE_ID){
drawcube = true;
sizex = 1.0;
sizey = 1.0;
sizez = 1.0;
itoa(Cnum, Cube, 10);
sprintf(Cube,"Cube %d",Cnum);
Name = Cube[Cnum];
Name1->get_text(); 
Cnum++;
}

AnswerRe: Appending a number to the end of a string to display in GLUI_ EDITTEXT_TEXT Box? Pin
Stuart Dootson26-May-09 12:56
professionalStuart Dootson26-May-09 12:56 
QuestionHow to save javascript file Pin
yunpil26-May-09 11:22
yunpil26-May-09 11:22 
AnswerRe: How to save javascript file Pin
David Crow26-May-09 17:00
David Crow26-May-09 17:00 
AnswerRe: How to save javascript file Pin
ThatsAlok26-May-09 22:13
ThatsAlok26-May-09 22:13 
Questionget the differents data from a list control Pin
MrKBA26-May-09 8:55
MrKBA26-May-09 8:55 
QuestionRe: get the differents data from a list control Pin
David Crow26-May-09 9:09
David Crow26-May-09 9:09 
AnswerRe: get the differents data from a list control Pin
MrKBA26-May-09 9:12
MrKBA26-May-09 9:12 
QuestionRe: get the differents data from a list control Pin
David Crow26-May-09 9:14
David Crow26-May-09 9:14 
AnswerRe: get the differents data from a list control Pin
MrKBA26-May-09 9:19
MrKBA26-May-09 9:19 
GeneralRe: get the differents data from a list control Pin
David Crow26-May-09 9:27
David Crow26-May-09 9:27 
GeneralRe: get the differents data from a list control Pin
MrKBA26-May-09 9:41
MrKBA26-May-09 9:41 
QuestionRe: get the differents data from a list control Pin
Maximilien26-May-09 9:30
Maximilien26-May-09 9:30 
AnswerRe: get the differents data from a list control Pin
MrKBA26-May-09 9:33
MrKBA26-May-09 9:33 
GeneralRe: get the differents data from a list control Pin
Maximilien26-May-09 9:34
Maximilien26-May-09 9:34 
GeneralRe: get the differents data from a list control Pin
David Crow26-May-09 9:36
David Crow26-May-09 9:36 
AnswerRe: get the differents data from a list control Pin
MrKBA26-May-09 12:57
MrKBA26-May-09 12:57 
QuestionRe: get the differents data from a list control Pin
David Crow26-May-09 17:02
David Crow26-May-09 17:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.