Beiträge von GT43A

    Nein das tut er bei mir eben nicht, es wir zwar in diesen Bereich gescrollt so dass die Zeile sich im sichtbaren Bereich des Monitor befindet, es wird aber eben nicht der Cursor gesetzt.

    Und die Aktuelle Zeilennummer Markieren so kann man gleich die zu suchende Zeilennummer eingeben.

    Nein das meinte ich gar nicht, z.B. ich arbeite in Zeile 2500 und muss zur Zeile 25.

    Dan benutze ich die Tastenkombination Strg - G OK und jetzt wird dein Dialog aufgerufen und in diesem steht dann die Zeilennummer z.B. 2500 schon drin ICH tippe sie nicht ein, sie wird übernommen. Das ist die Zeile die ich gerade bearbeite.

    Ich muss diese erst löschen bevor ich meine Zeile 25 oder so eingeben kann. Ein Parr mal mag das gehen, aber heute bin ich viel hin und her gesprungen und da ist das schon...

    Hallo Joerg,

    das ist mir schon bewusst,

    ABER wen du im Kalender z.B. den 20 doppelt anklickst steht in der Variable der 20..

    UND jetzt ohne den Monat oder die Pfeil Taste NUR

    einfach 1x z.B. den 15 anklicken so steht in der Variable immer noch der 20 drin.

    Dann klicke auf einen anderen Tag und jetzt hast du erst den 15 und nicht die neu Auswahl, ich hinke mit dem klicken immer ein Tag hinterher.

    Zitat von _Joerg_;892500

    Versuch doch mal, das Datum auszuwerten. Versuch zuverlässig ein Datum im Juni zu erhalten. Da mußt Du 6 Klicks lang raten, ob das schon das entgültige Datum ist.
    Erst wird die Variable leer sein (logisch); wenn Du dann auf einen der Pfeile klickst, erhälst Du sofort einen Wert. Dieser Wert entspricht dem Tagesdatum in Kombination mit dem angesteuerten Monat.
    Das gibt einen Haufen Überprüfungen, wann der User denn nun wirklich sein Datum gefunden hat.

    Hallo Frank,

    spitze jetzt habe ich meine Einstellungen auch auf mein Schlepy.

    Ne Kleinigkeit hätte ich noch als Vorschlag, könntest du bei Strg - G den Cursor in die Zeile setzen und blinkern lassen.;)

    Und die Aktuelle Zeilennummer Markieren so kann man gleich die zu suchende Zeilennummer eingeben.

    MfG

    Hallo,

    $54000000 = ohne KW + Monatstage vor und nach dem Aktuellen Monat

    $54000004 = mit KW + Monatstage vor und nach dem Aktuellen Monat

    $5400004C = mit KW aber nur der Aktuelle Monat.

    Zitat von THFR;892433

    Andreas hat von

    Code
    Control("DIALOG","",$54000000,255,26,184,169,%hwnd,0,%hinstance,$0)


    in

    Code
    Control("SysMonthCal32","Kalender",$5000004C,560,0,220,200,%HWnd,5000,%hinstance,$0)


    geändert. Unter XP wird nun nichts angezeigt.
    Andreas, warum die Änderung?

    Gruß Thomas

    Hallo Andreas,
    bei diesem Beispiel von dir Blinkert es kurz rot auf und dann sofort wieder Weißer Hintergrund und Schwarze Schrift.


    Die rot eingefärbten SendMessage.. bleiben ohne Wirkung.

    Kal_SetBKColor(Kalender&,$0000FF)
    Kal_SetDayColor(Kalender&, $008800)
    Kal_SetHeaderColor(Kalender&, $0080FF)
    Kal_SetMonthBk(Kalender&, $C4FFFF)


    [HTML]
    Declare Ende%
    Subclassproc
    If SubClassMessage(Kalender& , 15)'Tag angeklickt
    SetMenuItem 15000
    Set("WinProc",1)
    EndIf
    EndProc
    Proc Kal_GetDate
    Declare Datum#
    Dim Datum#,20
    SendMessage(Kalender&,4097,0,Datum#)
    Var Zurück$ = format$("00",word(Datum#,6))+"."+format$("00",word(Datum#,2))+"."+format$("0000",word(Datum#,0))
    Dispose Datum#
    Return Zurück$
    EndProc
    Proc Kal_SetDate
    PARAMETERS Kalender&,Datum$
    Declare DATA#
    Dim DATA#,20
    Word DATA#,0 = Val(substr$(datum$,3,"."))' Jahr
    Word DATA#,2 = Val(substr$(datum$,2,"."))' Monat
    Word DATA#,6 = Val(substr$(datum$,1,"."))' Tag
    SendMessage(Kalender&,$1002,0,DATA#)
    Dispose DATA#
    EndProc
    Proc Kal_SetBKColor
    Parameters Kalender&,Color&
    SendMessage(Kalender&, 4106, 0, Color&)
    Endproc
    Proc Kal_SetDayColor
    Parameters Kalender&,Color&
    SendMessage(Kalender&, 4106, 1, Color&)
    Endproc
    Proc Kal_SetHeaderColor
    Parameters Kalender&,Color&
    SendMessage(Kalender&, 4106, 2, Color&)
    Endproc
    Proc Kal_SetFontColor
    Parameters Kalender&,Color&
    SendMessage(Kalender&, 4106, 3, Color&)
    Endproc
    Proc Kal_SetMonthBk
    Parameters Kalender&,Color&
    SendMessage(Kalender&, 4106, 4, Color&)
    Endproc
    WINDOW 800,600
    Print "Test"
    Var Kalender&=Control("SysMonthCal32","Kalender",$5000004C,560,0,220,200,%HWnd,5000,%hinstance,$0)
    SubClass Kalender&,1
    Kal_SetDate(Kalender&,"1.6.2024")

    Kal_SetBKColor(Kalender&,$0000FF)
    Kal_SetDayColor(Kalender&, $008800)
    Kal_SetHeaderColor(Kalender&, $0080FF)
    Kal_SetMonthBk(Kalender&, $C4FFFF)

    WhileNot Ende%
    WaitInput
    If %Key = 2
    Ende% = 1
    ElseIf @MenuItem(15000)
    Locate 0,0
    Print Kal_GetDate()
    EndIf
    EndWhile
    SubClass Kalender&,0
    End[/HTML]

    Hallo Andreas,

    Hallo Joerg,
    erst mal Danke für deine Anwort, na ja das versteh ich nicht ganz, wen ich unter Windows XP draufklicke kann ich nicht das Datum von meiner augenblicklichen Auswahl auslesen! Sondern das was mal vorher markiert war.

    Man klickt mit der Maus auf ein Datumsfeld, lässt die Maustaste los und dann möchte man doch das Ergebnis sehen und nicht erst noch auf einem Button z.B. möchten Sie das Ergebnis sehen klicken oder einen Hinweis einblenden bitte mit der Maus noch einmal auf dieses Datumsfeld klicken.

    GetFocus() : Mit GetFocus() egal ob Win XP oder 7 bei diesem Control geht schon mal gar nicht, liegt das generell an der Einbindung der Control’s?

    Clicked() : Mit der Abfrage Clicked() nur unter Win 7 (getestet) wird nur immer das 1 Control erfasst, das 2 und weitere nie.

    Clicked() und GetFocus() in einer While geht auch nicht da wird GetFocus garantiert Ignoriert.

    Wenn ein Kalender Control in diese While mit Clicked abgefragt wird gibt es für Profan nur noch diese 1 Control sonst nicht’s.

    Auszug aus der Hilfe: Während @GetFocus ermittelt, ob das Element zum Zeitpunkt der Abfrage den Focus hat, ermittelt ob das Element beim letzten Waitinput angeklickt wurde. Zur Abfrage, ob irgendwelche Buttons oder andere Elemente angeklickt wurden, ist daher bevorzugt @Clicked zu verwenden.

    Und für mich ist dieses Control ein „anderes Element“.
    Und ein Kalender Control wird bestimmt in fast allen Programmen benötigt, ich hätte nie erwartet mich derart verrenken zu müssen um an das gewählte Datum des Benutzers zu kommen.

    Es geht doch auch mit dem Create("DateEdit"… ganz einfach;)

    MfG

    Hallo Andreas,

    mit den Sub ist ne gute Lösung, der Vorschlag von Rolland geht auch nicht unter XP:(



    würde gerne deinen Vorschlag aufnehmen und deinen Code auch als Vorlage Speichern,
    eine Frage hab ich dazu noch, ist es wirklich nötig die $H Windows.ph 2-mal zu laden?
    Oder kann ich einmal löschen?
    MfG

    Hallo,

    es geht auch mit den Mauskoordinaten ;)

    Hem mist,

    wider verkehrt formuliert!

    Ich habe jetzt die Schnipsel-Liste auf meinem Desktop PC soweit fertig!

    Meine Frage wie bekomme ich diese Liste und weitere Einstellungen (deines Lemmon) auf meinen Schleppy, da habe ich auch deinen Lemmon drauf nur eben ohne diese Einstellungen.


    Und noch mal alles Tippen und....:(

    Reicht es wen ich den Ordner xpedata Kopiere?

    Zitat von AHT;891436

    Das geht so nicht. Du musst erst die von den DLLs gesubclassten Controls zerstören, befor du die DLLs entlädst. Die Windowprocs der Fenster versuchen sonst, die Subclassingprozeduren in den DLLs anzuspringen. Das geht aber nicht, da die DLLs bereits entladen sind und das Programm hängt sich auf (100% Prozessorlast).



    Ok kommt nicht wieder vor, jetzt weiß ich warum und hab verstanden.
    Und danke für die Erläuterung.

    Hallo Thomas,

    Ne ne ich bin sogar froh über Kritik und Anregungen von euch denn nur so kann ich lernen!

    Webpage Frabbing Listview.dll und ProSpeed.dll

    Sebastian's Profan² Page SKControl.dll

    Zitat

    Zu lange Codes solltest Du soweit kürzen, das sie weiterhin Ausführbar sind
    und den Fehler reproduzieren, aber keine unnötigen Elemente enthalten.



    Hab ich mal versucht!

    Wie geschrieben als EXE beim Auslesen_Sichern „in dieser Einstellung MSN Debuger“!

    Code
    [/FONT][/COLOR][COLOR=black][FONT=Verdana]$H windows.ph[/FONT][/COLOR][FONT=Verdana][COLOR=black]$H messages.ph[/COLOR][/FONT][FONT=Verdana][COLOR=black]$H Structs.ph[/COLOR][/FONT][COLOR=black][FONT=Verdana]Def Createmutex(3) !"KERNEL32","CreateMutexA"[/FONT][/COLOR][FONT=Verdana][COLOR=black]Def CloseHandle(1) !"KERNEL32","CloseHandle"[/COLOR][/FONT][FONT=Verdana][COLOR=black]Def GetSysColor(1) !"USER32","GetSysColor"[/COLOR][/FONT] [FONT=Verdana][COLOR=black]Struct enumflags = Titel$(260), hWnd&[/COLOR][/FONT][FONT=Verdana][COLOR=black]Declare FindWindowFlags#,Mutex&,Programm_Info$[/COLOR][/FONT][FONT=Verdana][COLOR=black]Dim FindWindowFlags#, enumflags[/COLOR][/FONT][FONT=Verdana][COLOR=black]Programm_Info$ = "Test Programm"[/COLOR][/FONT][FONT=Verdana][COLOR=black]' *M Proc's[/COLOR][/FONT][FONT=Verdana][COLOR=black]Proc Check_doppelstart[/COLOR][/FONT][FONT=Verdana][COLOR=black]Parameters Mutex&,Name$ ' Mutexname[/COLOR][/FONT][FONT=Verdana][COLOR=black]Declare Error&[/COLOR][/FONT][FONT=Verdana][COLOR=black]Var fm& = Set("FastMode", 1)[/COLOR][/FONT][FONT=Verdana][COLOR=black]Error& = %WinError[/COLOR][/FONT][FONT=Verdana][COLOR=black]Mutex& = Createmutex(0,1,Addr(Name$))[/COLOR][/FONT][FONT=Verdana][COLOR=black]Error& = %WinError[/COLOR][/FONT][FONT=Verdana][COLOR=black]Set("FastMode", fm&)[/COLOR][/FONT][FONT=Verdana][COLOR=black]If Error& = 183[/COLOR][/FONT][FONT=Verdana][COLOR=black] Return 0[/COLOR][/FONT][FONT=Verdana][COLOR=black]Endif[/COLOR][/FONT][FONT=Verdana][COLOR=black]Return 1[/COLOR][/FONT][FONT=Verdana][COLOR=black]Endproc[/COLOR][/FONT][FONT=Verdana][COLOR=black]Proc EnumWindows[/COLOR][/FONT][FONT=Verdana][COLOR=black]Parameters hWnd&, lParam&[/COLOR][/FONT][FONT=Verdana][COLOR=black]If Not(~IsWindowVisible(hWnd&)) ' unsichtbare Fenster ignorieren[/COLOR][/FONT][FONT=Verdana][COLOR=black] Return 1[/COLOR][/FONT][FONT=Verdana][COLOR=black]EndIf[/COLOR][/FONT][FONT=Verdana][COLOR=black]If Instr(FindWindowFlags#.Titel$, GetText$(hWnd&))[/COLOR][/FONT][FONT=Verdana][COLOR=black] FindWindowFlags#.hWnd& = hWnd&[/COLOR][/FONT][FONT=Verdana][COLOR=black] Return 0[/COLOR][/FONT][FONT=Verdana][COLOR=black]Else[/COLOR][/FONT][FONT=Verdana][COLOR=black] Return 1[/COLOR][/FONT][FONT=Verdana][COLOR=black]EndIf[/COLOR][/FONT][FONT=Verdana][COLOR=black]EndProc[/COLOR][/FONT][FONT=Verdana][COLOR=black]Proc MyFindWindow[/COLOR][/FONT][FONT=Verdana][COLOR=black]Parameters Titel$[/COLOR][/FONT][FONT=Verdana][COLOR=black]FindWindowFlags#.Titel$ = Titel$[/COLOR][/FONT][FONT=Verdana][COLOR=black]FindWindowFlags#.hWnd& = 0[/COLOR][/FONT][FONT=Verdana][COLOR=black]~EnumWindows(ProcAddr("EnumWindows", 2), 0)[/COLOR][/FONT][FONT=Verdana][COLOR=black]Return FindWindowFlags#.hWnd&[/COLOR][/FONT][FONT=Verdana][COLOR=black]EndProc[/COLOR][/FONT][FONT=Verdana][COLOR=black]IF Check_doppelstart("TestTestTest") = 0[/COLOR][/FONT][FONT=Verdana][COLOR=black]MessageBox("Das Programm ist schon aktiv",Programm_Info$,16)[/COLOR][/FONT][FONT=Verdana][COLOR=black]CloseHandle(Mutex&)[/COLOR][/FONT][FONT=Verdana][COLOR=black]var Fenster& = MyFindWindow(Programm_Info$)[/COLOR][/FONT][FONT=Verdana][COLOR=black]Dispose FindWindowFlags#[/COLOR][/FONT][FONT=Verdana][COLOR=black]Case Fenster& <> 0 : ShowWindow(Fenster&,3)[/COLOR][/FONT][FONT=Verdana][COLOR=black]End[/COLOR][/FONT][FONT=Verdana][COLOR=black]endif[/COLOR][/FONT][FONT=Verdana][COLOR=black]'***********************************************************************************[/COLOR][/FONT][FONT=Verdana][COLOR=black]$P*[/COLOR][/FONT][FONT=Verdana][COLOR=black]@Set("ErrorLevel", 0)[/COLOR][/FONT][FONT=Verdana][COLOR=black]' *M Include-Dateien[/COLOR][/FONT][FONT=Verdana][COLOR=black]$I PROFALT.INC[/COLOR][/FONT][FONT=Verdana][COLOR=black]$I SKControl.inc[/COLOR][/FONT][FONT=Verdana][COLOR=black]$I Prospeed_Funktionen.inc[/COLOR][/FONT][FONT=Verdana][COLOR=black]$I Listview_Funktionen.inc[/COLOR][/FONT][FONT=Verdana][COLOR=black]Declare ProSpeed&,logo&,logoback&,logo2&,Fx&,Fy&,array1&,array2&,array3&,F_bereich#[/COLOR][/FONT][FONT=Verdana][COLOR=black]Declare lvdll&,Listview&,Bereich#,Bytes&,BZahl![/COLOR][/FONT][FONT=Verdana][COLOR=black]Declare Listview_Hintergrund&,Listview_Tätigkeit&,Bereich2#[/COLOR][/FONT][FONT=Verdana][COLOR=black]Declare string#,image#,RECT#,Arbeitsbereich_Max_X&,Arbeitsbereich_Max_Y&,TaskbarX&,TaskbarY&[/COLOR][/FONT][FONT=Verdana][COLOR=black]Declare SKCon$,SKCondll&,x&,ProgrammPfad$[/COLOR][/FONT][FONT=Verdana][COLOR=black]ProgrammPfad$ = $ProgDir + "[URL='file://\\Firma']\\Firma[/URL]"[/COLOR][/FONT][FONT=Verdana][COLOR=black]ChDir ProgrammPfad$[/COLOR][/FONT][FONT=Verdana][COLOR=black]Struct RECT = ~RECT[/COLOR][/FONT][FONT=Verdana][COLOR=black]Dim RECT#, RECT[/COLOR][/FONT][FONT=Verdana][COLOR=black]Dim string#,255[/COLOR][/FONT][FONT=Verdana][COLOR=black]Dim Bereich#,320[/COLOR][/FONT][FONT=Verdana][COLOR=black]Dim F_bereich#,512[/COLOR][/FONT] [FONT=Verdana][COLOR=black]' *M DLL-Dateien[/COLOR][/FONT][FONT=Verdana][COLOR=black]SKCondll& = usedll("SKControl.dll")[/COLOR][/FONT][FONT=Verdana][COLOR=black]SKCtrl_InitDll()[/COLOR][/FONT][FONT=Verdana][COLOR=black]ProSpeed&=usedll("ProSpeed.dll")[/COLOR][/FONT][FONT=Verdana][COLOR=black]lvdll&=usedll("Listview.dll")[/COLOR][/FONT][FONT=Verdana][COLOR=black]Proc CreateMainMenu[/COLOR][/FONT][FONT=Verdana][COLOR=black]Popup "&"[/COLOR][/FONT][FONT=Verdana][COLOR=black]AppendMenu 1,"&"[/COLOR][/FONT][FONT=Verdana][COLOR=black]Popup "&"[/COLOR][/FONT][FONT=Verdana][COLOR=black]AppendMenu 2,"&"[/COLOR][/FONT][FONT=Verdana][COLOR=black]Popup "&"[/COLOR][/FONT][FONT=Verdana][COLOR=black]AppendMenu 3,"&"[/COLOR][/FONT][FONT=Verdana][COLOR=black]EndProc[/COLOR][/FONT][FONT=Verdana][COLOR=black]Proc Arbeits_bereich[/COLOR][/FONT][FONT=Verdana][COLOR=black]Parameters Dialog_Fenster&[/COLOR][/FONT][FONT=Verdana][COLOR=black]~GetClientRect(Dialog_Fenster&, RECT#)[/COLOR][/FONT][FONT=Verdana][COLOR=black]Arbeitsbereich_Max_X& = Int(RECT#.Right& - RECT#.Left&)[/COLOR][/FONT][FONT=Verdana][COLOR=black]Arbeitsbereich_Max_Y& = Int(RECT#.Bottom& - RECT#.Top&)[/COLOR][/FONT][FONT=Verdana][COLOR=black]EndProc[/COLOR][/FONT][FONT=Verdana][COLOR=black]Proc PosY1[/COLOR][/FONT][FONT=Verdana][COLOR=black]'Fenster Mittig[/COLOR][/FONT][FONT=Verdana][COLOR=black]Parameters Win_Y&[/COLOR][/FONT][FONT=Verdana][COLOR=black]~SystemParametersInfo(~SPI_GETWORKAREA, 0, Rect#, 0)[/COLOR][/FONT][FONT=Verdana][COLOR=black]TaskbarY& = ((%MaxY - (Rect#.Bottom& - Rect#.Top&)) \ 2 )[/COLOR][/FONT][FONT=Verdana][COLOR=black]var YMax& = %MaxY - TaskbarY&[/COLOR][/FONT][FONT=Verdana][COLOR=black]If Win_Y& > YMax&[/COLOR][/FONT][FONT=Verdana][COLOR=black] 'Grösser als Max[/COLOR][/FONT][FONT=Verdana][COLOR=black] Win_Y& =  0[/COLOR][/FONT][FONT=Verdana][COLOR=black]Else[/COLOR][/FONT][FONT=Verdana][COLOR=black] Win_Y& = (((%MaxY  - Win_Y&) \ 2) - TaskbarY&)[/COLOR][/FONT][FONT=Verdana][COLOR=black]Endif[/COLOR][/FONT][FONT=Verdana][COLOR=black]Return Win_Y&[/COLOR][/FONT][FONT=Verdana][COLOR=black]EndProc[/COLOR][/FONT][FONT=Verdana][COLOR=black]Proc PosX1[/COLOR][/FONT][FONT=Verdana][COLOR=black]'Fenster Mittig[/COLOR][/FONT][FONT=Verdana][COLOR=black]Parameters Win_X&[/COLOR][/FONT][FONT=Verdana][COLOR=black]~SystemParametersInfo(~SPI_GETWORKAREA, 0, Rect#, 0)[/COLOR][/FONT][FONT=Verdana][COLOR=black]TaskbarX& = ((%MaxX - (RECT#.Right& - RECT#.Left&)) \ 2 )[/COLOR][/FONT][FONT=Verdana][COLOR=black]var XMax& = %MaxX - TaskbarX&[/COLOR][/FONT][FONT=Verdana][COLOR=black]If Win_X& > XMax&[/COLOR][/FONT][FONT=Verdana][COLOR=black] 'Grösser als Max[/COLOR][/FONT][FONT=Verdana][COLOR=black] Win_X& =  0[/COLOR][/FONT][FONT=Verdana][COLOR=black]Else[/COLOR][/FONT][FONT=Verdana][COLOR=black] Win_X& = (((%MaxX  - Win_X&) \ 2) - TaskbarX&)[/COLOR][/FONT][FONT=Verdana][COLOR=black]Endif[/COLOR][/FONT][FONT=Verdana][COLOR=black]Return Win_X&[/COLOR][/FONT][FONT=Verdana][COLOR=black]EndProc[/COLOR][/FONT][FONT=Verdana][COLOR=black]Proc PosY2[/COLOR][/FONT][FONT=Verdana][COLOR=black]'Fenster Mittig[/COLOR][/FONT][FONT=Verdana][COLOR=black]Parameters Win_Y&[/COLOR][/FONT][FONT=Verdana][COLOR=black]~SystemParametersInfo(~SPI_GETWORKAREA, 0, Rect#, 0)[/COLOR][/FONT][FONT=Verdana][COLOR=black]TaskbarY& = (%MaxY - (Rect#.Bottom& - Rect#.Top&))[/COLOR][/FONT][FONT=Verdana][COLOR=black]var YMax& = %MaxY - TaskbarY&[/COLOR][/FONT][FONT=Verdana][COLOR=black]If Win_Y& > YMax&[/COLOR][/FONT][FONT=Verdana][COLOR=black] 'Grösser als Max[/COLOR][/FONT][FONT=Verdana][COLOR=black] Win_Y& =  YMax&[/COLOR][/FONT][FONT=Verdana][COLOR=black]Else[/COLOR][/FONT][FONT=Verdana][COLOR=black] 'alles im grünen Bereich[/COLOR][/FONT][FONT=Verdana][COLOR=black]Endif[/COLOR][/FONT][FONT=Verdana][COLOR=black]Return Win_Y&[/COLOR][/FONT][FONT=Verdana][COLOR=black]EndProc[/COLOR][/FONT][FONT=Verdana][COLOR=black]Proc PosX2[/COLOR][/FONT][FONT=Verdana][COLOR=black]'Fenster Mittig[/COLOR][/FONT][FONT=Verdana][COLOR=black]Parameters Win_X&[/COLOR][/FONT][FONT=Verdana][COLOR=black]~SystemParametersInfo(~SPI_GETWORKAREA, 0, Rect#, 0)[/COLOR][/FONT][FONT=Verdana][COLOR=black]TaskbarX& = (%MaxX - (RECT#.Right& - RECT#.Left&))[/COLOR][/FONT][FONT=Verdana][COLOR=black]var XMax& = %MaxX - TaskbarX&[/COLOR][/FONT][FONT=Verdana][COLOR=black]If Win_X& > XMax&[/COLOR][/FONT][FONT=Verdana][COLOR=black] 'Grösser als Max[/COLOR][/FONT][FONT=Verdana][COLOR=black] Win_X& = XMax&[/COLOR][/FONT][FONT=Verdana][COLOR=black]Else[/COLOR][/FONT][FONT=Verdana][COLOR=black] 'alles im grünen Bereich[/COLOR][/FONT][FONT=Verdana][COLOR=black]Endif[/COLOR][/FONT][FONT=Verdana][COLOR=black]Return Win_X&[/COLOR][/FONT][FONT=Verdana][COLOR=black]EndProc[/COLOR][/FONT][FONT=Verdana][COLOR=black]Proc Draw3DText[/COLOR][/FONT][FONT=Verdana][COLOR=black]Parameters x%,y%,x22%,y22%,Mitt%,factor%,text$[/COLOR][/FONT][FONT=Verdana][COLOR=black]Declare x1%,x2%,y1%,y2%[/COLOR][/FONT][FONT=Verdana][COLOR=black]Let x1%=Add(x%,factor%)[/COLOR][/FONT][FONT=Verdana][COLOR=black]Let y1%=Add(y%,factor%)[/COLOR][/FONT][FONT=Verdana][COLOR=black]Let x2%=Add(x1%,factor%)[/COLOR][/FONT][FONT=Verdana][COLOR=black]Let y2%=Add(y1%,factor%)[/COLOR][/FONT][FONT=Verdana][COLOR=black]TextColor GetSysColor(14),-1[/COLOR][/FONT][FONT=Verdana][COLOR=black]DrawText x%,y%,x22%,y22%,text$,Mitt%[/COLOR][/FONT][FONT=Verdana][COLOR=black]TextColor GetSysColor(16),-1[/COLOR][/FONT][FONT=Verdana][COLOR=black]DrawText x2%,y2%,x22%,y22%,text$,Mitt%[/COLOR][/FONT][FONT=Verdana][COLOR=black]TextColor GetSysColor(15),-1[/COLOR][/FONT][FONT=Verdana][COLOR=black]DrawText x1%,y1%,x22%,y22%,text$,Mitt%[/COLOR][/FONT][FONT=Verdana][COLOR=black]EndProc[/COLOR][/FONT][FONT=Verdana][COLOR=black]Proc Auslesen_Sichern[/COLOR][/FONT][FONT=Verdana][COLOR=black]'@DestroyWindow(%hWnd) 'alles OK[/COLOR][/FONT][FONT=Verdana][COLOR=black]'ShowWindow(%hWnd,0) 'Prozesse 100% CPU warum????[/COLOR][/FONT] [FONT=Verdana][COLOR=black]SKCtrl_DeInitDll()[/COLOR][/FONT][FONT=Verdana][COLOR=black]'Dll freigeben...[/COLOR][/FONT][FONT=Verdana][COLOR=black]Freedll SKCondll&[/COLOR][/FONT][FONT=Verdana][COLOR=black]Freedll lvdll&[/COLOR][/FONT][FONT=Verdana][COLOR=black]DeleteObject hBild&[/COLOR][/FONT][FONT=Verdana][COLOR=black]Dispose Bereich#[/COLOR][/FONT][FONT=Verdana][COLOR=black]Dispose F_bereich#[/COLOR][/FONT][FONT=Verdana][COLOR=black]Dispose RECT#[/COLOR][/FONT][FONT=Verdana][COLOR=black]' ProSpeed.dll[/COLOR][/FONT][FONT=Verdana][COLOR=black]If array1& > 0[/COLOR][/FONT][FONT=Verdana][COLOR=black] FreeFX(array1&)[/COLOR][/FONT][FONT=Verdana][COLOR=black] FreeFX(array2&)[/COLOR][/FONT][FONT=Verdana][COLOR=black] FreeFX(array3&)[/COLOR][/FONT][FONT=Verdana][COLOR=black]Endif[/COLOR][/FONT][FONT=Verdana][COLOR=black]FreeImage(logo&)[/COLOR][/FONT][FONT=Verdana][COLOR=black]FreeImage(logo2&)[/COLOR][/FONT][FONT=Verdana][COLOR=black]FreeImage(logoback&)[/COLOR][/FONT][FONT=Verdana][COLOR=black]Freedll ProSpeed&[/COLOR][/FONT][FONT=Verdana][COLOR=black]'##################[/COLOR][/FONT][FONT=Verdana][COLOR=black]@DestroyWindow(%hWnd) 'Programm stürzt ab und MSN Debugger Startet???[/COLOR][/FONT][FONT=Verdana][COLOR=black]EndProc[/COLOR][/FONT][FONT=Verdana][COLOR=black]'======================= HAUPTPROGRAMM =================================[/COLOR][/FONT][FONT=Verdana][COLOR=black]WindowStyle 11[/COLOR][/FONT][FONT=Verdana][COLOR=black]Set("TrueColor", 1)[/COLOR][/FONT][FONT=Verdana][COLOR=black]WindowTitle Programm_Info$[/COLOR][/FONT][FONT=Verdana][COLOR=black]Window (%MaxX + 20),0 - PosX2(%MaxX), PosY2(%MaxY)[/COLOR][/FONT][FONT=Verdana][COLOR=black]Usermessages ~wm_close[/COLOR][/FONT][FONT=Verdana][COLOR=black]CLS ~GetSysColor(~Color_BtnFace)[/COLOR][/FONT][FONT=Verdana][COLOR=black]'**************************************************************************************[/COLOR][/FONT][FONT=Verdana][COLOR=black]UseFont "Arial",16,0,0,0,0[/COLOR][/FONT][FONT=Verdana][COLOR=black]SetDialogFont 1[/COLOR][/FONT][FONT=Verdana][COLOR=black]CreateMainMenu[/COLOR][/FONT][FONT=Verdana][COLOR=black]var ColorH_R& = GetRValue(~GetSysColor(~Color_BtnFace))[/COLOR][/FONT][FONT=Verdana][COLOR=black]var ColorH_G& = GetGValue(~GetSysColor(~Color_BtnFace))[/COLOR][/FONT][FONT=Verdana][COLOR=black]var ColorH_B& = GetBValue(~GetSysColor(~Color_BtnFace))[/COLOR][/FONT][FONT=Verdana][COLOR=black]var Damy_Button& =   Create("BUTTON",%hwnd,"",0,0,0,0)[/COLOR][/FONT][FONT=Verdana][COLOR=black]UseFont "Arial",40,20,0,0,0[/COLOR][/FONT][FONT=Verdana][COLOR=black]SetDialogFont 1[/COLOR][/FONT][FONT=Verdana][COLOR=black]Draw3DText 10,85,(%MaxX - 300),130,1,1,"Ich Teste mal"[/COLOR][/FONT][FONT=Verdana][COLOR=black]UseFont "Arial",16,0,0,0,0[/COLOR][/FONT][FONT=Verdana][COLOR=black]SetDialogFont 1[/COLOR][/FONT][FONT=Verdana][COLOR=black]' Tab Tabcontrol erstellen[/COLOR][/FONT][FONT=Verdana][COLOR=black]'-----------------------------------------------------------------------[/COLOR][/FONT][FONT=Verdana][COLOR=black]var pic& = create("hPic", 0, "TOOLBAR")[/COLOR][/FONT][FONT=Verdana][COLOR=black]var himg&=Create("ImageList", 16, 16, pic&)[/COLOR][/FONT][FONT=Verdana][COLOR=black]deleteobject pic&[/COLOR][/FONT][FONT=Verdana][COLOR=black]Arbeits_bereich %Hwnd[/COLOR][/FONT][FONT=Verdana][COLOR=black]var PageControl1& = Create("TabCtrl",%hwnd,himg&,10,165,(Arbeitsbereich_Max_X& - 30),(Arbeitsbereich_Max_Y& - 200))[/COLOR][/FONT][FONT=Verdana][COLOR=black]InsertTab(PageControl1&, 0, "Gerd",56)[/COLOR][/FONT][FONT=Verdana][COLOR=black]var hBild& = Create("HPIC", -1, "Daten\\TOOLBAR32.BMP")[/COLOR][/FONT][FONT=Verdana][COLOR=black]var ToolBar1&= Create("TOOLBAR", %hWnd, hBild&, 0, 32, 4000, 1)[/COLOR][/FONT][FONT=Verdana][COLOR=black]Toolbar("AddTextButton",ToolBar1&,15,4000,"Einstellungen","")[/COLOR][/FONT][FONT=Verdana][COLOR=black]Toolbar("Separator",ToolBar1&)[/COLOR][/FONT][FONT=Verdana][COLOR=black]Toolbar("AddTextButton",ToolBar1&,6,4001,"Angebote","")[/COLOR][/FONT][FONT=Verdana][COLOR=black]Toolbar("AddTextButton",ToolBar1&,56,4002,"betreute Objekte","")[/COLOR][/FONT][FONT=Verdana][COLOR=black]Toolbar("Separator",ToolBar1&)[/COLOR][/FONT][FONT=Verdana][COLOR=black]Toolbar("AddTextButton",ToolBar1&,39,4003,"Auswertung","")[/COLOR][/FONT][FONT=Verdana][COLOR=black]Toolbar("AddTextButton",ToolBar1&,19,4004,"Drucken","")[/COLOR][/FONT][FONT=Verdana][COLOR=black]Toolbar("Separator",ToolBar1&)[/COLOR][/FONT][FONT=Verdana][COLOR=black]Toolbar("AddTextButton",ToolBar1&,33,4005,"DB Synchronisation","")[/COLOR][/FONT][FONT=Verdana][COLOR=black]Toolbar("Separator",ToolBar1&)[/COLOR][/FONT][FONT=Verdana][COLOR=black]Toolbar("AddTextButton",ToolBar1&,49,4006,"Programm beenden!","")[/COLOR][/FONT][FONT=Verdana][COLOR=black]SetListviewStyle(12)    'LVS_SINGLESEL OR LSV_SHOWSELALWAYS, Mehrfach-Markierungen verhindern und Markierung immer sichtbar[/COLOR][/FONT][FONT=Verdana][COLOR=black]x&=MixRGBs(GetSysColor(15),$00FFFFFF)[/COLOR][/FONT][FONT=Verdana][COLOR=black]x&=MixRGBs(x&,$00FFFFFF)[/COLOR][/FONT][FONT=Verdana][COLOR=black]listview&=CreateListView(PageControl1&,%hinstance,0,x&,-1,$421)[/COLOR][/FONT][FONT=Verdana][COLOR=black]ShowListView(Listview&,280,45,((%MaxX - 580) - TaskbarX&),((%MaxY - 360) - TaskbarY&))[/COLOR][/FONT][FONT=Verdana][COLOR=black]'alles neu erstellen[/COLOR][/FONT][FONT=Verdana][COLOR=black]InsertColumn Listview&,"Von",50,0    'Spalten bilden[/COLOR][/FONT][FONT=Verdana][COLOR=black]InsertColumn Listview&,"Bis",70,2[/COLOR][/FONT][FONT=Verdana][COLOR=black]InsertColumn Listview&,"kurze Beschreibung", (%MaxX -730),0[/COLOR][/FONT][FONT=Verdana][COLOR=black]InsertColumn Listview&,"Zeit",1,0[/COLOR][/FONT][FONT=Verdana][COLOR=black]'Die automatische Sortierung abschalten[/COLOR][/FONT][FONT=Verdana][COLOR=black]AutoSortListview listview&,0,0,0,0[/COLOR][/FONT][FONT=Verdana][COLOR=black]SelectLine(Listview&,61,1)[/COLOR][/FONT][FONT=Verdana][COLOR=black]SetWindowPos %Hwnd = PosX1(%MaxX), PosY1(%MaxY) - PosX2(%MaxX), PosY2(%MaxY);0[/COLOR][/FONT] [FONT=Verdana][COLOR=black]InitMessages(%hwnd)[/COLOR][/FONT][FONT=Verdana][COLOR=black]' ##### Hauptprogrammschleife #####[/COLOR][/FONT][FONT=Verdana][COLOR=black]var Programm_Ende% = 0[/COLOR][/FONT][FONT=Verdana][COLOR=black]WhileNot Programm_Ende%[/COLOR][/FONT][FONT=Verdana][COLOR=black]Waitinput[/COLOR][/FONT][FONT=Verdana][COLOR=black]If (%Umessage = ~wm_close) & (&uWnd = %hWnd) 'Message zum Schließen des Fensters abzufangen[/COLOR][/FONT][FONT=Verdana][COLOR=black] Auslesen_Sichern[/COLOR][/FONT][FONT=Verdana][COLOR=black] 'Programm beenden[/COLOR][/FONT][FONT=Verdana][COLOR=black] Programm_Ende%=1[/COLOR][/FONT][FONT=Verdana][COLOR=black]ElseIf MenuItem(4000)[/COLOR][/FONT][FONT=Verdana][COLOR=black]ElseIf MenuItem(4001)[/COLOR][/FONT][FONT=Verdana][COLOR=black]ElseIf MenuItem(4002)[/COLOR][/FONT][FONT=Verdana][COLOR=black]ElseIf MenuItem(4003)[/COLOR][/FONT][FONT=Verdana][COLOR=black]ElseIf MenuItem(4004)[/COLOR][/FONT][FONT=Verdana][COLOR=black]ElseIf MenuItem(4005)[/COLOR][/FONT][FONT=Verdana][COLOR=black]ElseIf MenuItem(4006)[/COLOR][/FONT][FONT=Verdana][COLOR=black] Auslesen_Sichern[/COLOR][/FONT][FONT=Verdana][COLOR=black] 'Programm beenden[/COLOR][/FONT][FONT=Verdana][COLOR=black] Programm_Ende%=1[/COLOR][/FONT][FONT=Verdana][COLOR=black]ElseIf %key = 4[/COLOR][/FONT][FONT=Verdana][COLOR=black] @Redraw(%Hwnd)[/COLOR][/FONT][FONT=Verdana][COLOR=black] SetWindowPos ToolBar1& = 0, 0 - 0, 0; 0[/COLOR][/FONT][FONT=Verdana][COLOR=black]ElseIf %key = 5[/COLOR][/FONT][FONT=Verdana][COLOR=black] ' Hilfe[/COLOR][/FONT][FONT=Verdana][COLOR=black]EndIf[/COLOR][/FONT][FONT=Verdana][COLOR=black]EndWhile[/COLOR][/FONT][FONT=Verdana][COLOR=black]End[/COLOR][/FONT]


    Ich möchte doch gern wissen warum und wo ich meine Fehler mache, ohne euch drehe ich da ewig im Kreiß;)

    Hallo ich noch mal,

    Ich habe NICHT DestroyWindow und ShowWindow gleichzeitig benutzt!!!

    Mano mit 512

    geht ShowWindow(Fenster&,3) nicht

    Code
    'Prüfen ob das Programm schon ausgeführt wird, wenn ja in den Vordergrund im Vollbild Modus setzen, oder eben  ausführen!
    $I Programm_im_Speicher.inc
    IF Check_doppelstart("VerwaltungundAuswertungsplaner") = 0
      MessageBox("Das Programm ist schon aktiv","Verwaltung und Auswertungsplaner",16)
      CloseHandle(Mutex&)
      var Fenster& = MyFindWindow(Programm_Info$)
      Dispose FindWindowFlags#
      ShowWindow(Fenster&,3)
      End
    endif



    Das ist doch zu Mäusemelken.

    Hallo,
    habe da ein Riesen Problem!

    wenn ich in mein Prog so starte.

    Code
    '======================= HAUPTPROGRAMM =================================
    WindowStyle 11
    Set("TrueColor", 1)
    WindowTitle Programm_Info$
    Window (%MaxX + 20),0 - PosX2(%MaxX), PosY2(%MaxY)
    Usermessages ~wm_close 'damit ich das Schlissen im Hauptfenster abfangen kann
    '-WindowBackground
    '-----------------------------------------------------------------------
    CLS ~GetSysColor(~Color_BtnFace)
    '**************************************************************************************



    bleibt die EXE im den Prozessen hängen und 100% CPU Auslastung.
    Mein Programm ist beendet das Fenster ist zerstört und nun? :evil:

    [Blockierte Grafik: http://s15.postimage.org/o98y8w4fr/Prozesse.jpg]

    Benutz ich WindowStyle 523 ist alles OK8O

    Hollo Frank,

    ist es für dich möglich so etwas wie den ProfanInspector ein zu Bauen und auch zu pflegen?

    Das wäre für uns die Einsteiger eine super Sache!

    Ich habe gerade mit einem Programm Doppel Start experimentiert was wen Einstellungen und so…

    Da hab ich mich recht schwer getan mit deinem Lemon zwecks der Ausführung.

    Und immer eine EXE erzeugen und dann doppelt aufrufen ist recht aufwendig.

    Ich habe dann den XProfEdit benutzt.

    Vielleicht könntest du da noch irgendwo ein Schalter ein bauen.


    MfG

    Horst,

    Zitat

    "X-Problem" will mir nicht einleuchten. CASE (%Key=2):END funktioniert !


    das wäre mir nie aufgefallen.
    Ich hab mich nur immer gefragt warum die Daten nach dem Programmende mal gesichert waren und dann wider einmal nicht. Ich habe Tagelang mein Programm nach dem Fehler durchforstet und dann hab ich ihn gefunden.
    Wenn ich über dem Toolbar "Programm beenden!" mein Programm beende werden die Daten gesichert und beim Anklicken des X nicht,
    logischerweise auch nicht meine Disposen, mag sein das Profan dieses übernimt, aber mit 100% Sicherheit nicht die Sicherungen meiner DB im Hintergrund.

    Programm_Ende% = 1
    WhileNot Programm_Ende%
    If %key = 2:(
    'Programm beenden
    Auslesen_Sichern
    Programm_Ende% = 1
    ElseIf MenuItem(4006):-)
    'Programm beenden
    Auslesen_Sichern
    Programm_Ende% = 1
    Endif
    EndWhile
    '##################### Sicherung der CSV Datei #################################
    Proc Auslesen_Sichern
    ' *** Listview speichern
    Text$="Daten\\DATEN_HG.CSV"
    x&=GetNeededMemory(Listview_Hintergrund&,1)
    Dim Bereich3#,x&
    x&=ListviewToCsv(Listview_Hintergrund&,Bereich3#,0,0)
    passwort$="**************“
    CryptMem(bereich3#,x&,addr(passwort$),len(passwort$)) 'Daten in dem Bereich wieder verschlüsseln
    WriteFileQuick(addr(Text$),Bereich3#,0,x&)
    Dispose Bereich3#
    EndProc

    MfG

    Hallo,
    he da sind ja noch ein Parr Anregungen bei:lol:

    Mir ging es hauptsächlich um den Hintergrund.:-)




    Zitat

    Horst in deinem Beispiel die Fenstermitte



    Horst das betrifft aber nicht den Arbeitsbereich sondern nur die Mitte von Desktop.

    Der Arbeitsbereich ist nicht so einfach zu berechnen z.B. die Taskleiste eingestellter Benutzer Fenster Rammen und…
    Hab mal getestet, wenn man zur eigenen Programm Laufzeit die Taskleiste versetzt und dies nicht berücksichtigt ist die Statische Einstellungen Tödlich z.B. Create("Text",Dialog&,"Test……",430,610 ,200,20) .
    Und wenn es dumm läuft ist die Menüleiste (unser heiß diskutiertes X )überdeckt und du kannst das Programm nicht mehr schlissen außer Str-Alt-Entf oder die Taskleiste zurücksetzen.