Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/06/23 11:29
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
7 registered members (3run, miwok, AndrewAMD, Quad, TipmyPip, fairtrader, 1 invisible), 637 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
BMAP* arrays in button() ? #284110
08/11/09 18:56
08/11/09 18:56
Joined: Jul 2009
Posts: 3
Colorado, United States
G
Gil_Villarreal Offline OP
Guest
Gil_Villarreal  Offline OP
Guest
G

Joined: Jul 2009
Posts: 3
Colorado, United States
Was wondereing if anyone has experience using arrays of BMAP*'s inside the button() function?

Example:

BMAP* buttonBmp[10];

buttonBmp[0] = bmap_create("myImage.bmp");

PANEL* buttonPanel = {
layer = 3;
flags = OVERLAY;
button(10,10,buttonBmp[0],buttonBmp[0],buttonBmp[0],BUTTON_CLICKED,null,null);
}

I'm getting a compile error stating: 'Bitmap unknown buttonBmp'

Appreciate the help!

Re: BMAP* arrays in button() ? [Re: Gil_Villarreal] #284139
08/11/09 21:36
08/11/09 21:36
Joined: Aug 2007
Posts: 1,922
Schweiz
Widi Offline
Serious User
Widi  Offline
Serious User

Joined: Aug 2007
Posts: 1,922
Schweiz
For that you have to use
pan_setbmap (buttonPanel,3,1.0,buttonBmp[0]);

The engine first initials the Panels and AFTER it create the buttonBmp[0], so the engine don`t know the BMAP at the moment of creating the Panel...

Re: BMAP* arrays in button() ? [Re: Widi] #284165
08/12/09 00:56
08/12/09 00:56
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline
Expert
EvilSOB  Offline
Expert

Joined: Feb 2008
Posts: 3,232
Australia
I concur...

I spent a LOT of time on this issue previous to set_bmap, and never found a way.


"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial
Re: BMAP* arrays in button() ? [Re: Gil_Villarreal] #284854
08/15/09 14:07
08/15/09 14:07
Joined: Jul 2009
Posts: 3
Colorado, United States
G
Gil_Villarreal Offline OP
Guest
Gil_Villarreal  Offline OP
Guest
G

Joined: Jul 2009
Posts: 3
Colorado, United States
Widi and EvilSOB:

Thanks for your direction with this problem. I implemented your suggestion and was able to make it work. Thanks again!


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