Re: List Box Header background color programatically.

2017-12-28 Thread Arnaud de Montard via 4D_Tech
> Le 27 déc. 2017 à 14:41, Keisuke Miyako via 4D_Tech <4d_tech@lists.4d.com> a > écrit : > > if you, like me, are intrigues by object notation and the new "Form" command, > I've posted an example UI on GitHub, a custom form for backup settings. > >

Re: List Box Header background color programatically.

2017-12-28 Thread Arnaud de Montard via 4D_Tech
> Le 27 déc. 2017 à 17:41, John Baughman via 4D_Tech <4d_tech@lists.4d.com> a > écrit : > > [...] needing to create a background file when each time I find the need for > a different color that I don’t already have. You can draw with svg on the fly and set it as background using a variable

Re: List Box Header background color programatically.

2017-12-27 Thread John Baughman via 4D_Tech
> On Dec 27, 2017, at 2:11 AM, Arnaud de Montard via 4D_Tech > <4d_tech@lists.4d.com> wrote: > > Having a set of # background rectangles of # colors in Resources folder, in > properties list, choose: That is a good way to do it and you can change the background color by switching files with

Re: List Box Header background color programatically.

2017-12-27 Thread Keisuke Miyako via 4D_Tech
if you, like me, are intrigues by object notation and the new "Form" command, I've posted an example UI on GitHub, a custom form for backup settings. https://github.com/miyako/4d-utility-backup-dialog there is almost no code written for the form, yet it provides access to all configurable

Re: List Box Header background color programatically.

2017-12-27 Thread Arnaud de Montard via 4D_Tech
> Le 26 déc. 2017 à 18:19, John Baughman via 4D_Tech <4d_tech@lists.4d.com> a > écrit : > > [...] > I have always hated the inability to change the background color of a button. > For form buttons that need a colored background, I use a rounded rectangle or > image with a Highlight button on

Re: List Box Header background color programatically.

2017-12-27 Thread Arnaud de Montard via 4D_Tech
> Le 26 déc. 2017 à 18:19, John Baughman via 4D_Tech <4d_tech@lists.4d.com> a > écrit : > > [...] > I have always hated the inability to change the background color of a button. > For form buttons that need a colored background, I use a rounded rectangle or > image with a Highlight button on

Re: List Box Header background color programatically.

2017-12-27 Thread John Baughman via 4D_Tech
> On Dec 26, 2017, at 6:24 AM, Kirk Brooks via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > I did just discover I can set the help tip for each header object! ​ Very timely Kirk, thanks. I just found a need to implement help tips in a list box’s header and remembered your comment. A bit of a

Re: List Box Header background color programatically.

2017-12-26 Thread John Baughman via 4D_Tech
Thanks everyone! Ah but yes. In this exercise I forgot that the header is in fact a button. I have always hated the inability to change the background color of a button. For form buttons that need a colored background, I use a rounded rectangle or image with a Highlight button on top. John

Re: List Box Header background color programatically.

2017-12-26 Thread Kirk Brooks via 4D_Tech
Hi all, On Tue, Dec 26, 2017 at 7:51 AM, Kirk Brooks wrote: > I wonder if you can call OBJECT SET FORMAT on them too? Probably can't > change the button type (which looks like 3D-bevel) but that does open up > the formatting options a bit. Simply changing the button from

AW: List Box Header background color programatically.

2017-12-26 Thread Flury Olivier via 4D_Tech
er 2017 03:48 An: 4D iNug Technical <4d_tech@lists.4d.com> Cc: John Baughman <john...@hawaii.rr.com> Betreff: List Box Header background color programatically. I have tried… OBJECT SET RGB COLORS(*;"Day"+String($k)+”Header”;Foreground color;$weekEndColor) OBJECT

Re: List Box Header background color programatically.

2017-12-26 Thread Kirk Brooks via 4D_Tech
John, Listbox headers are essentially buttons so I think you've got the same options as buttons and setting the background color isn't one of them. You could make a graphic and load it as the icon but that would involve re-drawing it if the column changed size. I wonder if you can call OBJECT SET

List Box Header background color programatically.

2017-12-25 Thread John Baughman via 4D_Tech
I have tried… OBJECT SET RGB COLORS(*;"Day"+String($k)+”Header”;Foreground color;$weekEndColor) OBJECT SET COLOR OBJECT SET COLOR(*;"Day"+String($k)+"Header";-(Foreground color +(256* weekEndColor))) I can get the foreground color to work, but not the background. Or is it