# Windows Theme

**URL:** <https://forum.servoy.com/t/windows-theme/819>\
**Category:** Classic Servoy\
**Created:** [December 8, 2003, 3:38am UTC](https://forum.servoy.com/t/windows-theme/819 "2003-12-08T03:38:07Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![mattman](https://avatars.discourse-cdn.com/v4/letter/m/e47774/32.png) [@mattman](https://forum.servoy.com/u/mattman)\
**Post date:** [December 8, 2003, 3:38am UTC](https://forum.servoy.com/t/windows-theme/819/1 "2003-12-08T03:38:07Z")

</div>

It may be that I need to learn how to work with and design themes, but it would be nice to have a new property for objects which use the onAction(). This new property would be **showAsButton**.

This would allow you to specify objects to take an action like a button but not draw as one. The picture below shows that the column headers to the right of the Email column do not have onAction specified (using the Windows theme), whereas the Email column header does.

While I would like to specify these column headers as buttons, I don’t want them to appear as buttons.

Also notice that the object named “Invisible button”, will, in other themes, not show itself since it is set as transparent. However, with the Windows theme it shows as a button no matter what. This is also a situation that would be remedied by a new showAsButton property to accompany the onAction() function.

---

<div class="post-metadata">

**Author:** ![Harjo](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/harjo/32/4873_2.png) [@Harjo](https://forum.servoy.com/u/Harjo)\
**Post date:** [December 8, 2003, 8:24am UTC](https://forum.servoy.com/t/windows-theme/819/2 "2003-12-08T08:24:11Z")

</div>

If this is possible, it would be GREAT!

---

<div class="post-metadata">

**Author:** ![ROCLASI](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/roclasi/32/4371_2.png) [@ROCLASI](https://forum.servoy.com/u/ROCLASI)\
**Post date:** [December 8, 2003, 3:16pm UTC](https://forum.servoy.com/t/windows-theme/819/3 "2003-12-08T15:16:07Z")

</div>

This issue is more complex then it seems.  
It has to do with the fact that label/image/button are one and the same class. This also affect the use of styles with this object.

> **[images with onAction method OSX/Windows](https://forum.servoy.com/viewtopic.php?t=798&highlight=)**
>
> Hmm...is it me or does Servoy under XP show images that have an onAction method as buttons though I explicitly set them to have no border. It shows correctly under OSX. Servoy Developer 1.2rc9 on OSX 10.3.1 Servoy client on XP

> **[Different classes/objects for Label, Button and Image](https://forum.servoy.com/viewtopic.php?t=796&highlight=)**
>
> Can we get different classes/objects for Label, Button and Image. If you want to have a button that uses the LAF and images that have an empty border and labels who are transparent (for example) AND you want to use styles it really bites each...

> **[separation of label and button in styles](https://forum.servoy.com/viewtopic.php?t=768&highlight=)**
>
> For some odd reason my border property of buttons won't stick. I set them to 'default' and when I quit Servoy and start it again then the property is back to 'Empty'. I narrowed it down to my Style setting. If I don't use the style setting the...

---

<div class="post-metadata">

**Author:** ![Jan\_Aleman](https://avatars.discourse-cdn.com/v4/letter/j/4af34b/32.png) [@Jan\_Aleman](https://forum.servoy.com/u/Jan_Aleman)\
**Post date:** [December 11, 2003, 2:47pm UTC](https://forum.servoy.com/t/windows-theme/819/4 "2003-12-11T14:47:37Z")

</div>

We will add a property in an upcoming version where you will be able to specify if an element displays as a button or not.

As for the visible issue Matt mentions in the first post in this thread: I am unable to reproduce it, if i use windows look and feel and do button.visible=false it always goes away. Can you upload an example?

---

<div class="post-metadata">

**Author:** ![mattman](https://avatars.discourse-cdn.com/v4/letter/m/e47774/32.png) [@mattman](https://forum.servoy.com/u/mattman)\
**Post date:** [December 11, 2003, 9:09pm UTC](https://forum.servoy.com/t/windows-theme/819/5 "2003-12-11T21:09:35Z")

</div>

> jaleman:  
> We will add a property in an upcoming version where you will be able to specify if an element displays as a button or not.
> 
> As for the visible issue Matt mentions in the first post in this thread: I am unable to reproduce it, if i use windows look and feel and do button.visible=false it always goes away. Can you upload an example?

The button visibility is not the issue. Transparency is the issue. Until we have the property to **showAsButton** , you have to put a button on top of objects you want to associate the onAction with.

Column headers will be a common item that will take an onAction for sorting the list view. However, if you don’t want the onAction to turn your object underneath into a button you make another object with the onAction and set it to transparent. This is where you get variations from the different themes.

Of course, this is all extra steps for making an object clickable. It’s like FileMaker. The preferred option would be to have the showAsButton ALONG with being able to specify borders on embossed buttons.

Hope this is more clear.

---

<div class="post-metadata">

**Author:** ![patrick](https://avatars.discourse-cdn.com/v4/letter/p/b2d939/32.png) [@patrick](https://forum.servoy.com/u/patrick)\
**Post date:** [February 17, 2004, 4:27pm UTC](https://forum.servoy.com/t/windows-theme/819/6 "2004-02-17T16:27:40Z")

</div>

Is there any news on this? I am also currently a little annoyed by an image with onAction showing up as a button in table view. It’d be a lot nicer if only the image was the button…

---

<div class="post-metadata">

**Author:** ![jcompagner](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/jcompagner/32/4889_2.png) [@jcompagner](https://forum.servoy.com/u/jcompagner)\
**Post date:** [February 18, 2004, 7:36pm UTC](https://forum.servoy.com/t/windows-theme/819/7 "2004-02-18T19:36:45Z")

</div>

will be after 2.0  
(we won’t be introducing any new properties now, because that would require another repository update that we are not willing to do for 2.0)
