English
Forum

Why "Skin" the image from ???

 
at that under stehenden code skin the image on the surface the Dialogfensters ex, if I on the Image-selection-Button click ! - The effect exit but only at first time on. where lying my Error ???
CompileMarkSeparation
DECLARE EE%,win&,bild&,bild%,ende%,bild$,neu_bild$
EE%=0
bild$=mini_karte.jpg Bitte anpassen

PROC BILD_LADEN

    PARAMETERS bild$
    STARTPAINT win&

    IF FILEEXISTS(bild$)

        bild&=Create(hSizedPic,-1,bild$,200,250,-1)
        DrawPic bild&,250,50;0

    ENDIF

    ENDPAINT

ENDPROC

window 0,0-0,0
SET(AUTOPAINT,1)
win&=CREATE(DIALOG,%hwnd,Dialogfenster,(%MaxX-640),(%MaxY-480),640,480)
ende%=CREATE(BUTTON,win&,Programmende,10,50,150,25)
bild%=CREATE(BUTTON,win&,Bild-Auswahl,10,100,150,25)
BILD_LADEN bild$

WHILENOT EE%

    WAITINPUT
    CASE %wmpaint:BILD_LADEN bild$

    IF CLICKED(ende%) | Iskey(27)

        SET(AUTOPAINT,2)
        EE%=1

    ENDIF

    IF CLICKED(bild%)

        neu_bild$=LOADFILE$(Bild wählen:,*.bmp;*.jpg;*.gif)

        IF %Button = 2

            BILD_LADEN bild$

        ELSEIF %Button = 1

            bild$=neu_bild$
            BILD_LADEN bild$

        ENDIF

    ENDIF

ENDWHILE

f='./../../Function-References/XProfan/end/'>end

thanks for Help
 
04/22/08  
 




Jörg
Sellmeyer
plenty interessanter find I hierbei The question, Why the image again auftaucht, if one only whom Cancel-Button in the Ladedialog pressed has. it shining so, as though at first Time the automatic Bildverwaltung/-neuzeichnung by Profane not functions, during the dialog displayed becomes.

but Why using You do not simply one Bitmap-Static?
CompileMarkSeparation
DECLARE EE%,win&,bild&,bild%,ende%,bild$,neu_bild$,bmpStatic&
EE%=0
bild$=bild.jpgBitte anpassen

PROC BILD_LADEN

    PARAMETERS bild$
    STARTPAINT win&

    IF FILEEXISTS(bild$)

        bild&=Create(hSizedPic,-1,bild$,200,250,-1)
        DrawPic bild&,250,50;0
        Case bmpStatic&:DestroyWindow(bmpStatic&)
        bmpStatic& = Create(Bitmap,win&,bild&,200,150)

    ENDIF

    ENDPAINT
    EndPaint

ENDPROC

window 0,0-0,0
SET(AUTOPAINT,1)
win&=CREATE(DIALOG,%hwnd,Dialogfenster,(%MaxX-640),(%MaxY-480),640,480)
ende%=CREATE(BUTTON,win&,Programmende,10,50,150,25)
bild%=CREATE(BUTTON,win&,Bild-Auswahl,10,100,150,25)
BILD_LADEN bild$

WHILENOT EE%

    WAITINPUT
    CASE %wmpaint:BILD_LADEN bild$

    IF CLICKED(ende%) | Iskey(27)

        SET(AUTOPAINT,2)
        EE%=1

    ENDIF

    IF CLICKED(bild%)

        neu_bild$=LOADFILE$(Bild wählen:,*.bmp;*.jpg;*.gif)

        IF %Button = 2

            BILD_LADEN bild$

        ELSEIF %Button = 1

            bild$=neu_bild$
            BILD_LADEN bild$

        ENDIF

    ENDIF

ENDWHILE

href='./../../Function-References/XProfan/end/'>end
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
04/22/08  
 



@Jörg

thanks


it shining so, as though at first Time the automatic Bildverwaltung/-neuzeichnung by Profane not functions...


the Have so did i already adopted !
 
04/22/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

2.181 Views

Untitledvor 0 min.
Andreas Koch11/14/12
Michaeal10/18/12

Themeninformationen

this Topic has 2 subscriber:

unbekannt (2x)
Jörg Sellmeyer (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