Beiträge von Xatosch

    Hallo,

    habe gerade festgestellt das in jeder TextBox die im WPT-Format gespeichert wird, sich die kompletten RTF-Variablen erneut befinden :-\

    Das bläht das Dokument unnötig auf und diese werden doch im Dokument ganz oben gespeichert? Ich in meinem Dokument über 60 Variablen die ich in der TextBox unter userprops wiederfinden...

    Wie kann man das unterdrücken?

    Mfg, Kai Brendel

    Hallo,

    ich füge mit obj := rtf.TextObjects.InsertTextBox eine TextBox hinzu.
    Mit obj.Extra.Values['NoPrint'] = 'True' merke ich mir das diese nicht gedruckt werden soll...

    In rtf.OnTextObjectPaint kann ich mittels ContinueMode = [] auch alles soweit unterdrücken, nur wpObjPaintContents wird trotzdem ausgeführt, das heisst Rahmen und so bleiben weg, der Text in der Box wird aber trotzdem dargestellt...

    Wie kann ich die Ausgabe komplett unterdrücken?

    Mfg, Kai Brendel

    Moin,

    ich erzeuge mittels ParStyles.AddStyle('MYSTYLE') einen neuen Style, geht auch gut und kann verwendet werden...

    Aber wie kann ich diesen Style wieder löschen? ParStyles.Delete() bringt immer "ungültiges element" und wenn ich per ParStyles.Clear ALLE lösche, sind nach dem Speichern und wieder Öffnen alles Styles wieder da!?!?

    Im WPT-File stehen die auch trotzdem drin!

    Mfg, Kai Brendel

    Zitat von wpsupport

    They should not be used in footers, in headers they are ok and can be moved down on the page.

    Now I'm a little bit confused :roll: In an other thread you wrote textboxes in footers are ok and fully functional :?: :?: :?: :?:

    Zitat

    In my test I can have text boxes in footers, too.

    Welche Aussage ist jetzt richtig?

    Hello,

    default components have the event OnContextPopup, which is helpful to popup a DevEx menu for example, instead the standard popup menu.

    Can you implement a OnObjectContextPopup but with an additional parameter: the clicked object...

    You are doing something like this in TWPCustomRtfEdit.DoContextPopup for images, but i have no chance to act on TextBoxes! You can give the CurrentTextObjectUnderMouse to the event...

    Regards, Kai Brendel

    Hello,

    for headers:

    Code
    rtf.ActiveText := rtf.HeaderFooter.Get(wpIsHeader, wpraOnFirstPage);


    your update works, in first tests, but not for footers....

    [Blockierte Grafik: http://pixandmore.com/footer.png]
    hmmm, image is in preview mode visible, not in the post???

    Code
    rtf.ActiveText := rtf.HeaderFooter.Get(wpIsFooter, wpraOnFirstPage);

    In both ways, the WPT-File is saved and loaded corretly, but the textbox is for footers not accessible!

    PS: The same for images...


    Mfg, Kai Brendel

    Hello,
    when I insert a text in the header, the content is not displayed:

    Code
    rtf.ActiveText := rtf.HeaderFooter.Get(wpIsHeader, wpraOnFirstPage);
    obj := rtf.TextObjects.InsertTextBox(1000, 1000, block);
    obj.Mode := [wpobjDrawAsText];
    block.RtfText.AsString := 'Hello World';

    If I save the document, the <txtobj> is stored under
    <element kind="Header" Range="OnFirstPage">

    If I use
    rtf.ActiveText := rtf.BodyText;
    its working

    Mfg, Kai Brendel