KiXforms Forum Index KiXforms
The Forum for the KiXforms Community
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 Quick Links 
Site News
Downloads
Documentation
Donations
Script Archive
Tracking Systems

Is it possible to save contents of eg. .Panel to bmp-file ??
Goto page 1, 2  Next
 
Post new topic   Reply to topic    KiXforms Forum Index -> Discussion
View previous topic :: View next topic  
Author Message
Jochen
KiXforms Devotee
KiXforms Devotee


Joined: 05 Mar 2003
Posts: 1204
Location: Stuttgart, Germany

PostPosted: Tue Dec 28, 2004 1:41 pm    Post subject: Is it possible to save contents of eg. .Panel to bmp-file ?? Reply with quote

Need this for some custom SysInfo -> Backgroundimage App here.
(Can't use BGInfo or such as I am not allowed to change anything on these systems and therefore as well can't run applications that are non-conform )

Basic idea is to load the original bitmap to either Panel or Picturebox, then overlay it with, for example, a GroupBox with different Backcolor properties (for different Subnets) and attach some textboxes to it ... hehe ... now the tricky question ... is there any possibility to get all this content of either the Panel or Picturebox saved to a picture file ?
If yes,please give me some keywords here Crying or Very sad

_________________
Jochen

Tell me, and I will forget.
Show me, and I may remember.
Involve me, and I will understand.
Back to top
View user's profile Send private message MSN Messenger
Lonkero
KiXforms Devotee
KiXforms Devotee


Joined: 13 Mar 2003
Posts: 1022
Location: Espoo, Finland

PostPosted: Wed Dec 29, 2004 8:48 am    Post subject: Reply with quote

sure there is.
done it already.

the downside is that you can have it PPM only... remember that image format from the kixgolf?

and why is that? because kix only supports text and kixforms does not have a "save-method"

_________________
Hammer
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Lonkero
KiXforms Devotee
KiXforms Devotee


Joined: 13 Mar 2003
Posts: 1022
Location: Espoo, Finland

PostPosted: Wed Dec 29, 2004 9:55 am    Post subject: Reply with quote

lol...
reading the winning reader / display code... kinda hard to follow... w00t!
http://www.kixtart.org/ubbthreads/showflat.php?Cat=&Board=UBB2&Number=76905#Post76893

_________________
Hammer
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Lonkero
KiXforms Devotee
KiXforms Devotee


Joined: 13 Mar 2003
Posts: 1022
Location: Espoo, Finland

PostPosted: Wed Dec 29, 2004 9:57 am    Post subject: Reply with quote

k, this is not the save way and there is actually no easy way to convert it around...
gonna keep looking...

_________________
Hammer
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Jochen
KiXforms Devotee
KiXforms Devotee


Joined: 05 Mar 2003
Posts: 1204
Location: Stuttgart, Germany

PostPosted: Wed Dec 29, 2004 10:55 am    Post subject: Reply with quote

The major problem is the unability to copy the 'whole' content of a .Panel object (including child objects) to the clipboard or better the unability to save it directly as bmp... hmmm ... this can be viewed as a statement and a request at the same time Cool

Shawn ? Is there any chance of a special development build, just for me ?
Please ?

Huge Grin

_________________
Jochen

Tell me, and I will forget.
Show me, and I may remember.
Involve me, and I will understand.
Back to top
View user's profile Send private message MSN Messenger
Lonkero
KiXforms Devotee
KiXforms Devotee


Joined: 13 Mar 2003
Posts: 1022
Location: Espoo, Finland

PostPosted: Wed Dec 29, 2004 11:34 am    Post subject: Reply with quote

hmm...
not anymore sure what you want...
you want to have the big picture, the whole image, not childobjects separately or anything, right?

you want the same effect as one has with pressing printscreen, no?

_________________
Hammer
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Jochen
KiXforms Devotee
KiXforms Devotee


Joined: 05 Mar 2003
Posts: 1204
Location: Stuttgart, Germany

PostPosted: Wed Dec 29, 2004 12:38 pm    Post subject: Reply with quote

Aye, that's correct, but only for this one .Panel and all its childs (graphically).
But, if it was like printscreen it would fail in my case because the whole picture isn't visible anyway because of different sizes for background bitmaps Smile

The .Panel resides inside a groupbox and gets the bitmap for the corresponding resolution as .BackgroundImage, the .Location is calculated from the lower right corner coordinates minus Width and Height of the bitmap ; thus only the lower right part of the image is visible on form (That's the place the 'label' should be created)

Rolling Eyes

_________________
Jochen

Tell me, and I will forget.
Show me, and I may remember.
Involve me, and I will understand.
Back to top
View user's profile Send private message MSN Messenger
Lonkero
KiXforms Devotee
KiXforms Devotee


Joined: 13 Mar 2003
Posts: 1022
Location: Espoo, Finland

PostPosted: Thu Dec 30, 2004 8:07 am    Post subject: Reply with quote

gone little far from the original question, don't you think?

going back.
you wanted to save content to bmp file = you want to have the content saved in same way as printscreen does.
then, the object references are not important in any way.

but, taking on...
you can do printscreen with kixtart but can you do paste from clipboard into picturebox?
if yes, then it is possible...
also, if RTbox would have been worked out previously, it would be able to write the image to RTF file.
anyways.

why you need this?
wouldn't it be simpler to trace what is going on and keep record of that?
printscreening is kinda "debugging" tool. what this would be for?

_________________
Hammer
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Jochen
KiXforms Devotee
KiXforms Devotee


Joined: 05 Mar 2003
Posts: 1204
Location: Stuttgart, Germany

PostPosted: Thu Dec 30, 2004 8:35 am    Post subject: Re: Is it possible to save contents of eg. .Panel to bmp-fil Reply with quote

Jochen wrote:
Need this for some custom SysInfo -> Backgroundimage App here.


See ?
Basically it's taking a wallpaper bitmap, writing some info about the system to it, saving it as bitmap and copy it back to the client.


Btw. Welcome to the l33t Kixforms Advocate's Club Cunning

_________________
Jochen

Tell me, and I will forget.
Show me, and I may remember.
Involve me, and I will understand.
Back to top
View user's profile Send private message MSN Messenger
Lonkero
KiXforms Devotee
KiXforms Devotee


Joined: 13 Mar 2003
Posts: 1022
Location: Espoo, Finland

PostPosted: Thu Dec 30, 2004 9:55 am    Post subject: Reply with quote

oh, so is this gonna be windows background image?
_________________
Hammer
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Jochen
KiXforms Devotee
KiXforms Devotee


Joined: 05 Mar 2003
Posts: 1204
Location: Stuttgart, Germany

PostPosted: Thu Dec 30, 2004 10:24 am    Post subject: Reply with quote

yap
_________________
Jochen

Tell me, and I will forget.
Show me, and I may remember.
Involve me, and I will understand.
Back to top
View user's profile Send private message MSN Messenger
Lonkero
KiXforms Devotee
KiXforms Devotee


Joined: 13 Mar 2003
Posts: 1022
Location: Espoo, Finland

PostPosted: Thu Dec 30, 2004 10:49 am    Post subject: Reply with quote

oh, then would ask from shawn to write binary file operations to kixforms or add SaveAs or Write method to picturebox
_________________
Hammer
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Jochen
KiXforms Devotee
KiXforms Devotee


Joined: 05 Mar 2003
Posts: 1204
Location: Stuttgart, Germany

PostPosted: Thu Dec 30, 2004 1:11 pm    Post subject: Reply with quote

The problem here is that neither .Label nor .PrintXY is accepted by .PictureBox so that'd be a dead end.

Best would be .SaveAs() for .Panel (which accepts Labels), but the problem I could think of is still the ability of .SaveAs to 'include' the labels (childs of .Panel) in the big picture.

Shawn ?

_________________
Jochen

Tell me, and I will forget.
Show me, and I may remember.
Involve me, and I will understand.
Back to top
View user's profile Send private message MSN Messenger
Jochen
KiXforms Devotee
KiXforms Devotee


Joined: 05 Mar 2003
Posts: 1204
Location: Stuttgart, Germany

PostPosted: Thu Dec 30, 2004 1:27 pm    Post subject: Reply with quote

Hmmm ... just found out that .Panel (with the current dev build) displays an Image created by

$img = $Panel.Image("ImagePath")

and this little basta accepts then .Labels

$label = $img.Label("Yalla",400,400,80,15)

might come in Handy when we get to SaveAs ...
Idea Maybe a SaveAs Method for .Image object ??? /Idea

_________________
Jochen

Tell me, and I will forget.
Show me, and I may remember.
Involve me, and I will understand.
Back to top
View user's profile Send private message MSN Messenger
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Thu Dec 30, 2004 4:32 pm    Post subject: Reply with quote

ok cappy give a try latest dev. build.

$control.savebitmap("filename.bmp")

This is just a test/experiment.

;0)
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    KiXforms Forum Index -> Discussion All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group