Gamestudio Links
Zorro Links
Newest Posts
FXCM demo test failed
by qin. 01/13/26 02:32
Camera always moves upwards?
by NeoDumont. 01/12/26 09:39
Alpaca Plugin v1.5.2 Release
by kzhao. 01/11/26 13:42
Alpaca Plugin v1.4.0
by kzhao. 01/11/26 13:38
separating groups of 3 digits by a comma
by joe_kane. 01/11/26 00:01
MRC.c and WFO
by joe_kane. 01/10/26 23:58
BarOffset (default = 940 for daily bars?
by joe_kane. 01/10/26 23:46
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (AndrewAMD, kzhao, qin), 21,501 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
promfast, joe_kane, Namitha_NN, Syndrela, agasior
19190 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