Gamestudio Links
Zorro Links
Newest Posts
How to buy tomorrow at open?
by frutza. 06/01/23 19:58
Adding Position to Current Trade
by AndrewAMD. 05/30/23 10:34
Unable to change multiplier of contract
by vicknick. 05/30/23 06:56
Wrong Definition of Sharpe Ratio in Zorro?
by vicknick. 05/29/23 06:32
Backtest strategy on bitcoin/crypto
by JamesHH. 05/26/23 04:36
Return type of floor()
by AndrewAMD. 05/25/23 14:17
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
1 registered members (AndrewAMD), 1,065 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
BInnacle, androsa, XquicksnowX, danishinvest, Trail
18942 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 | chip programmers | 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