Questions tagged [disabled-control]

322 questions
2
votes
1 answer

How can i have a disabled Text that is scrollable?

My Text is declared as, Text text= new Text(parent, SWT.MULTI | SWT.BORDER | SWT.V_SCROLL | SWT.WRAP); It should be disabled in some cases. But when I do text.setEnabled(false); the text's scroll bar gets disabled too and i am not able to see…
Monikka
  • 518
  • 6
  • 12
2
votes
6 answers

How to protect an asp:textbox from user input?

How to protect an asp:textbox from user input? DISABLE IT PROTECT IT I wish to protect the textbox as above from…
DreamTeK
  • 32,537
  • 27
  • 112
  • 171
2
votes
1 answer

Mouseenter is never triggered when entering through disabled child element

I have a gray div with a disabled checkbox in it. http://jsfiddle.net/hFPTU/1/ I also have blue div that is positioned over the gray box, but below the checkbox. A third div is updated with text when mouseenter and mouseleave events are triggered on…
Ken Hirakawa
  • 7,831
  • 10
  • 38
  • 49
2
votes
2 answers

Is it possible to disable a GtkNotebook tab (like set_sensitive(*tab*, false)) in GTK+ 2.24?

I have searched on the internet but didn't reach any conclusion. This feature feels "natural" in the GUI, that's why I'm asking here despite having found nothing on the issue. I already know that if I hide the top widget of the notebook page, the…
StinkyCat
  • 1,236
  • 1
  • 17
  • 31
2
votes
2 answers

ASP.NET MVC Disable/Hide Controls Based on Business Rules

I need to either mark controls as read-only, disable them or hide them entirely depending on various business rules. Currently, I am passing an enum along for each property in my view model. I then check the value of enum for each control. This has…
Travis Parks
  • 8,435
  • 12
  • 52
  • 85
2
votes
1 answer

changing the disabled font color

THis is a list table, and one list is disabled. As you guys know, the font color is a gray when it's disabled. I am using IE9, and I want to change the font color. Does anyone know how to change the disabled font color??? here is my code:
Albright
  • 109
  • 2
  • 12
2
votes
3 answers

Is it possible to enable all the text fields at once in Java Swing?

I have multiple text fields which I need to enabled or disabled at once using Java Swing. Is that possible?
user1744099
  • 237
  • 1
  • 2
  • 4
1
vote
1 answer

How do I determine what will be selected when selecting a button disables it?

I'm using Windows Forms. I have a button that, when clicked, immediately disables itself (by setting btnName.Enabled = false). To my horror, I've discovered that this triggers the AfterSelect event of a different control. The documentation for…
J. Mini
  • 1,868
  • 1
  • 9
  • 38
1
vote
3 answers

How to Remove disable attribute from a button after input validation?

I have a form with a disabled button at first and if you leave an input empty or fill it with anything but numbers it will raise an error and if you insert number the error will be removed. My question is how can I remove disable attribute from the…
ali
  • 37
  • 6
1
vote
1 answer

How can I disable the button at the end of this component?

import { useRef, useState } from 'react' import Input from '../../UI/Input' import classes from './MealItemForm.module.css' export default function MealItemForm(props) { const [amountIsValid, setAmountIsValid] = useState(true) const…
1
vote
1 answer

MouseMoveEvent not trigger when button is disabled

How force mouseMoveEvent when QPushButton is disabled? I have disabled QPushButton on QScrollArea and on swipe mouseMoveEvent is not trigged.
1
vote
0 answers

Angular Button Disabled/Enable back is not working with Formly(reactive forms)

Thank you in advance for helping me with this problem. I am unable to enable back the button, I have 3 components where the actual button which need to be disabled is present in A component. Flow: On A component load, there is a popup shown which is…
Adithya
  • 183
  • 1
  • 2
  • 16
1
vote
0 answers

Devexpress disabled button column datagrid

I defined a button inside a column of a datagrid. Is it possible to disable the button based on the happening of certain conditions? I have only managed to find the "visible" option which allows me to hide it but not disabling it.
Gaetano
  • 145
  • 1
  • 5
  • 19
1
vote
3 answers

programmatically change TextInputLayout textColorHint color to indicate/show a disabled editText inside

I have a EditText that in inside a TextInputLayout. I would like to change the color of the TextInputLayout's textColorHint programmatically. As I would need to enable and disable the editTexts while user is filling up the forms. For an example, A…
1
vote
2 answers

[disabled]="!isValid()" is not working in IE11 for Angular 8

disabled attribute with function is not working in IE11. It remains disable all the time. Please refer below code: HTML: Component (.ts) isValid(){ return…