Hi Julian,
thanks for that info. I was just curious if a .NET version (or VCL.NET) is in sight. Although i do not need it currently (but that may change from day to day...).
Ralf
Hi Julian,
thanks for that info. I was just curious if a .NET version (or VCL.NET) is in sight. Although i do not need it currently (but that may change from day to day...).
Ralf
Hi Julian,
i just noticed the announcement for "TextDynamic".
Is this component supposed to be the .NET version of WPTools? Or will there be a WPTools for VCL.NET too?
I am asking because of the code compatibility. I guess that "TextDynamic" will not be code compatible to WPTools, right?
Ciao,
Ralf
Zitat von wpsupportWhat value do you use for 'aColor' ? That is not a TColor value, you need to combert it to an index value using CurrAttr.AddColor (as it was in V4).
Julian
Hi Julian,
according to the helpfile this value is a TColor:
Zitat
Form the helpfile:
procedure ASetColor(WPAT_Code: Byte; Value: TColor);
So i had assigned a TColor value (clRed for example).
I will try to assign a color index this evening.
BTW: Is there a complete list of all WPAT_ codes somewhere, i havn't fond one yet.
Thanky,
Ralf
Hello,
for a status display and an external toolbar (no WPTools-Toolbar) i need to get and set the color of the current paragraph (or the paragraph color of the selected text if ans is selected)
I have tried it with CurrAttr.ParColor and CurrAtr.GetColorEx with no success. The help says that GetColorEx can be used with WPAT_ParColor but i can not find WPAT_ParColor anywhere.
I als also tried:
WPRichText.ActivePar.ASetColor(WPAT_BGColor, aColor); and
WPRichText.SelectedTextAttr.ASetColor(WPAT_BGColor, aColor);
both with no success. What goes wrong with my code? (The set methods were followed by a ReformatAll)
Can cou give me a short hint?
Thanks in advance,
Ralf
Hi,
Fine thats even better then using only simple variables!
Ciao,
Ralf
Hi Julian,
regarding the new faeture that displays the current scroll position:
The hint text can be cofigured using the variable "WPPageHintStr" but it would be nice if the colors and/or the font of the hint could be configured too.
The easiest way would be to introduce some new variables:
WPPageHintBackgroundColor
WPPageHintFontColor
WPPageHintFontName
WPPageHintFontSize
I would prefer to use a new event e.g. "OnGetPageHintStr" that passes these variables as VAR parameters.
What do you think?
Ciao,
Ralf
Hi Alessandro,
after playing around a while i deleted all cookies and suddenly i am able to login with FireFox too...
Ciao,
Ralf
Hello,
i know it is off topic here but i did not know where to post questions about the forum itself.
Problem: When using Firefox i am not able to login to the forum (auto login is activated), using IE it works without problems.
Firefox gives me several JavaScript errors when i open the forum:
Fehler: Unerkannte at-Regel oder Fehler beim Verarbeiten der at-Regel '@import'.Quelldatei: http://wpcubed.com/forum/index.phpZeile: 213
Line 213 is
/* Import the fancy styles for IE only (NS4.x doesn't use the @import function) */
@import url("templates/subSilver/formIE.css");
Maybe this one causes the problem (the other errors only have to do with not supported styles)
Can it be that phpbbs does not detect FireFox correctly?
Note: in some other forums that are based on phpbbs i can login without problems with FireFox!
Ciao,
Ralf
SORRY!!
I found out that the other program had created the text inside an invisible table!! So the enter key created only linefeeds cause WPT4 does not support paragraphs in tables.
My fault,
Ralf
Hello,
i have some text inside a TWPRichText that was copied via clipboard from another application. This text contains only linefeeds (SHIFT-ENTER) and no paragraphs (ENTER).
When i place the cursor somewhere inside the text and hit the enter key it inserts another linefeed but no paragraph end. Only at the start of the text i am able to insert a new paragraph.
How can i insert a new paragraph inside the text??
I am using the version 4.25 of WPrichText
Thanks in advance,
Ralf
Zitat von jzierschHi,
Hello,
wouldn't it be a good idea to encapsulate the "ColorToNr" in the setter method of "CurrAttr.Color" so that the calling code only has to do a "CurrAttr.Color := clRed"?
Maybe the property "Color" could call "ColorToNr(..., false)" and a new property "NewColor" could call "ColorToNr(..., true)"?
Just an idea...
Ciao,
Ralf