| |
|
|
Georg Hovenbitzer | Hello together,
how can I one with Create(hSizedPic erzeugtes and DrawPic angezeigtes Image again delete ? without the program To terminate and new to start |
|
|
| Viele Grüsse, Georg Hovenbitzer(Windows XP Pro, XProfan 11.2, Profan2Cpp 1.6a) | 04/11/07 ▲ |
|
|
|
|
Frank Abbing | DeleteObject should the suitable his. |
|
|
| |
|
|
|
Georg Hovenbitzer | Hello Frank,
I had already without success attempts, too with a Repaint behind it. the Image moreover displayed. must time try it on one Static To lay and this To destroy.
P.s.: goes indeed not, there one not indicate can. |
|
|
| Viele Grüsse, Georg Hovenbitzer(Windows XP Pro, XProfan 11.2, Profan2Cpp 1.6a) | 04/11/07 ▲ |
|
|
|
|
| only son suggestion: If you with Rectangle x,y-x1,y1 in the Backgroundcolor one rectangle drüberlegst, should the image still lane his or ? |
|
|
| |
|
|
|
Georg Hovenbitzer | Hello Horst,
good idea will be it tommorrow right time testing. |
|
|
| Viele Grüsse, Georg Hovenbitzer(Windows XP Pro, XProfan 11.2, Profan2Cpp 1.6a) | 04/11/07 ▲ |
|
|
|
|
Dieter Zornow | Versuchs still time to deleteobject with CLS, functions guaranteeing
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 | 04/11/07 ▲ |
|
|
|
|
| @Georg means by me works it CompileMarkSeparationDeclare bild&,pfad$
pfad$=GETDIR$(@)
bild&=Create(hPic,-1,pfad$+\test.bmp) Dein Bild einsetzen
CLS RGB(255,255,0)
DrawSizedPic bild&, 50,50-150,150;0
WAITINPUT
USEBRUSH 1,RGB(255,255,0)
USEPEN 0,1,RGB(255,255,0)
RECTANGLE 50,50-200,200
WAITINPUT
| 04/12/07 ▲ | |
|
|
|
|
Peter Max Müller | and here with Statik: CompileMarkSeparation $H WINDOWS.PH
DEF LoadImage(6) ! USER32,LoadImageA
Declare bild&,pfad$,image$,bmpstat&
Pfad$=GETDIR$(@)
Image$=Create(hPic,-1,pfad$+\test.bmp)Dein Bild einsetzen
CLS RGB(255,255,0)
BmpStat& = Control(STATIC,,$5400130E,50,50,150,150,%hwnd,0,%hinstance,$0)
Bild& = ~LoadImage(0,Addr(Image$),~IMAGE_BITMAP,150,150,~LR_LOADFROMFILE)
SendMessage(BmpStat&,~STM_SETIMAGE,~IMAGE_BITMAP,BILD&)
WAITINPUT
ShowWindow(BmpStat&,0)
WAITINPUT
ShowWindow(BmpStat&,1)
WAITINPUT
XProfan X3, X4ß, Win 10.1 | 04/12/07 ▲ | |
|
|
|
|
| @Peter Since I PROFAN-Purist be, are by me naturally The Opportunities of XProfan primarily. therefore position itself me The question, Why for task, one Bildchen To delete, same The windows.ph To bemühen. already The Zeilenzahl is with my code small and probably therefore too resourcenschonender or |
|
|
| |
|
|
|
Jörg Sellmeyer | Horst horn
@Peter Since I PROFAN-Purist be, are by me naturally The Opportunities of XProfan primarily. therefore position itself me The question, Why for task, one Bildchen To delete, same The windows.ph To bemühen. already The Zeilenzahl is with my code small and probably therefore too resourcenschonender or
Hello Horst, by the windows.ph increased not The Zeilenzahl Your Program! The Compiler sees in the *.ph-File to Begriffen, The in the Source with of/ one Tilde (~) eingeleitet and be supplant these by the suitable worth from the *.ph-File. its simply one expressed komfortables Profanfeature. Greeting Jörg |
|
|
| Windows XP SP2 XProfan X4... und hier mal was ganz anderes als Profan ... | 04/12/07 ▲ |
|
|
|
|
| |
|
| |
|
|
|
| Ne XProfan.PH increased IMHO The Zeilenanzahl not - power but the Compile gammy - the reading lasts forever... thatswhy XPSE - no PHs - blitzschnelle Umsetzung the Apis. |
|
|
| |
|
|