Hi All
How can I change SelectedBackColor Of Textbox Control
SelectedBackColor Doesn't work

Thanks

Re: SelectedBackColor Of Textbox by Bernhard

Bernhard
Fri Jan 19 10:07:35 CST 2007

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

Re: SelectedBackColor Of Textbox by Taha

Taha
Fri Jan 19 10:23:18 CST 2007

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



Re: SelectedBackColor Of Textbox by Dan

Dan
Fri Jan 19 12:14:06 CST 2007

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
>
>



Re: SelectedBackColor Of Textbox by Taha

Taha
Fri Jan 19 16:02:30 CST 2007

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
>>
>>
>
>



Re: SelectedBackColor Of Textbox by Dan

Dan
Fri Jan 19 16:09:55 CST 2007

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
>>>
>>>
>>
>>
>
>



Re: SelectedBackColor Of Textbox by Taha

Taha
Fri Jan 19 16:59:38 CST 2007

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
>>>>
>>>>
>>>
>>>
>>
>>
>
>



Re: SelectedBackColor Of Textbox by Dan

Dan
Fri Jan 19 17:41:06 CST 2007

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
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>



Re: SelectedBackColor Of Textbox by Taha

Taha
Fri Jan 19 18:21:06 CST 2007

??

> 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
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>



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
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>



Re: SelectedBackColor Of Textbox by Taha

Taha
Sat Jan 20 07:50:49 CST 2007

Thank you Dan I think the problem from Language settings


"Dan Freeman" <spam@microsoft.com> wrote in message
news:OISyXcFPHHA.3316@TK2MSFTNGP05.phx.gbl...
> 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
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>