Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
TIWLink not disabled
#3
(09-10-2019, 01:17 PM)kudzu Wrote: Links are anchors, and HTML treats them a little inconsistently. See here:

https://stackoverflow.com/questions/1395...d-href-tag

Switch (enabled/disabled) to styling my IWLink with property CSS.

MyLink.css:='isEnabled'; / MyLink.css:='isDisabled';
MyLink.Enabled:=true; / MyLink.Enabled:=false;

css:

.isDisabled {
    color: lightgray;
    cursor: not-allowed;
    text-decoration: none;
}

.isDisabled a:link {
    color: lightgray;
    cursor: not-allowed;
    text-decoration: none; 
}

.isDisabled a:hover {
    color: lightgray;
    cursor: not-allowed;
    text-decoration: none;   
}

.isDisabled a:visited {
    color: lightgray;
    cursor: not-allowed;
    text-decoration: none; 
}

.isDisabled a:active {
    color: lightgray;
    cursor: not-allowed;
    text-decoration: none; 
}

.isEnabled {
    color:blue;
    cursor: pointer;
    text-decoration: none;
}

.isEnabled a:link {
   color. blue;
   cursor: pointer;
    text-decoration: none; 
}

.isEnabled a:hover {
    color:blue;
    cursor: pointer;
    text-decoration: underline;   
}

.isEnabled a:visited {
    color:blue;
    cursor: pointer;
    text-decoration: none; 
}

.isEnabled a:active {
    color:blue;
    cursor: pointer;
    text-decoration: none; 
}


Not switch? I forgot which one property in IWLink?
Reply


Messages In This Thread
TIWLink not disabled - by matija - 09-10-2019, 06:49 AM
RE: TIWLink not disabled - by kudzu - 09-10-2019, 01:17 PM
RE: TIWLink not disabled - by matija - 09-09-2022, 12:26 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)