Re: SelectedBackColor Of Textbox by Dan
Dan
Fri Jan 19 23:51:54 CST 2007
Yeah, so is mine. What else is different? Language settings? Video settings?
I'm running XP with the "Windows Classic" theme. What are your settings?
Your code works fine for me.
Dan
"Taha" <taha105@hotmail.com> wrote in message
news:OPX7YjCPHHA.4368@TK2MSFTNGP03.phx.gbl...
> ??
>
>> Have you changed the default for SET SYSFORMAT or any of the other SET
>> settings that affect how VFP may or may not get colors from the operating
>> system?
>>
> No Dan
>
> My Oprating system is xp
>
>
> "Dan Freeman" <spam@microsoft.com> wrote in message
> news:evNlLNCPHHA.4484@TK2MSFTNGP02.phx.gbl...
>> That code works just fine for me in both VFP8 and VFP9.
>>
>> Have you changed the default for SET SYSFORMAT or any of the other SET
>> settings that affect how VFP may or may not get colors from the operating
>> system?
>>
>> Dan
>>
>> "Taha" <taha105@hotmail.com> wrote in message
>> news:O3ygA2BPHHA.4244@TK2MSFTNGP04.phx.gbl...
>>> Hi Dan
>>>
>>> This is The Code
>>>
>>> DEFINE CLASS form1 AS form
>>>
>>>
>>>
>>> ScaleMode = 0
>>>
>>> DoCreate = .T.
>>>
>>> Caption = "Form1"
>>>
>>> Name = "Form1"
>>>
>>>
>>>
>>> ADD OBJECT text1 AS textbox WITH ;
>>>
>>> Alignment = 3, ;
>>>
>>> Height = 1.53, ;
>>>
>>> HideSelection = .F., ;
>>>
>>> Left = 16.80, ;
>>>
>>> SelectOnEntry = .T., ;
>>>
>>> SpecialEffect = 1, ;
>>>
>>> Top = 3.20, ;
>>>
>>> Width = 45.60, ;
>>>
>>> SelectedBackColor = RGB(255,255,0), ;
>>>
>>> Themes = .F., ;
>>>
>>> Name = "Text1"
>>>
>>>
>>>
>>> ENDDEFINE
>>>
>>> "Dan Freeman" <spam@microsoft.com> wrote in message
>>> news:%23nS3NaBPHHA.4172@TK2MSFTNGP03.phx.gbl...
>>>> Then please post code showing what you've done.
>>>>
>>>> Dan
>>>>
>>>> "Taha" <taha105@hotmail.com> wrote in message
>>>> news:Ok6C8VBPHHA.780@TK2MSFTNGP03.phx.gbl...
>>>>> Thank you Dan Freeman
>>>>> I try but still doesn't work
>>>>>
>>>>>
>>>>> "Dan Freeman" <spam@microsoft.com> wrote in message
>>>>> news:%23lAQcW$OHHA.140@TK2MSFTNGP04.phx.gbl...
>>>>>> Set Themes=.f.
>>>>>>
>>>>>> The textbox will not accept any setting in SelectedBackColor if
>>>>>> Themes=.t.
>>>>>>
>>>>>> Dan
>>>>>>
>>>>>> "Taha" <taha105@hotmail.com> wrote in message
>>>>>> news:O5ioYY%23OHHA.3668@TK2MSFTNGP02.phx.gbl...
>>>>>>> Thank you Bernhard Sander For Reply
>>>>>>>
>>>>>>> But Still Doesn't work
>>>>>>> If you Can Give Me Code For Example
>>>>>>>
>>>>>>> Thanks
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> "Bernhard Sander" <fuchs@no.spam> wrote in message
>>>>>>> news:eAjavP%23OHHA.1276@TK2MSFTNGP04.phx.gbl...
>>>>>>>> Hi Taha,
>>>>>>>>
>>>>>>>>> How can I change SelectedBackColor Of Textbox Control
>>>>>>>>> SelectedBackColor Doesn't work
>>>>>>>> textbox.SelectedBackColor = rgb(255,255,0)
>>>>>>>> sets the back color of selected text to yellow.
>>>>>>>> Why do you think it does not work?
>>>>>>>> It depends on textbox.HideSelection, whether the selection is
>>>>>>>> highlighted if the textbox has focus or not.
>>>>>>>>
>>>>>>>> Regards
>>>>>>>> Bernhard Sander
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>