English
Forum

Done: Image in the Mainwindow Show

 

Meister
Propper
Hi,

i'm new here and would like first time any cordial begrüßen!

in the Zuge of my Ausbilung be I with XProfan in Contact come and now have I a problem on the I do not More moreover knows.

Perhaps is it integrally simply (i hope so ) . i want one Image supra right on my Mainwindow Show let.

unfortunately disappears it always if I z. Bsp. on a Button click, the window vergrößere, shift, one other Window drüber lay ...

gives it a commands the vielleich very the mach I would like, means simply the image supra right indicating, alike what comes?

thanks already time beforehand ...
 
Es gibt keine dummen Fragen, nur dumme Antworten
06/16/09  
 



Regards back!

Please gib your Programming-Environment [...]  on, The Solutions are often adjusted.

here helps you well one create("Bitmap"... [...]  [...]  .
 
06/16/09  
 




Meister
Propper
the went but quick ...

I have XProfan 11.2 with the XProfed 2.0 in use.

Related to the Create(Bitmap ... Have so did i already time probiert, but has unfortunately neither worked.

I have The strong supposition, that it on the place in the code lying, where I the commands settle must,

there the image Yes startup displayed becomes, but even by the enhance, and move again disappears.

so be now first time in noon ... To circa 14:00 watch.

Regards M. Propper
 
Es gibt keine dummen Fragen, nur dumme Antworten
06/16/09  
 



Create("Bitmap" is here The right electoral, the control sorgt self for the it neugezeichnet becomes. the functions even so cool, that one so Games program can, How z.B. [...]  . (How you see flimmert there nothing and it draw itself everything new too at Grössenändern the Fensters.)

I fürchte in this drop become You for a [...]  not drumherum come.

such one Bitmap can You with setWindowPos  too as an afterthought simply positionieren, z.B. with Changes the Fenstergrösse.
 
06/16/09  
 




Meister
Propper
So I have the now time with Create(Bitmap ... attempts.

here the code:
CompileMarkSeparation
var logo& = Create("hPic",-1,"LOGO.JPG")
Create("Bitmap",%Hwnd,logo&,200,200)e>

before standing yet:
CompileMarkSeparation
WindowStyle $003F
WindowTitle "Mein Programm"
Window %maxX + 5,202 - 842,622
Cls GetSysColor(15)
UseFont "MS Sans Serif",13,0,0,0,0
SetDialogFont 1
SetFormIcon "C:WINDOWSSYSTEM32MORICONS.DLL",48
SetTimer 1000
SetWindowPos %hwnd = 328,202 - 842,622;0
SetFormCursor on>

unfortunately happens at started the program nothing. the Image not displayed.

If I The same place one "print" set becomes this without Problems displayed.

know You vllt. already where the Error is, or which Info do you need yet?

Tags added
 
Es gibt keine dummen Fragen, nur dumme Antworten
06/16/09  
 



this is no lauffähiger View source - difficult so To help.
  • look time [...]  but letting it really until downstairs end. there standing already, that otherwise only Grundsatzhilfstellung gewährleistet go can for what but the Helpfile (see Bitmap) zuständig is.
  • SetFormIcon ?
  • Jpg-File?
because I even your Posting Edit had, Please Source code (How the Yes everywhere made becomes) with
CompileMarkSeparation post. otherwise go Smilies and iFBBs and HTML therein konvertiert and the Abkopieren is too one Graus and unhübsch looks tuts too.

If one under Beginner-Questions one Topic verzappt then stand there supra but already The suitable Notes everybody can first wegklicken must.
 
06/16/09  
 




Dieter
Zornow
your code Although not run, if one itself but the integral dull functions still everything. the Image disappears not at Überdecken the Fensters.
CompileMarkSeparation
WindowStyle $003F
WindowTitle "Mein Programm"
Window %maxX + 5,202 - 842,622
Cls GetSysColor(15)
UseFont "MS Sans Serif",13,0,0,0,0
SetDialogFont 1
SetFormIcon "C:WINDOWSSYSTEM32MORICONS.DLL",48
SetTimer 1000
SetWindowPos %hwnd = 328,202 - 842,622;0
SetFormCursor 0
var logo& = Create("hPic",-1,"LOGO.JPG")
Create("Bitmap",%Hwnd,logo&,200,200)
waitkey
deleteobj
> logo&
 
Er ist ein Mann wie ein Baum. Sie nennen ihn Bonsai., Win 7 32 bit und Win 7 64 bit, mit XProfan X2
06/16/09  
 



Perhaps. too the Tipp, instead of "C:WINDOWS The Systemvariable $winPath  use.
 
06/16/09  
 




Meister
Propper
OK, thanks for Info with the View source ... Have not dran virtual ;D.

so far so well. It's all right ... I Have only yet the Phenomän, that if I the window big ziehe it of course the image on The place new draw,
but not the image on the place before wegmacht. How can I the solve?
CompileMarkSeparation
WindowStyle $003F
WindowTitle "Mein Programm"
Window %maxX + 5,202 - 842,622
UseFont "MS Sans Serif",13,0,0,0,0
SetDialogFont 1
SetTimer 1000
SetWindowPos %hwnd = 328,202 - 842,622;0
declare logo&

WhileNot %key = 1

    WaitInput
    logo& = Create("hPic",-1,"LOGO.JPG")
    Create("Bitmap",%Hwnd,logo&,%WinRight - %WinLeft - 90,1)

Es gibt keine dummen Fragen, nur dumme Antworten
06/16/09  
 



now, it power very what You program have.

You must hold not constantly one new Image produce without the old wegzumachen.

beget the image to(!) the Loop and inside the Loop with setWindowPos  positionieren.

champion Propper, Beitrag=52706, Zeitpunkt=16.06.2009


PS: which Notes?



13 kB
Hochgeladen:06/16/09
Downloadcounter51
Download
 
06/16/09  
 




Meister
Propper
Jau, thanks

it works pointed klappen should

here now my View source:
CompileMarkSeparation
WindowStyle $003F
WindowTitle "Mein Programm"
Window %maxX + 5,202 - 842,622
UseFont "MS Sans Serif",13,0,0,0,0
SetDialogFont 1
SetTimer 1000
SetWindowPos %hwnd = 328,202 - 842,622;0
var my_logo& = Create("hPic",-1,"LOGO.JPG")
var logo& = Create("Bitmap",%Hwnd, my_logo&,%WinRight - %WinLeft - 90,1)

WhileNot %key = 1

    WaitInput
    SetWindowPos logo& = (%WinRight - %WinLeft - 90),1

Es gibt keine dummen Fragen, nur dumme Antworten
06/16/09  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

4.600 Views

Untitledvor 0 min.
Christof Neuß12/06/19
H.Brill01/05/19
Georg04/10/15
Tommy08/17/13
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