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
1 registered members (TipmyPip), 18,388 guests, and 6 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
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 | 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