Jump to content


Photo

Visual indication of enabled/disabled state


  • Please log in to reply
12 replies to this topic

#1 GoustiFruit

GoustiFruit
  • Members
  • 82 posts

Posted 18 June 2007 - 12:21 PM

Hello,

Would it be possible to have NextGrids draw differently when disabled ? Most components have at least a different color when disabled, look at labels, buttons, edits, ... NextGrid could use a grayed background , or grayed text...

Gousti.

#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 18 June 2007 - 12:23 PM

Hello Gousti,

I may do this. Anny suggestion about appearance is welcome. Righ now, I am thinking about changing Text to clGrayText. Maybe to change backgound too?

regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#3 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 18 June 2007 - 12:26 PM

Hello,

Just added gray text when it is disabled.

regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#4 user22

user22
  • Members
  • 192 posts
  • Gender:Male
  • Location:Linz / Austria

Posted 18 June 2007 - 02:42 PM

Hi Boki,

i find this idea with different colors for a disabled grid wonderful. If possible please make property DisabledColors with subproperties for background, text and selectedRow(back+text) - default = clNone, which means, in this case everything is as before, so old grids will not have a new style because of the new property :-))

bye,
user22

#5 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 18 June 2007 - 03:14 PM

Hello Helmut,

I am not sure at the moment about adding new properties sad.gif.

For now, I may simply hide a selection when Grid is disabled.

regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#6 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 18 June 2007 - 08:49 PM

Hello,

I have added that scrollbars are dissabled too.

regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#7 GoustiFruit

GoustiFruit
  • Members
  • 82 posts

Posted 20 June 2007 - 11:36 AM

Very nice :-)

#8 GoustiFruit

GoustiFruit
  • Members
  • 82 posts

Posted 01 July 2007 - 10:24 PM

Hello Boki,

I just installed new version 4.0.1 and it looks good... but... could you also gray the "Caption" when disabled ? (this caption property is a nice idea btw)

Gousti

#9 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 01 July 2007 - 10:41 PM

Hello Gousti,

I have add it;

on line 3636 inside file NxCustomGridControl.pas, add next code:

CODE
if not Enabled then Canvas.Font.Color := clGrayText;


Best regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#10 GoustiFruit

GoustiFruit
  • Members
  • 82 posts

Posted 02 July 2007 - 11:02 AM

Thanks :-)

#11 GoustiFruit

GoustiFruit
  • Members
  • 82 posts

Posted 03 July 2007 - 02:50 PM

Also, to add to your todo list:

- enabling/disabling edit controls (checkbox, combos, ...),
- enabling/disabling headers and footers.

That's all for now ;-)

Gousti.

#12 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 05 July 2007 - 10:44 PM

Hello Gousti,

I will add them too.

Best regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#13 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 12 July 2007 - 07:58 PM

Hello Gousti,

I have add it to NxCheckBox too (other editors are fine).

I will see now about setting gray text for header.

Best regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users