| |
|
|
| Hello Community, have there time following question: WINDOW xPos, yPos - xWidth, yWidth functions with ProSpeed wonderful, if really only with a (knows I but not as accurate) Window worked becomes. If I however with @Create(Window... and Handles works would functions it so not any more. who can me help, ProSpeedSprites too in Windows, The with @Create(Window... or @Create(dialog... anglegt get, view? Vielen Thanks for Your Answer. Tschüss Stefan quick |
|
|
| |
|
|
|
| Hello Stefan, to the create the Dialogs must You which Device Context detect...
def GetDC(1) !USER32,GetDC dlg%=create(DIALOG,%hwnd,,80,40,400,300) dlgdc&=GetDC(dlg%)
...and the whole %hdcs through dlgdc&s supplant, z.B....
Bild&=LoadExtBmp(addr(File$),dlgdc&) Spr&=InitSprite(Bild&,dlgdc&,...)
everything clear? Sebastian |
|
|
| |
|
|
|
| Hi,
the whole goes too yet plainer, and integrally in Profan:
handle&=@Create(Window...)
Startpaint handle& Dialoghandle&=%HDC EndPaint
Dialoghandle& has now whom HDC of betreffenden dialog stored and can instead of %HDC uses go. but Sebastians Solution is just as well!
Greeting, Frank |
|
|
| |
|
|
|
ByteAttack | and How see it from with of/ one Fensterkopie one Dialogs? goes the at all? CompileMarkSeparation functions unfortunately not.... |
|
|
| |
|
|
|
Thomas Freier | I had with the the TwJpeg.dll seinerzeit made, CompileMarkSeparation
If @MenuItem(6) Belegungsplan speichern
~ShowWindow(Test_dlg&,~SW_SHOWMINIMIZED) Listenfenster ausblenden
Sleep 500
Load_ThumbJpg Zw$,1,1,Breite%,0,2,1,5
FilNam$ = Belegungsplan-ist.jpg
clear bereich#
HDC_SaveJPG FilNam$,20,20,974,686,Fenster2&,100,0 Fensterlage und JPG Qualität
~ShowWindow(Test_dlg&, ~SW_SHOWNORMAL) Listenfenster einbl /a>
goes sure too now with XProfan 10 without TwJpeg.dll |
|
|
| Gruß Thomas Windows XP SP2, XProfan X2 | 11/27/07 ▲ |
|
|
|
|
Frank Abbing | Marc-Gordon
and How see it from with of/ one Fensterkopie one Dialogs? goes the at all? CompileMarkSeparationfunctions unfortunately not....
You want whom Fensterinhalt copy? goes integrally normal with CopyExtBmp(). or Dou you mean still what other? and verwechsle not a Dialoghandle with a HDC, the can't klappen... |
|
|
| |
|
|
|
ByteAttack | I mean it so: If I in a Dialog-Window one background have, and Sprits drüber walk let, need I still a Fensterkopie to that Refreschen or. so the background not deleted becomes. or? in the Mainwindow would the simply hdc2 |
|
|
| |
|
|
|
Frank Abbing | I see. in the Dialog-Window must You only a clear HDC produce and the FensterHDC copy. are Yes only two Lines code, with colon a... |
|
|
| |
|
|
|
ByteAttack | does me sorrow Frank. I blicks simply not! CompileMarkSeparationUSERMESSAGES 16
Declare psdll&,temp$,bmp&,exit%,Fenster&,Dialoghandle&,LeerHDC&
Def GetSysColor(1) !USER32,GetSysColor
psdll&=usedll($ProgDir+ProSpeed.dll)
$I Prospeed_Funktionen.inc
Set(TrueColor,1)
WindowStyle 44
WindowTitle %hwnd
Window 0,0-100,100
CLS GetSysColor(15)
Fenster&=Create(Window,%hwnd,Fenster,((%maxX/2)-320),((%maxY/2)-240),640,480)
temp$=$ProgDir+back.bmp Irgendeinbild
bmp&=LoadExtImage(addr(temp$))
StartPaint Fenster&
CLS GetSysColor(15)
Dialoghandle&=%HDC
EndPaint
CopyExtBmp(Dialoghandle&,0,0,%maxX,%maxY,bmp&,0,0,-1)
LeerHDC&=CreateExtBmp(Dialoghandle&,%maxX,%maxY)
CopyExtBmp(LeerHDC&,0,0,%maxX,%maxY,Dialoghandle&,0,0,-1)
WhileNot exit%
WaitInput
Case %Umessage=16:exit%=1
EndWhile
FreeExtBmp(bmp&)
FreeExtBmp(LeerHDC&)
freedll psdll&
functions too net. give me still please times one small example (Please, Please...) |
|
|
| |
|
|
|
Thomas Freier | Marc, what want You make. slopes time an example (The work have I aborted, there it then still not used watts) on, where I *.bmp einsetze. The Hardcopy is from the application Bootsplatzverwaltung, where so did i names and Objects into Control set. |
|
|
| Gruß Thomas Windows XP SP2, XProfan X2 | 11/29/07 ▲ |
|
|
|
|
ByteAttack | simply only Sprites over one Dialog-Window run, without the the background or. the Wallpapers on the Dialog-Window deleted becomes. |
|
|
| |
|
|
|
Frank Abbing | Marc, look you simply time the demonstration FA_SpriteDemo2.prf on. there becomes it Yes made. an possible Rekonstruktion the Hintergrundsfensters must in the drop naturally manually erfolgen, each WM_PAINT must You The copy to dialog->%HDC copy... How had. |
|
|
| |
|
|