Gamestudio Links
Zorro Links
Newest Posts
Executing Trades on Next Bar Open
by vicknick. 06/13/24 08:51
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (Joey, flink, AndrewAMD), 1,226 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19059 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Change BMP durring runtime. #243840
01/01/09 03:07
01/01/09 03:07
Joined: Sep 2008
Posts: 69
U
upsidedownman Offline OP
Junior Member
upsidedownman  Offline OP
Junior Member
U

Joined: Sep 2008
Posts: 69
Hi, i was trying to change a BMP to another BMP like this bmp_one = bmp_two;
But this doesn't work, is there anyway to do this? I really don't wanna make 100 different panels.
Thanks.

Re: Change BMP durring runtime. [Re: upsidedownman] #243874
01/01/09 11:13
01/01/09 11:13
Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Xarthor Offline
Expert
Xarthor  Offline
Expert

Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Either you define 100 different bmaps and assign them to one (or more) panel(s) at runtime via:
my_panel.bmap = my_bmap42;

Or you could use "bmap_load": http://www.conitec.net/beta/abmap_load.htm
To load a new bitmap into an old bmap object.
Example:
Code:
BMAP* my_bitmap;

function load_NewBitmap()
{
  bmap_load(my_bitmap,"image02.tga",1);
}


hope this helps

Re: Change BMP durring runtime. [Re: Xarthor] #243881
01/01/09 12:26
01/01/09 12:26
Joined: Apr 2008
Posts: 586
Austria
Petra Offline
Support
Petra  Offline
Support

Joined: Apr 2008
Posts: 586
Austria
Or you use a pointer

BMAP* bmap1 = "image1.tga";
BMAP* bmap2 = "image2.tga";

mypanel.bmap = bmap1;
mypanel.bmap = bmap2;


Re: Change BMP durring runtime. [Re: Petra] #243896
01/01/09 15:09
01/01/09 15:09
Joined: Sep 2008
Posts: 69
U
upsidedownman Offline OP
Junior Member
upsidedownman  Offline OP
Junior Member
U

Joined: Sep 2008
Posts: 69
OK thanks all its working know


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