Gamestudio Links
Zorro Links
Newest Posts
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
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (degenerate_762, NewtraderX), 856 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
LucasJoshua, Baklazhan, Hanky27, firatv, wandaluciaia
19054 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
pan_setbmap #265077
05/10/09 04:07
05/10/09 04:07
Joined: Jan 2009
Posts: 38
Anonymous2009 Offline OP
Newbie
Anonymous2009  Offline OP
Newbie

Joined: Jan 2009
Posts: 38
I wish to change the bmap of a panel, can it be used on a normal panel that is NOT button, slider, window or needle?

Re: pan_setbmap [Re: Anonymous2009] #265102
05/10/09 10:05
05/10/09 10:05
Joined: Jul 2008
Posts: 1,178
England
M
MrGuest Offline
Serious User
MrGuest  Offline
Serious User
M

Joined: Jul 2008
Posts: 1,178
England
hey, if i've understood you correctly, just change panel.bmap
Code:
BMAP* new_bmp = "whatever.bmp"
BMAP* old_bmp = "somethingelse.bmp"

PANEL* pnl_this = {
  bmap = old_bmp;
  flags = SHOW; //might be flags = VISIBLE; depends on the version you're using
}

void main(){
  wait(-3)
  pnl_this.bmap = new_bmp;
}

code's untested though hope it helps


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