Hello.

Im working in a interface where the user must type text into text boxs.

For these a create in runtime, a panel entity
then add the digits apart, 5, 10, 20 etc..

IM using this:
//define strings global
STRING* contact_data1="empty";
STRING* contact_data2="empty";
STRING* contact_data3="empty";


function show_textbox(PANEL* p, int x , int y,STRING* a){
pan_setdigits(p,0,x,y,"%s",font_arialb_17,1,a);
//a is the string passed on the previous called function

}

for adding the digit i use:
int line_space=0;

line space+=17 +3;
show_textbox(add_inputs_pan,0 ,line space,contact_data1);

line space+=17 +3;
show_textbox(add_inputs_pan,0 ,line space,contact_data2);

line space+=17 +3;
show_textbox(add_inputs_pan,0 ,line space,contact_data3);


The problem is the digit never appears..

Now i know i used this before on
panelX=pan_create("..digits.. with the string pointer as last parameter...)

from the manual.. its said:
pan_setdigits(PANEL*, var num, var x, var y, STRING* format, FONT* font, var factor, var* pv)

and pv must be a global var* pointer. Other parameter types are not accepted.

=== so:
How do i solve this, ? Once i want to place the digits strings in specific locations, and not constrained to the TEXT* automatic space , between lines??

Last edited by MMike; 07/04/10 19:18.