vb@rchiv
VB Classic
VB.NET
ADO.NET
VBA
C#
NEU! sevCoolbar 3.0 - Professionelle Toolbars im modernen Design!  
 vb@rchiv Quick-Search: Suche startenErweiterte Suche starten   Impressum  | Datenschutz  | vb@rchiv CD Vol.6  | Shop Copyright ©2000-2025
 
zurück

 Sie sind aktuell nicht angemeldet.Funktionen: Einloggen  |  Neu registrieren  |  Suchen

Allgemeine Diskussionen
Re: position einer form innerhalb eines midi projektes 
Autor: BasTler
Datum: 30.06.05 09:11

Hier geht es weiter.....
Function IniReadPvtString(ByVal Section As String, ByVal Entry As String, ByVal _
  Default As String, ByVal IniFile As String) As String
  Dim ret As Long
  Dim s As String
 
  s = Space$(255)
  ret = GetPrivateProfileString(ByVal Section, ByVal Entry, ByVal Default, _
    ByVal s, 255, ByVal IniFile)
  IniReadPvtString = Asciiz2String(s)
End Function
 
Function Asciiz2String(asciiz As String) As String
  Dim PosNull As Integer
 
  For PosNull = 1 To Len(asciiz)
    If Asc(Mid$(asciiz, PosNull, 1)) = 0 Then Exit For
  Next PosNull
  Asciiz2String = Left$(asciiz, PosNull - 1)
End Function
 
Sub GrößeLesen(frm As Form, ByVal Eintrag As String)
  Dim s As String
 
  If Eintrag = "" Then Eintrag = "WindowPos"
  s = IniReadPvtString(CStr(App.Title), Eintrag, "", "d:\IBSPOS.ini")
  If s = "" Then
    frm.Move 0, 0
  Else
    frm.Move Val(ItemExtract(2, s, ",")), Val(ItemExtract(1, s, ","))
    On Error Resume Next
    If Not frm.MDIChild Then
      frm.Height = Val(ItemExtract(3, s, ","))
      frm.Width = Val(ItemExtract(4, s, ","))
    End If
    On Error GoTo 0
    frm.CboZoom.ListIndex = Val(ItemExtract(5, s, ","))
  End If
End Sub
 
Sub GrößeSpeichern(frm As Form, ByVal Eintrag As String)
  Dim s As String, Titel As String
  Dim ret As Long
 
  If Eintrag = "" Then Eintrag = "WindowPos"
  If frm.Top < 0 Or frm.Left < 0 Then
    s = Trim(0 & "," & 0 & "," & Str$(frm.Height) & "," & Str$(frm.Width) & "," _
      & Str$(frm.CboZoom.ListIndex) & "," & Str$(frm.WindowState))
  Else
    s = Trim(Str$(frm.Top) & "," & Str$(frm.Left) & "," & Str$(frm.Height) & _
      "," & Str$(frm.Width) & "," & Str$(frm.CboZoom.ListIndex) & "," & Str$( _
      frm.WindowState))
  End If
  Titel = App.Title
  ret = WritePrivateProfileString(ByVal Titel, ByVal Eintrag, ByVal s, ByVal _
    "d:\IBSPOS.ini")
End Sub
Hoffe es fehlt nix, weil es ist aus einem Projekt mit Cut&Paste heraus geholt.

Gruß BAStler
alle Nachrichten anzeigenGesamtübersicht  |  Zum Thema  |  Suchen

 ThemaViews  AutorDatum
position einer form innerhalb eines midi projektes1.009Sophus20.06.05 20:23
Re: position einer form innerhalb eines midi projektes706ModeratorDieter21.06.05 06:43
Re: position einer form innerhalb eines midi projektes668Sophus26.06.05 01:14
Re: position einer form innerhalb eines midi projektes675wincnc26.06.05 18:59
Re: position einer form innerhalb eines midi projektes653Sophus27.06.05 02:49
Re: position einer form innerhalb eines midi projektes695BasTler27.06.05 13:45
Re: position einer form innerhalb eines midi projektes726Sophus30.06.05 01:50
Re: position einer form innerhalb eines midi projektes672BasTler30.06.05 09:05
Re: position einer form innerhalb eines midi projektes707BasTler30.06.05 09:11
Re: position einer form innerhalb eines midi projektes664Sophus01.07.05 01:55

Sie sind nicht angemeldet!
Um auf diesen Beitrag zu antworten oder neue Beiträge schreiben zu können, müssen Sie sich zunächst anmelden.

Einloggen  |  Neu registrieren

Funktionen:  Zum Thema  |  GesamtübersichtSuchen 

nach obenzurück
 
   

Copyright ©2000-2025 vb@rchiv Dieter Otter
Alle Rechte vorbehalten.
Microsoft, Windows und Visual Basic sind entweder eingetragene Marken oder Marken der Microsoft Corporation in den USA und/oder anderen Ländern. Weitere auf dieser Homepage aufgeführten Produkt- und Firmennamen können geschützte Marken ihrer jeweiligen Inhaber sein.

Diese Seiten wurden optimiert für eine Bildschirmauflösung von mind. 1280x1024 Pixel