English
Forum

dialog over Hintergrundfenster

 

Nico
Hi,
I use Profan since a half-way year and having me demand whether it possible is about one Window in the background one dialog to create, the as 2. Window over the 1. lying.

The dialog should in example so looks:
CompileMarkSeparation
DECLARE EDIT1&
DECLARE ok&
DECLARE ende%
DECLARE spieler$
WINDOW 22,20-645,163
EDIT1& = CREATE("EDIT",%HWND,"",0022,0024,0120,0020)
ok& = CREATE("BUTTON",%HWND,"OK",0168,0026,0117,0030)
SETFOCUS(EDIT1&)

WHILENOT ENDE%

    IF GETFOCUS(ok&)

        ENDE%=1
        LET ENDE%= 1
        spieler$ = gettext$(EDIT1&)
        ende%=2

    endif

WEND


would be beautiful, if your me there a simple Possibility explain can.

- Nico
 
06/18/12  
 



Something like?
CompileMarkSeparation
userMessages 16
cls
var dlg&=Create("Dialog",%hWnd,"Dialog",100,100,200,200)
var btn&=Create("Button",dlg&,"Button",10,10,90,20)

while 1

    waitinput

    select %uMessage

        caseof 16 : break

    endSelect

wend

end
 
06/18/12  
 




Nico
very the, thanks
 
06/18/12  
 



gladly happen!
 
06/18/12  
 




Nico
another further question, how can I the program moreover run, after itself the dialog-Window closed has, and how can I in Hintergundfenster one Load image?

Presentation:
CompileMarkSeparation
cls
DECLARE ende%
DECLARE spieler$
var dlg&=Create("Dialog",%hWnd,"Dialog",100,100,200,200)
var EDIT1& = CREATE("EDIT",dlg&,"",0022,0024,0120,0020)
var ok& = Create("BUTTON",dlg&,"OK",08,0096,0117,0030)
SETFOCUS(EDIT1&)

WHILENOT ENDE%

    IF GETFOCUS(ok&)

        ENDE%=1
        LET ENDE%= 1
        spieler$ = gettext$(EDIT1&)
        ende%=2

    endif

WEND

waitkey
end
 
06/18/12  
 




Dietmar
Horn
Hello Nico,

look you simply time my XProfan-Textbook on. there are such things (and yet plenty More) in the volume 1 into first Kapiteln in detail described.

Greeting
Dietmar
 
XProfan X2
Multimedia für Jugendliche und junge Erwachsene - MMJ Hoyerswerda e.V.  [...] 

Windows 95 bis Windows 7
Profan² 6.6 bis XProfan X2 mit XPSE

Das große XProfan-Lehrbuch:  [...] 
06/18/12  
 




Nico
The problem is, I already some Basics rule, and me not by the whole Neueinsteiger-stuff reading would like. i know, the sound rotten, but here To ask erschließt itself me then nevertheless as better Possibility

As I said, my question exists yet
 
06/18/12  
 



Like that?
CompileMarkSeparation
userMessages 16
cls
var dlg&=Create("Dialog",%hWnd,"Dialog",100,100,200,200)
var btn&=create("Button",dlg&,"Button",10,10,90,20)
var dlgIstOffen&=1
var bild&=create("hNewPic",320,200,$FF0000)
startpaint bild&

whileLoop 1000

    setpixel rnd(320),rnd(200),rnd($FFFFFF)

wend

endpaint
drawPic bild&,0,0;0
deleteObject bild&

while 1

    waitinput

    select %uMessage

        caseof 16

        select &UWnd

            caseof dlg&

            if dlgIstOffen&

                dlgIstOffen&=0
                destroyWindow(dlg&)

            endif

            caseof %hWnd : break

        endSelect

    endSelect

wend

end
 
06/18/12  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

5.594 Views

Untitledvor 0 min.
H.Brill10/08/17
Jochen Roxlau03/24/15
Torben Nissen01/03/15
mein06/02/13
More...

Themeninformationen

this Topic has 3 subscriber:

Nico (4x)
iF (3x)
Dietmar Horn (1x)


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