Jump to content

Disabled textedit control font

- - - - -

  • Please log in to reply
3 replies to this topic

#1
Johny_D

Johny_D

    Newbie

  • Members
  • Pip
  • 3 posts
Hi, everyone, can you help me, how can I keep the color of disabled text edit control font black, if I have to change the state of control often from [
enabled = true
to
enabled = false
?

#2
zoranh

zoranh

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 207 posts
Did you consider using ReadOnly=true/false instead of Enabled=false/true. It gives you opportunity to set colors (both foreground and background) and control isn't dimmed as it is when disabled. It also allows user to select and copy contents to clipboard.

#3
Johny_D

Johny_D

    Newbie

  • Members
  • Pip
  • 3 posts
It's much more comfortable to disable controls, due to not changing tabstop and lots of othe options.

#4
zoranh

zoranh

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 207 posts

Johny_D said:

It's much more comfortable to disable controls, due to not changing tabstop and lots of othe options.
Yes, but TextBox control doesn't allow you to control colors when control is disabled, but only when control is in read only mode.

That can be understood, because users have specific expectations when controls are disabled. They expect controls to be dimmed, not flashing in colors. Otherwise, how would the user know which control is disabled if it can't be determined by its specific visual look?




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users