_VAR() is the delphi function I think for c++ it's just VAR(), Var is a reserved word in delphi so I had to dd a character.
yes you can use buttons and sliders in c++ and yes my code works perfectly in delphi.
here are some delphi examples, read the help file for info about
pan_create, pan_setevent so you can convert to c++
Code:
Var ThePos : Var_; // tracks value of our vslider
//create a vslider
//don't forget the ";" at the end of the command string !!!!
//we'll use pan_setver to use our variable ThePos for the value of the slider
Panel1 := pan_create('bmap = VScrollBox3.pcx;pos_x = 550;pos_y = 230;
vslider=1,1,230,ThumbNail3.pcx,1,100,0;',_VAR(1));
FlagOn(Panel1.flags,_VISIBLE or OVERLAY); // FlagOn is delphi fucntion
pan_setvar(Panel1,_VAR(4),_VAR(1.7),@ThePos);
// this example creates a button and assigns delphi functions to the events
Panel2 := pan_create('bmap = levelcode3.pcx;pos_x = 325;pos_y = 105;
flags=visible;button=15,20,
ThumbNail3.pcx,ThumbNail3.pcx,ThumbNail3.pcx,
Null,Null,Null;',_VAR(1));
FlagOn(panel2.flags,_VISIBLE or OVERLAY);
Panel2.event := @PanelClickEvent;
pan_setevent(Panel2,_VAR(3),_VAR(1),@ScrollBtnClicked);
pan_setevent(Panel2,_VAR(3),_VAR(1.1),@MouseLeaveEvent);
pan_setevent(Panel2,_VAR(3),_VAR(1.2),@MouseOverEvent);