|
-
Feb 7th, 2013, 11:58 AM
#1
Thread Starter
PowerPoster
Keep RTB Text Selection Active While Selecting Highlight Color
I have a combobox as part of a toolbar where I select a text background highlight color.
Once the combobox receives focus, the RTB (richtextbox) loses the
selected text highlight (text is there just highlight reverts to background color).
After combobox selection the test selected previously is highlighted with the correct color
My guess is the only workaround for this is using a ActiveX because of the need to be in a separate thread.
Can someone confirm and Any other workaround?
-
Feb 7th, 2013, 12:36 PM
#2
Re: Keep RTB Text Selection Active While Selecting Highlight Color
So you want the text in the RTB to still look like it is highlighted when the combobox receives focus?
-
Feb 7th, 2013, 01:04 PM
#3
Re: Keep RTB Text Selection Active While Selecting Highlight Color
Is the HideSelection property what you're looking for?
On Local Error Resume Next: If Not Empty Is Nothing Then Do While Null: ReDim i(True To False) As Currency: Loop: Else Debug.Assert CCur(CLng(CInt(CBool(False Imp True Xor False Eqv True)))): Stop: On Local Error GoTo 0
Declare Sub CrashVB Lib "msvbvm60" (Optional DontPassMe As Any)
-
Feb 7th, 2013, 01:14 PM
#4
Re: Keep RTB Text Selection Active While Selecting Highlight Color
@Bonnie.....I bet it is....that works. Didn't know of that property....thanks for the info.
-
Feb 7th, 2013, 01:29 PM
#5
Re: Keep RTB Text Selection Active While Selecting Highlight Color
Sam, that property is also available in TextBoxes.
On Local Error Resume Next: If Not Empty Is Nothing Then Do While Null: ReDim i(True To False) As Currency: Loop: Else Debug.Assert CCur(CLng(CInt(CBool(False Imp True Xor False Eqv True)))): Stop: On Local Error GoTo 0
Declare Sub CrashVB Lib "msvbvm60" (Optional DontPassMe As Any)
-
Feb 7th, 2013, 01:58 PM
#6
Thread Starter
PowerPoster
Re: Keep RTB Text Selection Active While Selecting Highlight Color
Thanks Bonnie West -- easy solution.
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
|