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,449 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
Recreating panle #247682
01/22/09 05:43
01/22/09 05:43
Joined: Jan 2009
Posts: 9
Russia
O
Olorin Offline OP
Newbie
Olorin  Offline OP
Newbie
O

Joined: Jan 2009
Posts: 9
Russia
Hi.

In my programm i should to switch between to screen. On first screen i have a panel with 3 buttons. I create this panel in run-time mode. When i press a button on the panel i remove this panel panel and create a new panel. But on the screen i see a new panel and 2 buttons from the old panel. Buttons is not active. I dont know how to refresh a screen.
My code:

PANEL *Start_pan;
PANEL *Top_pan;

char* sStart_pan = "bmap = Start_pan.jpg;
button (381, 229, btnStart_d, btnStart_u, btnStart_u, Init, NULL, NULL);
button (381, 363, btnSett_d, btnSett_u, btnSett_u, Change_Mode, NULL, NULL);
button (381, 493, btnExit_d, btnExit_u, btnExit_u, Change_Mode, NULL, NULL);
flags = OVERLAY;";


char* sTop_pan = "bmap = top_panel.jpg;
pos_x = 0; pos_y = 0;
button (381, 229, btnStart_d, btnStart_u, btnStart_u, NULL, NULL, NULL);
button (381, 363, btnSett_d, btnSett_u, btnSett_u, NULL, NULL, NULL);
flags = OVERLAY;

function Init()
{
if (Start_pan!=NULL) pan_remove(Start_pan);
//if (Top_pan!=NULL) pan_remove(Top_pan);
level_free();
wait(500);
wait(500);
Top_pan = pan_create(sTop_pan,1);
set(Top_pan, VISIBLE);
level_load("");
}

function main()
{

video_mode = 8;
video_screen = 2;
mouse_mode = 4;
Start_pan = pan_create(sStart_pan,1);
}

Re: Recreating panle [Re: Olorin] #247801
01/22/09 17:27
01/22/09 17:27
Joined: Jan 2009
Posts: 9
Russia
O
Olorin Offline OP
Newbie
Olorin  Offline OP
Newbie
O

Joined: Jan 2009
Posts: 9
Russia
Hello, I have already found a solution.
Topic is closed


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