Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

OLE-Objekt in einem RTF erstellen

Empfohlene Antworten

Veröffentlicht

Tachchen

Ich habe folgendes Problem, wieder mal. ;)

Ich soll meinem TVP (Textverarbeitungsprogramm) Smileys zur Verfügung stellen. Ich habe rechts vom RTF ne Picturebox gesetzt und dort die Smileys reingepackt. Wenn man nun einen Smiley anklickt wird er direkt in das RTF eingefügt.

Dies bewerkstellige ich über "OLEObjects.Add", soweit so gut. Das Problem dabei ist allerdings, das sich beim einfügen der Smileys ins RTF der "Microsoft Photo Editor" öffnet.

Nun die Frage, jemand ne Idee wie ich das unterbinden kann?

Zitat von Quellcode

Private Sub picSmiley_Click(Index As Integer)

Dim File As String

File = picSmiley(Index).Tag

rtfText.OLEObjects.Add , , SmPath & File

Zur Erläuterung des Codes.

Ich hab jedes Smiley in eine weitere Picturebox gepackt, welche einen Index haben. So brauch ich die Prozedur ja nur einmal zu schreiben.

"SmPath" ist der Zielpfad bis kurz vor dem Smiley, im Tag steht dann die Endung des Pfades. Also:

SmPath = C:\Dokumente und Einstellungen\adamsb\Desktop\VB6 Programme\Drow\Smileys\

und picSmiley(Index).Tag:

Grins.Gif oder Smile.gif etc. pp.

dies weise ich dann dem String "File" zu und verbinde ihn mit dem anderen String "SmPath".

Damit hätten wir schonmal den kompletten Zielpfad.

Dann pack ich den Smiley über "OLEObjects" des "RichtTextField" mit "Add" hinzu. Und genau dort öffnet sich dann der Photo Editor von Microsoft.

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.