Re: greying out columns in a dataGrid
Good, getting there. thanks. just need that the row dividers should be a different color then the cells. Hershel > On Dec 1, 2023, at 9:10 AM, Klaus major-k via use-livecode > wrote: > > Hi Craig, > > always watch out for LINEBREAKS like here! > >> Am 01.12.2023 um 15:04 schrieb Craig Newman via use-livecode >> : >> on mouseUp >> > ## Needs to be ONE line, see parameters of -> DG_ColorColumn >> ... >> dispatch "DG_ColorColumn" to grp "datagrid 1" with "col 2", "211,211,211", >> "srcCopy" >> ... >> Craig > > Best > > Klaus > > -- > Klaus Major > https://www.major-k.de > https://www.major-k.de/bass > kl...@major-k.de > > > ___ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: greying out columns in a dataGrid
Hi Craig, always watch out for LINEBREAKS like here! > Am 01.12.2023 um 15:04 schrieb Craig Newman via use-livecode > : > on mouseUp > ## Needs to be ONE line, see parameters of -> DG_ColorColumn > ... > dispatch "DG_ColorColumn" to grp "datagrid 1" with "col 2", "211,211,211", > "srcCopy" > ... > Craig Best Klaus -- Klaus Major https://www.major-k.de https://www.major-k.de/bass kl...@major-k.de ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: greying out columns in a dataGrid
Zyrip. Almost, and very good, since I do not understand DG’s at all. I changed your offering to: on mouseUp dispatch "DG_ColorColumn" to grp "datagrid 1" with "col 2", "211,211,211" —srcCopy —no such command end mouseUp on DG_ColorColumn pColName, pColor, yellow set the opaque of grp pColName of me to (pColor is not empty) set the backcolor of grp pColName of me to pColor set the ink of grp 1 of me to blendSrcIn end DG_ColorColumn Craig > On Nov 30, 2023, at 7:46 PM, zryip theSlug via use-livecode > wrote: > > Hi Hershel, > > A possible solution consists to add this handler in the datagrid group > script: > > *command* DG_ColorColumn pColName, pColor, pInk > * set* the opaque of grp pColName of me to (pColor is not empty) > set the backcolor of grp pColName of me to pColor > set the ink of grp pColName of me to pInk > *end* DG_ColorColumn > > Then, call this handler that way: > > *on* mouseUp > dispatch "DG_ColorColumn" to grp "datagrid 1" with "col 2", "211,211,211", > "srcCopy" > *end* mouseUp > > > Best Regards, > > On Thu, 30 Nov 2023 at 22:49, Paul Dupuis via use-livecode < > use-livecode@lists.runrev.com> wrote: > >> On 11/30/2023 4:41 PM, Hershel F via use-livecode wrote: >>> sorry my mistake. does not have to be greyed out should be a gray color. >>> or to rephrase the question properly, how the change the color to gray? >> >> Ah! I am pretty sure it can be done, but I do not know how to do it >> exactly. By guess is that you will probably need to edit the row >> template to add a "grey" background behind the columns your may want to >> grey and then for those columns in the Property inspector, create a >> custom column behavior to show or hide that grey background graphic >> based on whatever calculation your want. >> >> That is a guess though. >> ___ >> use-livecode mailing list >> use-livecode@lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > > > -- > Zryip TheSlug > http://www.aslugontheroad.com > ___ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: greying out columns in a dataGrid
Hi Hershel, A possible solution consists to add this handler in the datagrid group script: *command* DG_ColorColumn pColName, pColor, pInk * set* the opaque of grp pColName of me to (pColor is not empty) set the backcolor of grp pColName of me to pColor set the ink of grp pColName of me to pInk *end* DG_ColorColumn Then, call this handler that way: *on* mouseUp dispatch "DG_ColorColumn" to grp "datagrid 1" with "col 2", "211,211,211", "srcCopy" *end* mouseUp Best Regards, On Thu, 30 Nov 2023 at 22:49, Paul Dupuis via use-livecode < use-livecode@lists.runrev.com> wrote: > On 11/30/2023 4:41 PM, Hershel F via use-livecode wrote: > > sorry my mistake. does not have to be greyed out should be a gray color. > > or to rephrase the question properly, how the change the color to gray? > > Ah! I am pretty sure it can be done, but I do not know how to do it > exactly. By guess is that you will probably need to edit the row > template to add a "grey" background behind the columns your may want to > grey and then for those columns in the Property inspector, create a > custom column behavior to show or hide that grey background graphic > based on whatever calculation your want. > > That is a guess though. > ___ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > -- Zryip TheSlug http://www.aslugontheroad.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: greying out columns in a dataGrid
On 11/30/2023 4:41 PM, Hershel F via use-livecode wrote: sorry my mistake. does not have to be greyed out should be a gray color. or to rephrase the question properly, how the change the color to gray? Ah! I am pretty sure it can be done, but I do not know how to do it exactly. By guess is that you will probably need to edit the row template to add a "grey" background behind the columns your may want to grey and then for those columns in the Property inspector, create a custom column behavior to show or hide that grey background graphic based on whatever calculation your want. That is a guess though. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: greying out columns in a dataGrid
sorry my mistake. does not have to be greyed out should be a gray color. or to rephrase the question properly, how the change the color to gray? thanks , Hershel > On Nov 30, 2023, at 4:36 PM, Paul Dupuis via use-livecode > wrote: > > Usually, you do not disable or grey-out columns in a Datagrid, but make them > invisible (hide or show the column) if they are not applicable to some view > you want. > > On 11/30/2023 4:04 PM, Hershel F via use-livecode wrote: >> Hi all how is it done to grey out a column or multiple columns in data grid >> according a calculation? >> >> thanks, Hershel >> ___ >> use-livecode mailing list >> use-livecode@lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription >> preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > ___ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: greying out columns in a dataGrid
Usually, you do not disable or grey-out columns in a Datagrid, but make them invisible (hide or show the column) if they are not applicable to some view you want. On 11/30/2023 4:04 PM, Hershel F via use-livecode wrote: Hi all how is it done to grey out a column or multiple columns in data grid according a calculation? thanks, Hershel ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode