PR# 19174 EiffelVision button colours problem

Problem Report Summary
Submitter: jsostroff
Category: EiffelVision
Priority: Medium
Date: 2015/12/16
Class: Bug
Severity: Non-critical
Number: 19174
Release: 15.08
Confidential: No
Status: Analyzed
Responsible:
Environment: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_1) AppleWebKit/601.2.7 (KHTML, like Gecko) Version/9.0.1 Safari/601.2.7
Synopsis: EiffelVision button colours problem

Description
The commands
        set_background_color
        set_foreground_color
may be used to set the foreground and background colours of buttons using Eiffel Vision (I used EiifelBuild to do the initial setup).

http://www.eecs.yorku.ca/~sel/pdf/etf-gui.pdf <http://www.eecs.yorku.ca/~sel/pdf/etf-gui.pdf>

Is this a bug, or am I doing something wrong?

At first the problem was noted only on Windows. But in the latest version of CentOs and MacOs it is also occurring. 

Thanks

Jonathan

P.S. EiifelBuild seems to have a bug when you re-start it. The current directory attribute in the xml file is replaced with the empty string and settings will not load. One has to manually fix the xml file and then reload.
To Reproduce

										
Problem Report Interactions
From:manus_eiffel    Date:2015/12/17    Status: Analyzed    Download   
Currently a few widgets do not support colorization. EV_BUTTON is among them. This is because the OS theme engine takes precedence over the internal settings. To fix this, we would have to rewrite the drawing code of buttons and this will be quite a bit of work for a small benefit. Fixing this is therefore a low priority at the moment. 

If there is a real need for color, you can easily build your own buttons using an EV_DRAWING_AREA. The downside is that they won't be standard.

From:jsostroff    Date:2015/12/16    Download   
Attachments for problem report #19174

Attachment: etf-gui.pdf     Size:138426