English
Forum

Main window and dialog

 

Dieter
Zornow
Hi,

might time someone this small example testing, by me exits itself too the Mainwindow, after I the dialog over the Cross closed have. i will only know whether the only me so is or with several around the cause festzustelllen, whether there what not together verträgt.

Vorzugsweise with XProfan 11, because it by me so happens.
CompileMarkSeparation
 $P+
SET("ERRORLEVEL",0)
DECLARE d&,ENDE%
DEF GETSYSCOLOR(1) !"USER32","GetSysColor"
WINDOWSTYLE 31
WINDOWTITLE "Hauptfenster"
WINDOW (%maxx/2 - 640/2),(%maxy/2 - 500/2) - 640,500
CLS GETSYSCOLOR(15)
USEFONT "MS Sans Serif",13,0,0,0,0
SETDIALOGFONT 1
d& = CREATE("BUTTON",%HWND,"Dialog",0271,0406,0100,0025)
SETFOCUS(%HWND)
usermessages 16
REPAINT

WHILENOT ENDE%

    WAITINPUT

    If %umessage = 16

        ENDE%= 1

    ELSEIF CLICKED(d&)

        dialog()

    ENDIF

ENDWHILE

end

PROC DIALOG

    var DLG&=CREATE("DIALOG",%HWND,"Dialog",(%maxx/2 - 640/2),(%maxy/2 - 500/2),640,500)
    USEFONT "MS Sans Serif",13,0,0,0,0
    SETDIALOGFONT 1
    SETFOCUS(DLG&)
    var DIALOGENDE%=0

    WHILENOT DIALOGENDE%

        WAITINPUT

        If %KEY=2

            DIALOGENDE%= 1

        ENDIF

    ENDWHILE

    DESTROYWINDOW(DLG&)

ENDPROC


Greeting

Dieter
 
Er ist ein Mann wie ein Baum. Sie nennen ihn Bonsai., Win 7 32 bit und Win 7 64 bit, mit XProfan X2
08/03/08  
 




Rolf
Koch
Hi Dieter.
I open whom dialog and click supra the Dialogkreuz. the only what itself by me close is then Correctly the dialog and the Mainwindow remaining open.
Irgendwas is correct with you really not. in a what, but Real comic.
 
08/03/08  
 




Jac
de
Lad
compare time %mWnd with the lever it Dialogs, means
CompileMarkSeparation
if (%uMessage=16) AND (%mWnd=dlg&)re>

(and dlg& naturally global declarieren).

alternatively: to the Rückstprung in that Hauptprogramm any Messages Remove:
CompileMarkSeparation
Profan² 2.6 bis XProfan 11.1+XPSE+XPIA+XPRR (und irgendwann XIDE)
Core2Duo E8500/T2250, 8192/1024 MB, Radeon HD4850/Radeon XPress 1250, Vista64/XP
08/03/08  
 




Dieter
Zornow
@Rolf: thanks for testing, so slow faith I Geister. I have it even to one Neustart ausprobiert and the same Result. I must time any Hintergrundprogramme How Virenscanner and Firewall stop, whether there something reinfunkt. but the ought to Yes really too unmöglich his.

@Jac: thanks for suggestions but It's all right neither, if I User Messages integrally rauslasse and 2 x with %key = 2 work. Gehts because with you, I faith you have indeed already XProfan 11
I can but time try in the dialog on User Message To change and the
(%uMessage=16) AND (%mWnd=dlg&)
incorporate, whether it itself then still on Mainwindow auswirkt, because How you see work I in dialog Yes with %key = 2

Greeting

Dieter
 
Er ist ein Mann wie ein Baum. Sie nennen ihn Bonsai., Win 7 32 bit und Win 7 64 bit, mit XProfan X2
08/03/08  
 




Jac
de
Lad
Hello Dieter!

so funktionierts:
CompileMarkSeparation
 $P+
SET("ERRORLEVEL",0)
DECLARE d&,ENDE%
DEF GETSYSCOLOR(1) !"USER32","GetSysColor"
WINDOWSTYLE 31
WINDOWTITLE "Hauptfenster"
WINDOW (%maxx/2 - 640/2),(%maxy/2 - 500/2) - 640,500
CLS GETSYSCOLOR(15)
USEFONT "MS Sans Serif",13,0,0,0,0
SETDIALOGFONT 1
d& = CREATE("BUTTON",%HWND,"Dialog",0271,0406,0100,0025)
SETFOCUS(%HWND)
usermessages 16
REPAINT

WHILENOT ENDE%

    WAITINPUT

    If %umessage = 16

        ENDE%= 1

    ELSEIF CLICKED(d&)

        dialog()

    ENDIF

ENDWHILE

end

PROC DIALOG

    var DLG&=CREATE("DIALOG",%HWND,"Dialog",(%maxx/2 - 640/2),(%maxy/2 - 500/2),640,500)
    USEFONT "MS Sans Serif",13,0,0,0,0
    SETDIALOGFONT 1
    SETFOCUS(DLG&)
    var DIALOGENDE%=0
    Usermessages -16

    WHILENOT DIALOGENDE%

        WAITINPUT

        If %KEY=2

            DIALOGENDE%= 1

        ENDIF

    ENDWHILE

    DESTROYWINDOW(DLG&)
    Usermessages 16

ENDPROC


only 2 Lines eingefügt.
 
Profan² 2.6 bis XProfan 11.1+XPSE+XPIA+XPRR (und irgendwann XIDE)
Core2Duo E8500/T2250, 8192/1024 MB, Radeon HD4850/Radeon XPress 1250, Vista64/XP
08/03/08  
 




GDL
Hi,

by me close too both Window.
trouble I had with my Programs too.
once 2 creep walk, must I 2time %umessage inquire.

WinXP,XProfan11

Hello
Georg, the with the Druckbefehlen in the meantime NEN horror get.
 
Windows7 Xprofan 8,9,10 [...]  [...] 
08/03/08  
 




Dieter
Zornow
Jac: Yes so functions it by me too, thanks for Hiilfe, is nevertheless strange, that one such Verrenkungen make must for so a simple thing, the might not his.

@Georg: your Test power me directly glad, i was already near dran on my computer einzuschlagen

Greeting

Dieter
 
Er ist ein Mann wie ein Baum. Sie nennen ihn Bonsai., Win 7 32 bit und Win 7 64 bit, mit XProfan X2
08/03/08  
 




Jac
de
Lad
Isch willlll Schtärnäääähhh!!!
 
Profan² 2.6 bis XProfan 11.1+XPSE+XPIA+XPRR (und irgendwann XIDE)
Core2Duo E8500/T2250, 8192/1024 MB, Radeon HD4850/Radeon XPress 1250, Vista64/XP
08/03/08  
 




Sato
Pinto
Hello

by me close too both Windows

greeting
Sato
 
Sato Pinto
WIN XP Home
XPROFAN 11
08/03/08  
 




Dieter
Zornow
thanks Sato, now white I, that not on my computer lying

@Jac: have you stars given now pleased, I stops of course nothing of it but here you are.

Greeting

Dieter
 
Er ist ein Mann wie ein Baum. Sie nennen ihn Bonsai., Win 7 32 bit und Win 7 64 bit, mit XProfan X2
08/04/08  
 



@Jac


Isch willlll Schtärnäääähhh!!!


with full tempo with the head to The next Wand run - then have You each crowd stars !
 
08/04/08  
 




Jac
de
Lad
Juuuuhuuuuhh!!
 
Profan² 2.6 bis XProfan 11.1+XPSE+XPIA+XPRR (und irgendwann XIDE)
Core2Duo E8500/T2250, 8192/1024 MB, Radeon HD4850/Radeon XPress 1250, Vista64/XP
08/04/08  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

872 Views

Untitledvor 0 min.
holmol9306/13/13
Detlef Jagolski10/23/12
Torben Nissen02/28/12
E.T.02/14/12
More...

Themeninformationen



Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie