Hi, ive created an image with a slider on it, and then it displays what the value is. Here is the code, and can some one please explain to me what makes the digits correspond with the slider? And also the cursor is my own image, but the real cursor itself is to the left of the bitmap cursor. So when i drag the slider, i have to move the cursor to the right of my slider.


////////////////////////////////////////////////////////////////////
#include <acknex.h>
#include <default.c>

////////////////////////////////////////////////////////////////////
var speed = 50;

BMAP* mouse_pcx = "smileycursor.bmp"; // bitmap used for the mouse pointer

////////////////////////////////////////////////////////////////////

function main()
{
video_mode = 7;
screen_color.blue = 150;
mouse_map = mouse_pcx;
mouse_mode = 4;
}

//////////////////////////////////////////////////////////////////////

PANEL* main_pan =
{
bmap = "Gilligan_panel.bmp";
pos_x = 150;
pos_y = 100;
vslider (30, 110, 90, "slider.pcx", 0, 100, speed);
digits (25, 90, 3, *, 1, speed);
flags = OVERLAY | VISIBLE;
}

//////////////////////////////////////////////////////////////////////

Last edited by gamingfan101; 06/12/09 00:53.

Sorry, im new. I have a tendency to ask really simple questions, so please be patient.