RichEdit_SetCharFormat True parameter bug 4.21 - 4.23 (already have Rich text mode) |
Author: |
Message: |
Flash
Junior Member
All time Ready
Posts: 86 Reputation: 2
44 / /
Joined: Aug 2006
|
O.P. RichEdit_SetCharFormat True parameter bug 4.21 - 4.23 (already have Rich text mode)
i tryed this:
ChildWnd5_Update.RichEdit_SetCharFormat("Text_Update",true,0,0,0,0,0,0x0000008b,"")
ChildWnd5_Update.RichEdit_SetCharFormat("Text_Update",true,-1,-1,-1,-1,-1,0x0000008b,"")
ChildWnd5_Update.RichEdit_SetCharFormat("Text_Update",true,1,1,1,1,1,0x0000008b,"")
i think bug with the true parameter '[boolean] SetOnSel'
if i set to true nothing change, and false colors work and others parameter to.
This post was edited on 06-07-2007 at 03:09 AM by Flash.
|
|
06-03-2007 01:20 PM |
|
|
Volv
Skinning Contest Winner
Posts: 1233 Reputation: 31
35 / /
Joined: Oct 2004
|
RE: RichEdit_SetCharFormat parameter bug 4.22
Doesn't appear to be working here either when SetOnSel is true (works fine when it's set to false).
EDIT: Maybe this requires something to be changed in the window xml file
* Volv checks now
EDIT #2: Figured it out, you need to change the text mode in the window schema file (within the RichEditControl's definition):
code: <Attributes>
<TextMode>Rich Text</TextMode>
</Attributes>
This is because the text mode defaults to plaintext.
Also, does anyone know how i would go about simulating a RichEdit_GetCharFormat function (using API or otherwise)?
This post was edited on 06-03-2007 at 02:08 PM by Volv.
|
|
06-03-2007 02:01 PM |
|
|
Flash
Junior Member
All time Ready
Posts: 86 Reputation: 2
44 / /
Joined: Aug 2006
|
O.P. RE: RichEdit_SetCharFormat parameter bug 4.22
Difinitvely the true parameter broke all cmd
and the truely order for RGB is 0xRRGGBB but in msgplus we need to convert the order to 0xBBGGRR why?
- how i can scroll down the richeditbox, for got my last line added?
This post was edited on 06-03-2007 at 03:44 PM by Flash.
|
|
06-03-2007 03:30 PM |
|
|
deAd
Scripting Contest Winner
Posts: 1060 Reputation: 28
– / /
Joined: Jan 2006
|
RE: RE: RichEdit_SetCharFormat parameter bug 4.22
quote: Originally posted by Flash
and the truely order for RGB is 0xRRGGBB but in msgplus we need to convert the order to 0xBBGGRR why?
that's a standard windows thing. Passing colors in the Windows API requires what's called a COLORREF, which is basically just a backwards hex color.
|
|
06-03-2007 03:36 PM |
|
|
Volv
Skinning Contest Winner
Posts: 1233 Reputation: 31
35 / /
Joined: Oct 2004
|
RE: RE: RichEdit_SetCharFormat parameter bug 4.22
quote: Originally posted by Flash
Difinitvely the true parameter broke all cmd
Did you read my post?
quote: Originally posted by Flash
- how i can scroll down the richeditbox, for got my last line added?
If you mean using code, try placing this (whenever you want the box to scroll down to the bottom):
code: PlusWnd.EditBox_SetCurSel( 'myRichEditControl', PlusWnd.GetControlText('myRichEditControl').length, PlusWnd.GetControlText('myRichEditControl').length);
I'm not sure if it will work though
|
|
06-04-2007 11:04 AM |
|
|
Flash
Junior Member
All time Ready
Posts: 86 Reputation: 2
44 / /
Joined: Aug 2006
|
O.P. RE: RichEdit_SetCharFormat parameter bug 4.22
This post was edited on 06-04-2007 at 08:00 PM by Flash.
|
|
06-04-2007 08:00 PM |
|
|
Volv
Skinning Contest Winner
Posts: 1233 Reputation: 31
35 / /
Joined: Oct 2004
|
RE: RichEdit_SetCharFormat parameter bug 4.22
quote: Originally posted by Flash
-> yes i tryed rich text mode and nothing change.
Are you sure you've formatted your richeditcontrol attributes correctly?
code: <Control xsi:type="RichEditControl" Id="txtMessage">
<Position Top="100" Width="362" Height="170" Left="13"/>
<Caption>Email</Caption>
<Attributes>
<TextMode>Rich Text</TextMode>
</Attributes>
</Control>
|
|
06-05-2007 07:02 AM |
|
|
Flash
Junior Member
All time Ready
Posts: 86 Reputation: 2
44 / /
Joined: Aug 2006
|
O.P. RE: RichEdit_SetCharFormat parameter bug 4.22
quote: Originally posted by Volv
quote: Originally posted by Flash
-> yes i tryed rich text mode and nothing change.
Are you sure you've formatted your richeditcontrol attributes correctly?
code: <Control xsi:type="RichEditControl" Id="txtMessage">
<Position Top="100" Width="362" Height="170" Left="13"/>
<Caption>Email</Caption>
<Attributes>
<TextMode>Rich Text</TextMode>
</Attributes>
</Control>
yes Master
code: <Control xsi:type="RichEditControl" Id="Text_Update">
<Position Top="21" Left="9" Width="109" Height="36"/>
<Attributes>
<TextMode>Rich Text</TextMode>
<ReadOnly>true</ReadOnly>
<Multiline>true</Multiline>
</Attributes>
<BackgroundColor><GlobalColor>grey</GlobalColor></BackgroundColor>
</Control>
|
|
06-05-2007 09:31 AM |
|
|
Flash
Junior Member
All time Ready
Posts: 86 Reputation: 2
44 / /
Joined: Aug 2006
|
O.P. RE: RichEdit_SetCharFormat True parameter bug 4.21 - 4.23 (already have Rich text mode)
i try this but that not work
code: Interop.Call("User32", "SetFocus", w.GetControlHandle("Text_Update"))
This post was edited on 06-07-2007 at 03:11 AM by Flash.
|
|
06-07-2007 03:11 AM |
|
|
Patchou
Messenger Plus! Creator
Posts: 8607 Reputation: 201
43 / /
Joined: Apr 2002
|
RE: RichEdit_SetCharFormat True parameter bug 4.21 - 4.23 (already have Rich text mode)
Send me a plsc file with a clear example of the bug to mplus@patchou.com and I'll check it out. As far as I know, there'S no problem in any of the RichEdit functions (but I may be wrong of course so I need to be sure of what you're trying to do exactly).
|
|
06-19-2007 05:45 PM |
|
|
Pages: (2):
« First
[ 1 ]
2
»
Last »
|
|