* 671 Posts in 238 Topics by 74 Members Latest Member: pythagoras   **
IFSO PORTAL
  Advanced search
May 20, 2013, 01:40:06 am
HomeforumHelpSearchLoginRegister**
Recent Posts
[May 08, 2013, 10:38:33 pm]

[April 26, 2013, 02:00:31 pm]

[April 14, 2013, 12:39:49 pm]

[December 21, 2012, 06:13:17 am]

[November 13, 2012, 02:21:49 pm]

[August 28, 2012, 06:38:27 pm]

[May 28, 2012, 10:12:41 pm]

[May 05, 2012, 01:01:38 pm]

[May 03, 2012, 02:11:03 pm]

[April 30, 2012, 12:48:25 pm]
IFSO Portal  |  Forum  |  ifsoGUI  |  ifsoGUI Discussion  |  Topic: Hide Gadget « previous next »
Pages: [1] Go Down Print
Author Topic: Hide Gadget  (Read 4136 times)
Dabz
ifsoGUI Owner
Newbie
*
Offline Offline

Posts: 20


Programming Primate


View Profile WWW
« on: August 16, 2009, 11:39:40 am »

Anyway to hide a gadget, something like GUI.HideGadget(btnCancel)?

Dabz
« Last Edit: August 16, 2009, 11:50:30 am by Dabz » Logged
matibee
ifsoGUI Owner
Newbie
*
Offline Offline

Posts: 28



View Profile
« Reply #1 on: August 16, 2009, 12:04:59 pm »

The base gadget has SetVisible / GetVisible methods: http://www.ifsogui.com/howto/base-gadget

ps.  Welcome aboard dabz!
Logged
Dabz
ifsoGUI Owner
Newbie
*
Offline Offline

Posts: 20


Programming Primate


View Profile WWW
« Reply #2 on: August 16, 2009, 12:06:19 pm »

Yep, I saw that matibee matey, but how come the button gadget doesnt have the SetVisible method?

I'm using version 1.0... Is that the right one, as it states that all gadgets share the same properties of the base one, and a fair few arent there.

I also want to hide/show different gadgets at the same time, not globally as in, all or non, if you get me.

/waffle   Wink

Dabz

EDIT: I think I've got an air-lock.... I'm just sitting here looking at it and nowts clicking! Cheesy
« Last Edit: August 16, 2009, 12:18:07 pm by Dabz » Logged
matibee
ifsoGUI Owner
Newbie
*
Offline Offline

Posts: 28



View Profile
« Reply #3 on: August 16, 2009, 12:18:13 pm »

You should still be able to call btnCancel.SetVisible(false)  (I can, and I'm sure I'm using V1.0 too).

What do you mean by "aren't there"?  The gadgets are derived from ifsoGUI_Base so each gadget doesn't have to provide extra functionality when the base will suffice.
Logged
Dabz
ifsoGUI Owner
Newbie
*
Offline Offline

Posts: 20


Programming Primate


View Profile WWW
« Reply #4 on: August 16, 2009, 12:19:48 pm »

When I type btnCancel. Blides intellisense brings up 18 properties, and more notably, SetVisible isnt one of them!?!

EDIT: The only Set[blah] method is SetLabel, no more, no less!

Dabz
Logged
Dabz
ifsoGUI Owner
Newbie
*
Offline Offline

Posts: 20


Programming Primate


View Profile WWW
« Reply #5 on: August 16, 2009, 12:26:06 pm »

Shoot me now... Blides intellisense isnt picking up a handful of properties.. Which is a bit of a knacker my game is a bit of a monster now and I really need it to remember whats what!

Sorry for the false alarm fella's, its Ziggys fault!  Grin

That'll teach me about putting all my faith in a bit of coding tech! Cheesy

Dabz
Logged
matibee
ifsoGUI Owner
Newbie
*
Offline Offline

Posts: 28



View Profile
« Reply #6 on: August 16, 2009, 12:27:22 pm »

Ah, ok.  I haven't made the leap to Blide yet although the more work I do the closer I get, so let me know when it works Wink
Logged
TaskMaster
Administrator
Sr. Member
*****
Offline Offline

Posts: 462


TaskyZ
View Profile
« Reply #7 on: August 16, 2009, 12:27:35 pm »

Yep, I saw that matibee matey, but how come the button gadget doesnt have the SetVisible method?

I'm using version 1.0... Is that the right one, as it states that all gadgets share the same properties of the base one, and a fair few arent there.

I also want to hide/show different gadgets at the same time, not globally as in, all or non, if you get me.

/waffle   Wink

Dabz

EDIT: I think I've got an air-lock.... I'm just sitting here looking at and nowts clicking! Cheesy

OK, you see that buttons do have SetVisible, right?

As an example, the docs for the button won't include the SetVisible property, if it uses the base gadgets SetVisible.  Now, if SetVisible was different for a button for some reason, then it would be there in the docs.  Basically when I created the docs, I just copied the source code over to the html page and editted out the code.  The comments from the source became the description.  I know it can be better, but it is a lot of work, and spending time making the docs pretty is time I can't spend working on the code.   Wink

One day, the code will be mostly done, and I will get back to the docs.  But, thanks to matibee, that day is way off.  Grin  Just kidding matibee, I like your suggestions and look forward to the improvements.  Not too mention, no gadget will ever be the pain in the butt that this dang MCListBox is being.  Though it is very close to be being done now.  Just have to get 2 more child gadgets working.

Most of the time, when I start a new gadget, I get it done in a day or two, but I have spent about 3 weeks on this MCListBox.  It will be worth it, as it is going to be very useful, just as a Multi-Column listbox, where you can click a cell and a gadget (combobox, textbox, etc) appears to allow you to edit the value.  And as a full blown grid type gadget (without being able to put fancy code for the cells though).
« Last Edit: August 16, 2009, 12:30:45 pm by TaskMaster » Logged
TaskMaster
Administrator
Sr. Member
*****
Offline Offline

Posts: 462


TaskyZ
View Profile
« Reply #8 on: August 16, 2009, 12:28:58 pm »

Wow, this thread is like chat, you guys are posting every 15 seconds.  Smiley

I use BLIde and it is working for me.  Dabz, maybe you need to rebuild all modules in BLIde.  Also, when the intellisense pops up, on the bottom is a common and all selection.  Select All.  If you have common selected, it only lists ones you have used, I think.
Logged
Dabz
ifsoGUI Owner
Newbie
*
Offline Offline

Posts: 20


Programming Primate


View Profile WWW
« Reply #9 on: August 16, 2009, 12:34:37 pm »

Quote
Wow, this thread is like chat, you guys are posting every 15 seconds.

lol, I've built all modules and what not, still not picking it up... I think I updated Blide yesterday, maybe its broke something... Anyway, as long as it is actually there, its happy days! Wink

Dabz
Logged
Dabz
ifsoGUI Owner
Newbie
*
Offline Offline

Posts: 20


Programming Primate


View Profile WWW
« Reply #10 on: August 16, 2009, 01:01:02 pm »

Just reported the Blide problem:-

http://ziggybcn.proboards.com/index.cgi?action=display&board=bugs&thread=627

Hopefully, he'll know what the probs are! Smiley

Dabz

EDIT: Ohhh, I see you logged into the Blide forums too Tasky! Wink lol
« Last Edit: August 16, 2009, 01:02:46 pm by Dabz » Logged
Pages: [1] Go Up Print 
IFSO Portal  |  Forum  |  ifsoGUI  |  ifsoGUI Discussion  |  Topic: Hide Gadget « previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.17 | SMF © 2011, Simple Machines
TinyPortal v0.9.8 © Bloc
TechHead design by Bloc
Valid XHTML 1.0! Valid CSS!