Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
2 registered members (TipmyPip, 1 invisible), 18,731 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
slider question #271245
06/11/09 23:57
06/11/09 23:57
Joined: Jun 2009
Posts: 148
G
gamingfan101 Offline OP
Member
gamingfan101  Offline OP
Member
G

Joined: Jun 2009
Posts: 148
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.
Re: slider question [Re: gamingfan101] #271254
06/12/09 03:55
06/12/09 03:55
Joined: Jul 2008
Posts: 553
Singapore
delinkx Offline
User
delinkx  Offline
User

Joined: Jul 2008
Posts: 553
Singapore
the digits correspond to the variable "speed". the movement of the slider, modifies the values of the variable accordingly. n since u are displaying tat value on the panel. moving the slider will accordinly modify that digits.


A7 commercial Team / VC++ 2008 Pro
homepage | twitter | facebook

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1