Domino 9 und frühere Versionen > ND6: Entwicklung

Schriftart, Grösse etc. in mehreren Ansichten ändern

<< < (2/2)

ctillmanns:
Stimmt eigentlich.
Auch Fonts und all das kann man da ab ND6 machen.
Aber es gibt noch keine vorgefertigte Funktion in Notes, aber vielleicht findet man in OpenNtf oder sonstwo ein Projekt dazu.

jr:
Ich hab' das komplett mit einem Auswahldialog für Schriftart, Farbe, Attribute und Stil gemacht. Da kann dann der Kunde selbst seine Ansichten anpassen.

Hier ein Ausschnitt aus der Funktion:


Set   color   = session.CreateColorObject
c         = Mid(doc.sFontColor(0), 3)
Call color.SetRGB(CInt("&h" & Left(c, 2)), CInt("&h" & Mid(c, 3, 2)), CInt("&h" & Right(c, 2)))

Forall view In db.Views
   Print "Bearbeite Ansicht " & view.Name
   Forall col In view.Columns
      col.FontFace          = doc.sFontName(0)
      col.FontPointSize      = doc.nFontSize(0)
      col.FontStyle         = doc.nFontStyle(0)
      col.FontColor         = color.NotesColor
   End Forall
End Forall


Für die doc.sFontName usw. musst Du dann Deine Werte einsetzen.

Übrigens gibt es alle NotesViewColumn-Attribute auch für den Header, also col.HeaderFontFace, col.HeaderFontColor, usw.

ajo:
danke für die tips

TMC:
Und ansonsten halt mit XML.

Ben Poole: Simple DXL processing


--- Zitat ---Fill out a document, click a button, and you can update the colours of all action bars and action bar colours within a specified database. There are a few toggles enabling you to select certain design elements in the NotesNoteCollection that is parsed, but essentiallly, that’s all there is to the application.

--- Ende Zitat ---

Ich bekam damals allerdings beim testen "DOM parser operation failed", war glaub ich im 6.5.1er oder 6.5.2er Client, hab das dann aber nicht mehr näher evaluiert.

Navigation

[0] Themen-Index

[*] Vorherige Sete

Zur normalen Ansicht wechseln