Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
3 registered members (AndrewAMD, Grant, Neb), 908 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Panels #114475
02/28/07 21:15
02/28/07 21:15
Joined: Jun 2006
Posts: 214
Germany, NRW
T
TheThinker Offline OP
Member
TheThinker  Offline OP
Member
T

Joined: Jun 2006
Posts: 214
Germany, NRW
Hi,
Is it possible to display ONE predefined panel several times?
I want to create a "tileplotter" in 2d.
What are the most improtant changes for panels from version 6.1 to 6.50
MfG,
Patrick

Re: Panels [Re: TheThinker] #114476
03/01/07 06:28
03/01/07 06:28
Joined: Jun 2004
Posts: 2,234
Wisconsin USA
FoxHound Offline
Expert
FoxHound  Offline
Expert

Joined: Jun 2004
Posts: 2,234
Wisconsin USA
Not so easy no, you can use one bmap in several panels. You can create panels on the fly and display them all over the page, which is probably the most important panel update since 6.1.


---------------------
There is no signature here.


QUIT LOOKING FOR ONE!
Re: Panels [Re: FoxHound] #114477
03/01/07 20:51
03/01/07 20:51
Joined: Jun 2006
Posts: 214
Germany, NRW
T
TheThinker Offline OP
Member
TheThinker  Offline OP
Member
T

Joined: Jun 2006
Posts: 214
Germany, NRW
Thank you for answering my question.
But one more question:
What do you mean with "create panels on the fly"?
Perhaps something like that?

function panels
{
paneö* pointer(bla);
}
MfG
Patrick

Re: Panels [Re: TheThinker] #114478
03/01/07 21:00
03/01/07 21:00
Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Xarthor Offline
Expert
Xarthor  Offline
Expert

Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Take a look at:
pan_create()

Example code:
Code:

bmap my_bmap = <my_image.bmp>;

var panel_pointer[20];

function create_panels()
{
var i = 0;
while(i < 20)
{
panel_pointer[i] = pan_create("bmap = my_bmap;", 1);
i += 1;
}
}



EDIT:
Forgot how to access thoses panel pointers which were stored in the array:
Code:

panel* temp_pan;

function set_panel(_id,_x,_y)
{
temp_pan = panel_pointer[_id];
temp_pan.x = _x;
temp_pan.y = _y;
}



Last edited by Thunder; 03/01/07 21:04.
Re: Panels [Re: Xarthor] #114479
03/01/07 21:09
03/01/07 21:09
Joined: Jun 2006
Posts: 214
Germany, NRW
T
TheThinker Offline OP
Member
TheThinker  Offline OP
Member
T

Joined: Jun 2006
Posts: 214
Germany, NRW
Ahh, thats greate. This is what i need.
But it is hard to find in the manual. i was able find it only with the search function...
Thank you,
MfG
Patrick

edit:

Oh, i have red the entry about pan_create. Isn't it Lite-C? Because C-Script is extra mentioned.

edit2:

Oh sorry, I was a little bit confused... It's c-script

Last edited by TheThinker; 03/01/07 21:34.
Re: Panels [Re: TheThinker] #114480
03/02/07 01:30
03/02/07 01:30
Joined: Jun 2004
Posts: 2,234
Wisconsin USA
FoxHound Offline
Expert
FoxHound  Offline
Expert

Joined: Jun 2004
Posts: 2,234
Wisconsin USA
"pan_create" offers a lot, you can create panels just the same as defining them in c-script, with buttons and sliders and anything else you want, you just have to plan it a bit better.


---------------------
There is no signature here.


QUIT LOOKING FOR ONE!

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