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
3 registered members (TipmyPip, AndrewAMD, NewbieZorro), 16,055 guests, and 7 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
Window Question #205683
05/07/08 23:16
05/07/08 23:16
Joined: May 2007
Posts: 185
Netherlands
SurudoiRyu Offline OP
Member
SurudoiRyu  Offline OP
Member

Joined: May 2007
Posts: 185
Netherlands
Hi fólk's,

I was wondering if it is possible to replace a window through a button click ?

This is what the window is:
 Code:
panel show_count
{
	layer = 150;
	window (575,55,128,128,count_tga,SlideCoordCount,0);
	flags = overlay,refresh,TRANSLUCENT;
}
 


now i want the 575 to be the x of the panel i clicked
Same for the 55 that is for the y of the panel i clicked

i tryed allteady with var's parsing through but it gives number syntax error's >.<

or is there someway to do it like show_count.x = 575 ?

thnx allready,


-The Dragon's Eye is alway's watching you!-
Re: Window Question [Re: SurudoiRyu] #205761
05/08/08 16:21
05/08/08 16:21
Joined: Jul 2007
Posts: 959
nl
F
flits Offline
User
flits  Offline
User
F

Joined: Jul 2007
Posts: 959
nl
look under pan_setvar(PANEL*,var type,var num,var*) in the manual

it will do the trick i think


"empty"
Re: Window Question [Re: flits] #205804
05/08/08 22:05
05/08/08 22:05
Joined: May 2007
Posts: 185
Netherlands
SurudoiRyu Offline OP
Member
SurudoiRyu  Offline OP
Member

Joined: May 2007
Posts: 185
Netherlands
thnx it works setvar is only for the varX varY (the window position inside the window
pan_setpos(_dbg_pan,1,1,vector(20,30,0)); i needed to set its position.

Thnx again,

Greetzz.


-The Dragon's Eye is alway's watching you!-
Re: Window Question [Re: SurudoiRyu] #205829
05/09/08 00:15
05/09/08 00:15
Joined: Nov 2007
Posts: 1,143
United Kingdom
DJBMASTER Offline
Serious User
DJBMASTER  Offline
Serious User

Joined: Nov 2007
Posts: 1,143
United Kingdom
Do you want to move the whole panel or just the window?


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