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
5 registered members (Dico, AndrewAMD, TipmyPip, NewbieZorro, Grant), 16,707 guests, and 5 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
remove buttons #348125
11/22/10 21:38
11/22/10 21:38
Joined: Mar 2006
Posts: 3,538
WA, Australia
J
JibbSmart Offline OP
Expert
JibbSmart  Offline OP
Expert
J

Joined: Mar 2006
Posts: 3,538
WA, Australia
It's very convenient to be able to add buttons to a PANEL on the fly with pan_setbutton, but is there a way to dynamically remove buttons?

I couldn't find anything in the manual, and the only alternative I can think of is removing and re-building the PANEL manually without the button I want to remove, but that's really ugly.

Does anyone have any better ideas?

Jibb


Formerly known as JulzMighty.
I made KarBOOM!
Re: remove buttons [Re: JibbSmart] #348126
11/22/10 21:44
11/22/10 21:44
Joined: May 2007
Posts: 2,043
Germany
Lukas Offline

Programmer
Lukas  Offline

Programmer

Joined: May 2007
Posts: 2,043
Germany
Use LBGUI. grin

Or, create a system that stores which buttons you still need on a panel and which you don't. You can hide the obsolete ones by giving them emtpy bitmaps and NULL-pointers as function. Then, when you create a new button, just overwrite an obsolete one.

Re: remove buttons [Re: Lukas] #348127
11/22/10 21:55
11/22/10 21:55
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Quote:
Use LBGUI.

Sorry for off-topic, but LBGUI is really awesome! wink
The functionality, the individual flags and the manual are all very nice and well done!
I've just built a simple editor using LBGUI (which I will release soon), it's so easy with your header. wink


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: remove buttons [Re: Lukas] #348128
11/22/10 21:56
11/22/10 21:56
Joined: Mar 2006
Posts: 3,538
WA, Australia
J
JibbSmart Offline OP
Expert
JibbSmart  Offline OP
Expert
J

Joined: Mar 2006
Posts: 3,538
WA, Australia
I definitely considered using LBGUI for my game, but I can't remember why I decided against it. I think it was just that I wanted to stick with something I'm already familiar with.
Quote:
Or, create a system that stores which buttons you still need on a panel and which you don't. You can hide the obsolete ones by giving them emtpy bitmaps and NULL-pointers as function. Then, when you create a new button, just overwrite an obsolete one.
Ah yes. That's pretty straight-forward. Thanks laugh

Jibb


Formerly known as JulzMighty.
I made KarBOOM!

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