Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 6 of 6 total
Thread Icons Missing in Toolbars
Thu, Jul 28 2022 11:30 AMPermanent Link

Richard Harding

Wise Nutrition Coaching

Greetings

Since the introduction of EWB2, I have an issue of some toolbar icons going missing. More importantly, they go missing and I do not know how to get them to return.

Usually I can entice them back but despite all my notes from previous encounters with the situation, the icons are stubbornly refuse to appear.

When I first installed EWB2 at the client (Glenn at Eyre and Smith), within 5 minutes, he stated that the text was too light and he wanted all the gray text to be black. To remove the gray text, I did a global replace of the colors "clElevateLightBlack" (4282204992) and "clElevatDarkGray" (4285562249) to replace these colors with "clBlack" (4278190080) in the client's interface files.

I have a number of interface file sets based on the sets that are installed on installation. Copies of the default and desktop interface folders exists with a qualifying prefix. For example "tst_desktop", "eas_desktop", "tst_default", "eas_default".

I also made some changes to the grid column headers and buttons so there is a greater contrast with between different states - for example, "normal", "disabled", "pushed", focused" and "hot". Changing the colors of different states in the column headers is helpful when sorting the columns on multiple columns.

In Project Options, Compilation tab, I replaced the standard interface folder in Search Paths with the custom interface folder (..\interfaces\eas_default\). "Automatically load custom control interfaces in project search paths" is set in the project options.

This seems works well.

The attached image shows the existing toolbar with the "Qty Audit" image present but after compilation in the IDE the "Qty Audit' image is not present.

This has been an issue for several years. I have raised the issue previously but I am still struggling to add my missing "Qty Audit" image (or any other image) to the toolbar button.

I would really appreciate a step by step guide on how to get my image to return to its place on the toolbar button.

Richard



Attachments: Icons Missing in Toolbars.jpg
Thu, Jul 28 2022 1:06 PMPermanent Link

erickengelke

Richard Harding wrote:
>Since the introduction of EWB2, I have an issue of some toolbar icons going missing.
>More importantly, they go missing and I do not know how to get them to return.

I don't have an answer, I haven't experienced that particular problem.

But I do have a suggestion. I think I recall that you use my Nice toolkit, it lets you change the colours without editing Tim's files,  I often use higher contrast than EWB's default.

For example
 StyleBackFill( 'TDialog', 'Normal', clBlack );
 StyleBackFill( 'TButton', 'Disabled', clGray );
 StyleBackFill( 'TButton', 'Pushed', clRed );
 StyleBackFill( 'TButton', 'Focused', clGray );
 StyleBackFill( 'TButton', 'Normal,Hot', clDarkGray );

is what I use for https://www.erickengelke.com/nice/samples.html
And you just add them before you create any windows.

Erick
EWB Programming Books and Component Library
http://www.erickengelke.com
Thu, Jul 28 2022 5:47 PMPermanent Link

Richard Harding

Wise Nutrition Coaching

Greeings Erick

erickengelke wrote:

<<But I do have a suggestion. I think I recall that you use my Nice toolkit, it lets you change the colours without editing Tim's files, I often use higher contrast than EWB's default.>>

For example
 StyleBackFill( 'TDialog', 'Normal', clBlack );
 StyleBackFill( 'TButton', 'Disabled', clGray );
 StyleBackFill( 'TButton', 'Pushed', clRed );
 StyleBackFill( 'TButton', 'Focused', clGray );
 StyleBackFill( 'TButton', 'Normal,Hot', clDarkGray );

I do use your StyleBackFill to change colors of buttons as well as menu items which is really very neat. However, this is referring to a different issue.

Richard
Thu, Jul 28 2022 9:08 PMPermanent Link

erickengelke

Richard Harding wrote:

> I do use your StyleBackFill to change colors of buttons as well as menu items which is really very neat.
> However, this is referring to a different issue.

While it's certainly handy, the StyleBackFill feature is a course tool, affecting every instance, just as EWB does its defaults otherwise.

It would be really nice if there were a Theme feature for EWB, for application defaults, defaults for  form and for individual objects,

The theme could potentially provide overrides for font sizes, colours, fills, etc.  

I kind of doubt Tim will have time for this any time soon.  So I  may implement such a feature for my Nice toolkit, but am looking for ideas before I get too deep into it.  

Let me know if you have any suggestions.

I'm currently in summer vacation mode, but am starting to think of projects for the fall.

Erick
EWB Programming Books and Component Library
http://www.erickengelke.com
Fri, Jul 29 2022 5:34 AMPermanent Link

erickengelke

erickengelke wrote:


> It would be really nice if there were a Theme feature for EWB
>...
>I kind of doubt Tim will have time for this any time soon.  So I  may implement such a feature for my
> Nice toolkit, but am looking for ideas before I get too deep into it.  

So, I've added a simple theme manager to my Nice toolkit this morning.

It lets you set several important fields to get a nice consistent look to your pages.  For example, you may decide you want smaller font sizes or more contrasting or personalized colours.  It can be extended to handle cases I didn't consider, and the extension is demonstrated in the sample to add bold facing as an option.

You can define the themes for a whole application, or just for a particular Form/Dialog without a lot of work.

See https://erickengelke.com/nice. and click on Nice Themes, then select a theme.

For those who already bought the toolkit, download in the usual location.

Erick
EWB Programming Books and Component Library
http://www.erickengelke.com
Mon, Aug 8 2022 5:57 PMPermanent Link

erickengelke

erickengelke wrote:

erickengelke wrote:
>> It would be really nice if there were a Theme feature for EWB
>...
>>I kind of doubt Tim will have time for this any time soon.  So I  may implement such a feature for my
>> Nice toolkit, but am looking for ideas before I get too deep into it.  

> So, I've added a simple theme manager to my Nice toolkit this morning.

One of the challenges is dealing with font/control sizing for accessibility needs, or when you want to have different defaults than EWB's stock sizes.  Modifying all the control sizes on every form... it can get exasperating for a large project.

The first solution I came up with is a tool to change attributes of various things, but it's a fair bit of work on your part.

I've added a second, easier-to-use feature, which requires only about 10 lines of code added to your program which sets the  default font sizes, default edit and button sizes, ButtonComboBoxes, etc. and header sizes to your choices, which can be the stock sizes or any size you wish, and affect all forms you create.

So you can edit with normal default EWB settings with responsive design which have the usual look at design time, but the form will use the new settings at run time and responsive design moves everything around appropriately.   

It works with both IDE designed controls and run-time programatically created elements.

Shy of Tim adding an ability to set new defaults in the IDE, this new feature is the easiest way II can imagine to change the look of your applications.

It's available for all of my Nice Toolkit users.  Contact me for details.

Erick
EWB Programming Books and Component Library
http://www.erickengelke.com
Image