Gamestudio Links
Zorro Links
Newest Posts
[MED] Import from FBX (2010) missing!!!
by rayp. 11/03/26 14:33
What are you working on?
by rayp. 11/02/26 13:57
No connection to MT4
by JeyKey II. 10/29/26 09:34
Zorro plugin for Hyperliquid.xyz
by opm. 10/28/26 13:50
Icon "OP"
by JeyKey II. 10/27/26 07:03
ZorroGPT
by TipmyPip. 10/26/26 08:09
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
1 registered members (AndrewAMD), 7,058 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
MaliceTheMaker, Haitao_Ren, JimSimons, julienp, julienper
19248 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