Skip to main content

Guude

With "fieldvideo" I can set the color of widgtes, this also works with "commands buttons".
But when the representation of a "command button" ist set to "windows", "COL=n" will be ignored

So I read the documentation and found that with "windows" there are a few more properties.
But I could not find any line, why "COL=n" not longer working.
Is this a bug or a feature?

Ingo


Windows 10
UnifAce 9.7.04




Guude

With "fieldvideo" I can set the color of widgtes, this also works with "commands buttons".
But when the representation of a "command button" ist set to "windows", "COL=n" will be ignored

So I read the documentation and found that with "windows" there are a few more properties.
But I could not find any line, why "COL=n" not longer working.
Is this a bug or a feature?

Ingo


Windows 10
UnifAce 9.7.04




Ingo

This is correct. As soon you use a native windows button, the color cannot be set. This is because the theme engine of Windows does not allow it. You have to change the color system wide. However when using the UNIFACE button all colors can be set with and without gradient. By specifying the role=uniface property in the UCOMMANDBUTTON ins the usys.ini you can set it application wide. For application maintenance this is the simplest way. Also have a look at the blog on application modernization where you can see some options for flat buttons and borders etc.


Success with the application

Kind regards

Jasper de Keijzer.


Guude

With "fieldvideo" I can set the color of widgtes, this also works with "commands buttons".
But when the representation of a "command button" ist set to "windows", "COL=n" will be ignored

So I read the documentation and found that with "windows" there are a few more properties.
But I could not find any line, why "COL=n" not longer working.
Is this a bug or a feature?

Ingo


Windows 10
UnifAce 9.7.04




Hi Ingo,

I remember this same discussion in A'dam many years ago I think at U7 incipit time:
buttons with rapresentation Windows are under Windows controls, at that time they were exactly under Windows Theme control; because of this Uniface rapresentation was defined: to have more control on buttons shape and attributes, like: colors, putting together a label (text) and a picture in a single button, and many others...Later on came the third rapresentation: Header.
I think today this rapresentation splitting is softer (Microsoft has partially changed its rules) but the initial logic is obviously still there.

Hope it helps.

Regards,
Gianni


Guude

With "fieldvideo" I can set the color of widgtes, this also works with "commands buttons".
But when the representation of a "command button" ist set to "windows", "COL=n" will be ignored

So I read the documentation and found that with "windows" there are a few more properties.
But I could not find any line, why "COL=n" not longer working.
Is this a bug or a feature?

Ingo


Windows 10
UnifAce 9.7.04




Hi
Problem is not, that one can set or not set colors by UnifAce or Windows
But I can't find any line/warning that explains that UIC not work with "windows"

Someone in our team sets represenation to "windows" as it looks "more modern one".
Now a colleague means, there is somthing wrong with the colors ... 🙂

Ingo

UIC=UnifAce IndexColor


Guude

With "fieldvideo" I can set the color of widgtes, this also works with "commands buttons".
But when the representation of a "command button" ist set to "windows", "COL=n" will be ignored

So I read the documentation and found that with "windows" there are a few more properties.
But I could not find any line, why "COL=n" not longer working.
Is this a bug or a feature?

Ingo


Windows 10
UnifAce 9.7.04




Oops

There was a missinterpretation from my side

All colors can only be set, when representation is "uniface"
grumbel 


Ingo




Ingo

This is correct. As soon you use a native windows button, the color cannot be set. This is because the theme engine of Windows does not allow it. You have to change the color system wide. However when using the UNIFACE button all colors can be set with and without gradient. By specifying the role=uniface property in the UCOMMANDBUTTON ins the usys.ini you can set it application wide. For application maintenance this is the simplest way. Also have a look at the blog on application modernization where you can see some options for flat buttons and borders etc.


Success with the application

Kind regards

Jasper de Keijzer.

Thanks Jasper

Yes, when using represenation=uniface with frametype=flat, you got (almost) the same then the windows button.
But my main question is, where is the hint in the documenation, the "windows" does not support colors 🙂


Ingo

This is correct. As soon you use a native windows button, the color cannot be set. This is because the theme engine of Windows does not allow it. You have to change the color system wide. However when using the UNIFACE button all colors can be set with and without gradient. By specifying the role=uniface property in the UCOMMANDBUTTON ins the usys.ini you can set it application wide. For application maintenance this is the simplest way. Also have a look at the blog on application modernization where you can see some options for flat buttons and borders etc.


Success with the application

Kind regards

Jasper de Keijzer.

In the documentation there is this text for representation = Windows

Appearance of the command button when running on the Microsoft Windows operating system. The Uniface representation provides more customization options.

If you read between the lines the explanation is there. Could be better. You can provide feedback on the doc and propose an improvement if you want.

Hope this helps

Success with the application Ingo