|
-
Nov 16th, 2000, 08:47 AM
#1
Thread Starter
Lively Member
Hello,
Is it possible to change the color of a font when I set its enabled property to False?
Thanks.
Deju
-
Nov 16th, 2000, 08:49 AM
#2
Fanatic Member
In English:
What kind of control do you use?
In Dutch:
Welke control gebruik je?
-
Nov 16th, 2000, 08:51 AM
#3
Thread Starter
Lively Member
-
Nov 16th, 2000, 08:55 AM
#4
Fanatic Member
In English:
Do you draw on a form?
In Dutch:
Teken je dan op een form ofzo?
-
Nov 16th, 2000, 08:58 AM
#5
Frenzied Member
English: You're setting a font to disabled? huh? the form?
Nederlands: Leuk dat er nog meer Nederlanders/Belgen zijn hè Oetje 
English: Oh by the way, I think the disabled text color is a System Color... you can change it for the whole system if you need to, but not that elegant.
[Edited by Jop on 11-16-2000 at 09:07 AM]
Jop - validweb.nl
Alcohol doesn't solve any problems, but then again, neither does milk.
-
Nov 16th, 2000, 09:01 AM
#6
_______
<?>
'In 3 words and a symbol
Disabled = Greyed Out
"A myth is not the succession of individual images,
but an integerated meaningful entity,
reflecting a distinct aspect of the real world."
___ Adolf Jensen
-
Nov 16th, 2000, 03:39 PM
#7
Why not just set the control's color to any color and...
Example:
If control.forecolor = color Then Exit Sub
-
Nov 16th, 2000, 03:50 PM
#8
You can change the control's disable colour, but it'll have to be systemwide.
-
Nov 16th, 2000, 03:53 PM
#9
Here is an example.
Code:
Private Declare Function SetSysColors Lib "user32" (ByVal nChanges As Long, lpSysColor As Long, lpColorValues As Long) As Long
Private Declare Function GetSysColor Lib "user32" (ByVal nIndex As Long) As Long
Const COLOR_GRAYTEXT = 17
Dim lForeColor
Private Sub Form_Load()
lForeColor = GetSysColor(COLOR_GRAYTEXT)
SetSysColors 1, COLOR_GRAYTEXT, vbGreen
End Sub
Private Sub Form_Unload(Cancel As Integer)
SetSysColors 1, COLOR_GRAYTEXT, lForeColor
End Sub
-
Nov 16th, 2000, 04:08 PM
#10
Fanatic Member
danke fur
askjsuds jepimaf alksd
merci beaucoup
gracias
kasweansajasdy asdh astdsa
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|