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
3 registered members (NewbieZorro, TipmyPip, 1 invisible), 19,045 guests, and 8 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
Creating a PANEL run time #319950
04/18/10 22:23
04/18/10 22:23
Joined: Jun 2005
Posts: 11
turkey
TalontheLord Offline OP
Newbie
TalontheLord  Offline OP
Newbie

Joined: Jun 2005
Posts: 11
turkey
Hi,
I started programming with Lite-C two days ago trying Workshop tutorials. I wanted to create a PANEL as run-time like this:
----------------------------------------------
PANEL* panel_for_3d; // defination
..................
...................
if we press on a button, following code is activated in programme
------------------------------------------
panel_for_3d=pan_create("bmap=main2.pcx",4);
panel_for_3d.pos_x=560;
panel_for_3d.pos_y=420;
panel_for_3d.flags= SHOW;
---------------------------------------------
It works very well.. No problem. But then, I wanted to put a vertical slider on this panel using "vslider". But I got complier error message.. I couldn't find
any way to put vslider on this panel. For example, following code was useless:
panel_for_3d.vslider (16, 71, 90, "slider.pcx", 20, 100, slider_var);

Can anyone help me please? I like this enginee very much but I think, It should have more information for beginners. Thanks in advence..


dart
Re: Creating a PANEL run time [Re: TalontheLord] #319951
04/18/10 22:24
04/18/10 22:24
Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
Espér Offline
Expert
Espér  Offline
Expert

Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
try pan_setslider

See manual here: http://www.conitec.net/beta/pan_setslider.htm


Selling my Acknex Engine Editions (A7 Com & A8 Pro):
>> click here if you are interested <<
Re: Creating a PANEL run time [Re: Espér] #319952
04/18/10 22:29
04/18/10 22:29
Joined: Aug 2007
Posts: 1,922
Schweiz
Widi Offline
Serious User
Widi  Offline
Serious User

Joined: Aug 2007
Posts: 1,922
Schweiz
Or set the vslider in the pan_create line:
panel_for_3d=pan_create("vslider = 16, 71, 90, "slider.pcx", 20, 100, slider_var;bmap=main2.pcx;",4);

Re: Creating a PANEL run time [Re: Espér] #319953
04/18/10 22:32
04/18/10 22:32
Joined: Jun 2005
Posts: 11
turkey
TalontheLord Offline OP
Newbie
TalontheLord  Offline OP
Newbie

Joined: Jun 2005
Posts: 11
turkey
Wooow.. Amazing speed.. Thank yo so much.. I will try it..


dart
Re: Creating a PANEL run time [Re: Widi] #319956
04/18/10 22:55
04/18/10 22:55
Joined: Jun 2005
Posts: 11
turkey
TalontheLord Offline OP
Newbie
TalontheLord  Offline OP
Newbie

Joined: Jun 2005
Posts: 11
turkey
It was wonderful using of this command like this. It works very well now.. Thank you very much..


dart

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