Page 1 of 1

Using colors in GUI

Posted: Tue Aug 09, 2016 12:28 pm
by rene
When building an interactor, the option for changing font colors is there in the properties inspector. But it doesn't work!.
Why so?

regards: René Dorta.

Re: Using colors in GUI

Posted: Tue Aug 09, 2016 4:54 pm
by Josef Templ
Controls don't have a color property, but texts do have it.
The same dialog seems to be used for both cases.

Re: Using colors in GUI

Posted: Tue Aug 09, 2016 5:20 pm
by Ivan Denisov
rene wrote:Why so?
Standard set of BlackBox controls leading settings of OS colors theme.
However if you need some "extra" button it is not big deal do design your own.
Please, take a look the ObxButtons example.
ObxButton is sensible to Font Color settings.
You can install it to the Dialog interface from menu Obx -> Insert button.

Re: Using colors in GUI

Posted: Wed Aug 10, 2016 6:50 am
by manumart1
I also missed the possibility of change the button's color.
As I did not know how, I decided to use the buttons offered by the subsystem Ctls.

To insert a button, menu "Ctls > Insert Bitmap Button".
Then select the new button and menu "Ctls > Bitmap Properties..."

You need three different images for the button; see attached images as an example of a Save button.
Save_button_icons.zip
(1.94 KiB) Downloaded 580 times
Regards

Re: Using colors in GUI

Posted: Wed Aug 10, 2016 3:54 pm
by Robert
rene wrote:When building an interactor, the option for changing font colors is there in the properties inspector. But it doesn't work!.
There seem to be a few problems (bugs ?) with the Fonts of Controls on Forms - for example a Caption Control.
With the Control property editor I can't change the size or style for the BlackBox default typeface, and I can't change the typeface from, say, Arial back to default.

Re: Using colors in GUI

Posted: Wed Aug 10, 2016 5:08 pm
by Ivan Denisov
Attributes -> Default font works strange. It sets Tahoma font, but not default.