Gamestudio Links
Zorro Links
Newest Posts
phantom() not defined in indicators.c
by jcl. 08/07/26 11:45
Pause button for evaluation shell?
by jcl. 08/07/26 11:43
Accepting new programming clients
by AndrewAMD. 08/06/26 21:25
Fun Arcade Car Physics (nfs style)
by Ezzett. 08/02/26 21:11
ZorroGPT
by TipmyPip. 07/31/26 22:56
Wolfram Mathematica with Zorro
by TipmyPip. 07/30/26 02:07
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
1 registered members (AndrewAMD), 1,531 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
riggi89, shuhari, KD1990, Student_64151, Koti
19222 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