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.

Durchsichtiges Textfeld

Empfohlene Antworten

Weiss nicht ob es Dir vielleicht weiterhilft, aber hier ist eine Methode zur Formulartransparenz. Vielleicht kannst Du das eine, oder andere für Dich ableiten.

  • Autor

Mhhh... Nicht wirklich.

Habe nun ein (hoffentlich) gutes work-around implementiert:

Die Textfelder sind visible=false gesetzt. Vor den eigentlichen Textfelder sind Caption-Felder (auch ein Array). Wenn nun auf ein Caption-Feld geklickt wird erscheint das Text-Feld. Bei einem Lost-Focus werden die Caption-Felder den Text-Felder angeglichen....

Private Sub Label_Click(Index As Integer)

Dim i As Integer


    For i = 0 To Text().UBound

        Text(i).Visible = False

    Next i


    Text(Index).Visible = True

    Text(Index).SetFocus


End Sub



Private Sub Text_LostFocus(Index As Integer)

    Label(Index).Caption = Text(Index).Text

    Text(Index).Visible = False

End Sub

Der Label.Backstyle müsste noch auf transparent geschaltet werden. Und dann das ganze noch als UserControl zu realisieren. Schon hast Du ein Element mehr in Deiner Sammlung.

  • Autor

Label.Backstyle hatte ich natürlich auf transparent gesetzt. Hatte ich vergessen zu erwähnen. WEiterhin habe ich auch noch ein KeyPress Event von den Text-Feldern abgefangen und zwar bei ASCII(13) := RETURN verliert das Textfeld den Focus, ergo wird der Text in das Label-Feld übernommen.

Falls noch der Bedarf an einem transparenten Textfeld besteht, gibt es hier ein Tutorial.

Ist zwar ein wenig "umständlich" aber dafür hat man endlich durchsichtige Textfelder. :)

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.