# Working with rectangles and bevel buttons

**URL:** <https://forum.xojo.com/t/working-with-rectangles-and-bevel-buttons/16967>\
**Category:** Getting Started\
**Created:** [June 1, 2014, 6:17pm UTC](https://forum.xojo.com/t/working-with-rectangles-and-bevel-buttons/16967 "2014-06-01T18:17:37Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Samuel\_Cohen](https://forum.xojo.com/letter_avatar_proxy/v4/letter/s/a88e4f/32.png) [@Samuel\_Cohen](https://forum.xojo.com/u/Samuel_Cohen)\
**Post date:** [June 1, 2014, 6:17pm UTC](https://forum.xojo.com/t/working-with-rectangles-and-bevel-buttons/16967/1 "2014-06-01T18:17:37Z")

</div>

I have some bevel buttons each with a colored rectangle. When I click out of my program and then click back into the program, the rectangles become blank. Is it possible to fix this? If so, how?

---

<div class="post-metadata">

**Author:** ![DaveS](https://forum.xojo.com/letter_avatar_proxy/v4/letter/d/848f3c/32.png) [@DaveS](https://forum.xojo.com/u/DaveS)\
**Post date:** [June 1, 2014, 6:44pm UTC](https://forum.xojo.com/t/working-with-rectangles-and-bevel-buttons/16967/2 "2014-06-01T18:44:15Z")

</div>

more information needed

---

<div class="post-metadata">

**Author:** ![Richard\_Summers](https://forum.xojo.com/user_avatar/forum.xojo.com/richard_summers/32/477_2.png) [@Richard\_Summers](https://forum.xojo.com/u/Richard_Summers)\
**Post date:** [June 1, 2014, 8:39pm UTC](https://forum.xojo.com/t/working-with-rectangles-and-bevel-buttons/16967/3 "2014-06-01T20:39:40Z")

</div>

Screenshot maybe?

---

<div class="post-metadata">

**Author:** ![Christian\_Schmitz](https://forum.xojo.com/user_avatar/forum.xojo.com/christian_schmitz/32/158_2.png) [@Christian\_Schmitz](https://forum.xojo.com/u/Christian_Schmitz)\
**Post date:** [June 1, 2014, 8:46pm UTC](https://forum.xojo.com/t/working-with-rectangles-and-bevel-buttons/16967/4 "2014-06-01T20:46:59Z")

</div>

sure. What do you mean with color rectangle?  
The rectangle control? Laying on top of bevel button?

---

<div class="post-metadata">

**Author:** ![Samuel\_Cohen](https://forum.xojo.com/letter_avatar_proxy/v4/letter/s/a88e4f/32.png) [@Samuel\_Cohen](https://forum.xojo.com/u/Samuel_Cohen)\
**Post date:** [June 2, 2014, 5:20pm UTC](https://forum.xojo.com/t/working-with-rectangles-and-bevel-buttons/16967/5 "2014-06-02T17:20:26Z")

</div>

Thanks for the replies. Yes, I mean the rectangle control. I guess the easiest way to describe it is to show you what I mean. If you run the program, notice that if you click out of the GUI (for instance, by clicking on the desktop) and then click back on the GUI the color of the rectangles go away. How can I get the color of the rectangle not to go away like that?

The program: [https://www.dropbox.com/s/2rneozqhtijoc7v/MyApp.xojo\_binary\_project](https://www.dropbox.com/s/2rneozqhtijoc7v/MyApp.xojo_binary_project)

---

<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:15pm UTC](https://forum.xojo.com/t/working-with-rectangles-and-bevel-buttons/16967/6 "2020-10-29T17:15:12Z")

</div>


