Discussions related to Visual Prolog
User avatar
abdelrahman
Posts: 15
Joined: 13 Sep 2009 6:23

How can I Put a BMP Image as a background for the Taskwindow when program starts

Post by abdelrahman »

I want program to appear like this when starts
You do not have the required permissions to view the files attached to this post.
User avatar
drspro2
VIP Member
Posts: 131
Joined: 28 Apr 2006 12:03

Re: How can I Put a BMP Image as a background for the Taskwindow when program starts

Post by drspro2 »

in the old Vip52 you could draw images directly to the taskwindow, which ment that the taskwindow was 'drawable'. in the new visual-prolog i do not know if that is the case.

what certainly would be possible is to make a new ( window or form or dialog) which will always remain on top of the taskwindow which will contain the image. there exists also an Image-control ( when you right click add a control in the designer ) to put inside that window which is the most easy because it can handle the resizing.

This new window would always have to stay fully maximized to make it cover your whole application OR you have to dynamically resize the new window by asking the Size of the parent and then resize this window accordingly.

Also in the Examples projects there always used to be a sort of Splash example which does about the same thing, and then it shouldnt disappear/close after the splash, though i do not see that example anymore.

and apparantly you dont use the Messages window in your application which would make things more complicated, so you do not have this problem.

But certainly it has to be possible to show a full size BMP in the app.

In other applications i used the web-browser example where i simply put the image/bmp full screen in the web-browser control.

in the examples directory there is also the pictureDraw example