# iOSToolButton.enabled

**URL:** <https://forum.xojo.com/t/iostoolbutton-enabled/21236>\
**Category:** iOS\
**Created:** [December 26, 2014, 11:22pm UTC](https://forum.xojo.com/t/iostoolbutton-enabled/21236 "2014-12-26T23:22:13Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jim\_Meyer](https://forum.xojo.com/letter_avatar_proxy/v4/letter/j/df788c/32.png) [@Jim\_Meyer](https://forum.xojo.com/u/Jim_Meyer)\
**Post date:** [December 26, 2014, 11:22pm UTC](https://forum.xojo.com/t/iostoolbutton-enabled/21236/1 "2014-12-26T23:22:13Z")

</div>

When I try to set this property ex: myiOSToolButton.enabled = true, I get a “cannot assign a value to this property” error.

The docs say: “Enabled As Boolean Enables or disables the button.”

Any idea what I am doing wrong?

Thanks…

---

<div class="post-metadata">

**Author:** ![ChristopheDV](https://forum.xojo.com/letter_avatar_proxy/v4/letter/c/59ef9b/32.png) [@ChristopheDV](https://forum.xojo.com/u/ChristopheDV)\
**Post date:** [December 27, 2014, 8:57am UTC](https://forum.xojo.com/t/iostoolbutton-enabled/21236/2 "2014-12-27T08:57:01Z")

</div>

Not yet possible. Maybe some declare can do this.

---

<div class="post-metadata">

**Author:** ![Scott\_Novis](https://forum.xojo.com/letter_avatar_proxy/v4/letter/s/13edae/32.png) [@Scott\_Novis](https://forum.xojo.com/u/Scott_Novis)\
**Post date:** [December 27, 2014, 6:02pm UTC](https://forum.xojo.com/t/iostoolbutton-enabled/21236/3 "2014-12-27T18:02:26Z")

</div>

Is this set for some future update?  
Do you know where we can find examples of declare code?  
It does not appear to be something that is handled by the provided constructor.

---

<div class="post-metadata">

**Author:** ![Ulrich\_Bogun](https://forum.xojo.com/user_avatar/forum.xojo.com/ulrich_bogun/32/1864_2.png) [@Ulrich\_Bogun](https://forum.xojo.com/u/Ulrich_Bogun)\
**Post date:** [December 27, 2014, 6:22pm UTC](https://forum.xojo.com/t/iostoolbutton-enabled/21236/4 "2014-12-27T18:22:29Z")

</div>

What class is iOStoolbutton? I checked the example UIButton declare example from the ios/declares example folder and enabled works there.

---

<div class="post-metadata">

**Author:** ![Ulrich\_Bogun](https://forum.xojo.com/user_avatar/forum.xojo.com/ulrich_bogun/32/1864_2.png) [@Ulrich\_Bogun](https://forum.xojo.com/u/Ulrich_Bogun)\
**Post date:** [December 27, 2014, 6:22pm UTC](https://forum.xojo.com/t/iostoolbutton-enabled/21236/5 "2014-12-27T18:22:58Z")

</div>

One example too much but no edit available  😉

---

<div class="post-metadata">

**Author:** ![Michel\_Bujardet](https://forum.xojo.com/user_avatar/forum.xojo.com/michel_bujardet/32/252_2.png) [@Michel\_Bujardet](https://forum.xojo.com/u/Michel_Bujardet)\
**Post date:** [December 27, 2014, 7:25pm UTC](https://forum.xojo.com/t/iostoolbutton-enabled/21236/6 "2014-12-27T19:25:43Z")

</div>

I thought about changing the tab icon to reflect a disabled status. No luck.

View.Tabicon = iOSImage does not work. Neither does View.TabTitle.

Both described at [http://xojo.helpdocsonline.com/iosview](http://xojo.helpdocsonline.com/iosview) seem to be modifiable.

It looks like a bug, but with so many things “by design” it can just be the LR that misses the read only mention…

---

<div class="post-metadata">

**Author:** ![Michel\_Bujardet](https://forum.xojo.com/user_avatar/forum.xojo.com/michel_bujardet/32/252_2.png) [@Michel\_Bujardet](https://forum.xojo.com/u/Michel_Bujardet)\
**Post date:** [December 27, 2014, 7:34pm UTC](https://forum.xojo.com/t/iostoolbutton-enabled/21236/7 "2014-12-27T19:34:14Z")

</div>

> [@155419:@Ulrich Bogun](#):
>
> What class is iOStoolbutton? I checked the example UIButton declare example from the ios/declares example folder and enabled works there.

I believe tab bar buttons are UITabBarItem classes described at [https://developer.apple.com/library/ios/documentation/UIKit/Reference/UITabBarItem\_Class/](https://developer.apple.com/library/ios/documentation/UIKit/Reference/UITabBarItem_Class/)

There are the image, title and selected properties.

---

<div class="post-metadata">

**Author:** ![Michel\_Bujardet](https://forum.xojo.com/user_avatar/forum.xojo.com/michel_bujardet/32/252_2.png) [@Michel\_Bujardet](https://forum.xojo.com/u/Michel_Bujardet)\
**Post date:** [December 27, 2014, 7:52pm UTC](https://forum.xojo.com/t/iostoolbutton-enabled/21236/8 "2014-12-27T19:52:39Z")

</div>

More on view.Tabicon and view.TabTitle…

TabTitle can be changed on the fly when there are both icon and title displayed.

TabIcon can be changed, but the new icon displays only when one navigates to another tab…

---

<div class="post-metadata">

**Author:** ![system](https://forum.xojo.com/uploads/default/original/1X/455b4dcc0e61630e9f81940004ddffa49c432a46.png) [@system](https://forum.xojo.com/u/system)\
**Post date:** [October 29, 2020, 5:33pm UTC](https://forum.xojo.com/t/iostoolbutton-enabled/21236/9 "2020-10-29T17:33:04Z")

</div>


