Beiträge von ralf.kaiser

    Techically it is true: 64 Bit does not make so much sense for a normal desktop application.

    But: Users always ask "I have a 64 Bit operating system. Do you have a 64 Bit version of the software?" And that has no technical reason! Most normal users even do not have a real idea what 64 Bit means anyway. But it is hip. It sounds cool for the users to say "All my software is 64 Bit".

    Zitat von wpsupport

    I see no reason not to take this path.

    Money?

    I have the V5 registered as a hobby programmer and the update to D2010 together with an possible update of WPTools is simply too expensive. (i am glad that other component sets i use are already ready for D2010 without the need of an extra update,,,)

    Hi,

    I had not seen that i have to start the spell check and handle the checker event to see the red lines (i expected that it would be enough to include the flag afsMisspelled)

    The use of the spell checker as "special marker" is currently only some kind of workaround. Can you give me a hint how i could mark some text and later remove this marks without touching any of the original formatting of the file?

    Ciao,
    Ralf

    Hello,

    i want to use the red curly lines from the spell check to mark some text. This mark has nothing to do with spelling but i need a mark that does not affect the other text properties and can be removed later.

    I have selected the text and included "afsMisspelled" to the current style.

    I expected to see the red curly line but all text marked in that way was displayed in bold afterwards. No curly red line was displayed

    Is it possible to use the spelling mechanism for that purpose or do you have another suggestion?

    I need a way to visually mark some text and this marks should be removed when the text is saved so i cannot use the background color for example because the text could have a different background color for some parts when it is loaded and this would be overwritten by the marking.

    Thanks in advance,
    Ralf

    Hi,

    i want to modify a couple of aspects in a text (fonts, font sizes, some text modifications) and want to undo them all together with one undo call.

    I have tried:

    WPUndostack.StartUndoLevel;
    [modify the text]
    WPUndostack.EndUndoLevel;

    But when i press "Undo" all operations are undone step by step (they should be undone at once)

    After that i have tried to use:

    WPUndostack.StartUndoLevel;
    strm := WPUndoStack.SaveStream(false, nil, nil, nil, -1, true);
    WPrichText.SaveToStream(strm);
    [modify the text]
    WPUndostack.EndUndoLevel;

    In the Undo event i reload the content from the given stream.

    Now the operations are undone step by step and then when the undostack reaches the stream i saved teh wholöe text is replaced by the previous version (as it should by the first undo)

    The "operations" include: modify the selected text content, replacing some fonts, setting some font sizes and colors. Sometime the text may be replaced completely using "WPRichText.Text := 'some text'". Maybe that causes the problems with the undostack?

    How can i group these operations to one undo step??
    (StartUndoLevel/EndUndoLevel are not working as expected)

    Using V4.25 in Delphi 2005 Enterprise

    Thanks in advance,
    Ralf

    Hi,

    when performing a mail merge "Contents.StringValue" is defined as normal string.

    Is it possible to use the mail merge feature with unicode characters?

    Because "Contents" does not offer something like "WideStringValue" all unicode characters are displayed as "?" in the text after a mail merge.

    Currently we did not do an update to V5 because this would mean a very large amount of work for the project. Would you recommend updating to V5 when using pure unicode (maybe the migration work is easier and not so time consuming then developing "workarounds" in V4?)

    Ciao,
    Ralf

    Hello,

    we have documents with chinese text that are displayed in WPTools 4. The font used is "Simsun" and the texts are displayed by activating DBCS support in WPTools and they are displayed correct in WPTools.

    When i try to save such a document to HTML i see only garbage characters in the output file.

    I have tried to use "soAllUniCodeEntities" in HTML stroe options but then every chinese character is written as "#0" in the resulting HTML file (even setting memory mode to unicode did not help)

    I guess that is because the text itself is DBCS and not unicode - is tthat correct?

    Is the only solution to convert the text to real unicode? (then i have to find out how to do that :( )

    Do you know any other solution?

    Thanks in advance,
    Ralf

    Zitat von wpsupport

    Hi,

    the last TRUE adds those elements. Done in WPAction

    Hi,

    you mean i have to change the source in WPAction?

    I usually do not alter the source code of 3rd party components because i would have to do this on every update of the component set (and WPTools is updated/enhanced more then other sets)

    Would it be possible to add a property to control this in future versions? (or maybe a global variable or whatever)

    Ciao,
    Ralf

    Hi,

    i am using a TWPToolsCustomEditContolAction together with a dxBars combobox.

    The items of the combo list always contain the entries "default", "Edit style" and "New style".

    How can i remove these entries (do not create them at all)?

    I Just want to display the styles and non of these control entries (i have tried cbsStyleNames and cbsStylenamesEx and can see no difference)

    Ciao,
    Ralf

    Hello,

    when i right click on a TWPRichText (5.20.3), select "Change page size", set the size to "A4" and repeat this selection the page size is always reset to "Letter".

    How can i set the page size to "A4" permanetly?

    Additionally i have just noticed that the designmode-rightclick-dialog does not alter Header.PageSize when i leave the dialog with OK.

    What do i miss?

    TIA,
    Ralf

    Hello,

    i have a TWPRichText that is controlled by a style collection.

    The style collection contains a style ("Normal") where next style is set to "Normal". The style is created in designmode in the IDE.

    When i start the program "Normal" is selected as style for the text but when i create a new paragraph it does not have "Normal" as style, is has "<Default>".

    When i edit the "Normal" style at runtime the next style attribute that was set at designtime is cleared. Only after setting it at runtime with the dialog i get the expected result that new paragraphs have the style "Normal"

    Currently i do not save or load the styles to/from CSS, they are only created at designtime inside the Delphi IDE.

    Why is the next style attribute cleared (bug or "by design"??)?

    Ciao,
    Ralf

    Hi,

    i am using this to set the par color:

    Code
    var aColor: TColor;
    
    
      aColor := clRed;
      WPRichText.CurrAttr.ParColor := WPRichText.CurrAttr.ColorToNr(aColor, true);
      WPRichText.CurrAttr.ASet(WPAT_ShadingValue, 100);
      WPRichText.ReformatAll();

    but still no other color then the default is shown, the paragraph background is alway white.

    I use this code with an empty WPRichText directly after the for has been displayed. Are there any options that influence the display of the paragraph color?

    What can cause this? (i mean, this code is not that complicated...)

    TIA,
    Ralf