Quote: yes you can use buttons and sliders in c++ and yes my code works perfectly in delphi.
No problem after converting your code to c++
but have you (tried) used digits ?
Digits just dont show up on the panel, buttons, sliders etc does.
why yes I have tried digits and they work in Delphi.
what this sample does it put 2 digits on a panel,
the 1st digit simply is a label "y POS". the 2nd digit is the actual
value for "y POS". I needed to use a place holder (time_fac) to actually
generate the panel and then replace it with the actual variable I wanted which
in this case is actually the y position of the panel.
Panel2 := pan_create('bmap = targ1.pcx;pos_x = 150;pos_y = 70;
flags=visible;
digits=10,50,"y POS",*,0,null;
digits=50,50,4,*,16,time_fac;',_VAR(2));
// this will replace the digit in our create string with our variable
// defined in our Delphi program
digits_set(Panel2,_VAR(2),@Panel2.pos_y);