Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3368: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3370: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3371: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3372: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
OrbWorks Community Forum • View topic - draw
Page 1 of 1

PostPosted: Fri Apr 20, 2001 9:44 am
by kjm
Hi

If using drawbitblt() or drawimage() to draw a bitmap that is larger than the screen size, then how would you scroll around the image, especially the parts of the image that are off screen? Preferably without redrawing the image, but simply by moving its position if possible.

Is there any information about the flags that are available with these two options above? The brief documentation that accompanies the function descriptions is little more than a name for each flag rather than an explanation.

Kevin

PostPosted: Fri Apr 20, 2001 3:12 pm
by Justinespinosa
You can't do that properly. if you're using pocketC V3; and you don't need the menu or other parts of the screen. you can resize the main window to the size of the bitmap with wndmove(1,0,0,bitmapWidth,bitmapHeight) then draw it at 0,0 and move the whole window ( to a negative position i.e. wndmove(1,-6,-20,bitmapWidth,bitmapHeight). It may work but i have never moved it to a negative position (positive works).

For the flags, i think keywords (OR, XOR, AND etc...) are enough. it just plots the color of the point in the bitmap OPERATOR the color of the point on the screen.

i.e.
point in the bitmap: 255, 255, 255
XOR
point on the screen: 255, 255, 255
= 0, 0, 0

J.Espinosa

OUTS Softwares

PostPosted: Sat Apr 21, 2001 7:20 am
by kjm
Justin

wndmove() seems to work and it also seems to do so with negative numbers. (However, the control for the main window is 0 and not 1 as you suggested).

The problem I have now is how to put the bitmap into the window? At the moment the bitmap appears behind the window.

That is using:

wndshow(0,5)
wndmove(0,0,0,400,300)
drawbitmap(filestr,0,0)
sleep(1000)
wndmove(0,150,100,400,300)

Kevin

PostPosted: Sat Apr 21, 2001 7:08 pm
by Justinespinosa
like this, you move the console window, which is not the main window. to move the main window, you must use the V3 device compiler. i don't know if it works on the desktop compiler. then the id is really 1. you can draw the bitmap on the main window and move it.
But it's not worth because Kevin (not you but Kevin Cao) hasn't added the points that are out of the screen coordinates in the paint routine of the main window. or doesen't get the new window size. so, the points that are out of the screen when you draw the bitmaps are not redrawed when the window is moved. So, this is white. You can redraw the bitmap each time you move the window (but i think it's not what you want) But it will be erased each time a control com on it:
i.e. if you open the start menu or the input pannel, they will leave a white rect behind them when they are closed.

I hope you will understand me, it's not easy to explain.
just remember that my idea can't work.

J.Espinosa

OUTS Softwares

PostPosted: Sat Apr 21, 2001 9:51 pm
by cao
After reading this discussion, I did a little research on this subject.
There is an excellent ActiveX control for WindowsCE called PictureBox.
One from Microsoft, the other from S309 software.

It is designed to load images and does all sort of wonderful things.
Maybe the best solution is wrap it in a dll and expose the functionality to
PocketC users.

Cheers.

PostPosted: Sun Apr 22, 2001 8:10 am
by kjm
Sounds great Kevin, But I haven't got a clue about ActiveX or dll's etc. I hope you were suggesting that you would do all this, rather than me!

Kevin

PostPosted: Mon Apr 30, 2001 3:23 am
by cosmodriver
I to would love to know how to use the x controls and dil if you could maby add an example to the web page or in the help file it would be great thanks <img src=icon_smile_big.gif border=0 align=middle>

cosmo

PostPosted: Tue May 01, 2001 11:34 am
by kjm
Cosmo

You might let me, at least, know how to add things like smiling faces to my messages?

Kevin

PostPosted: Tue May 01, 2001 5:47 pm
by Justinespinosa
these smiley faces are availabe. just click the smily button to get a list.
smile <img src=icon_smile.gif border=0 align=middle>
big smile <img src=icon_smile_big.gif border=0 align=middle>
cool <img src=icon_smile_cool.gif border=0 align=middle>
blush <img src=icon_smile_blush.gif border=0 align=middle>
tongue <img src=icon_smile_tongue.gif border=0 align=middle>
evil <img src=icon_smile_evil.gif border=0 align=middle>
wink <img src=icon_smile_wink.gif border=0 align=middle>
clown <img src=icon_smile_clown.gif border=0 align=middle>
black eye <img src=icon_smile_blackeye.gif border=0 align=middle>
eightball <img src=icon_smile_8ball.gif border=0 align=middle>
frown <img src=icon_smile_sad.gif border=0 align=middle>
shy <img src=icon_smile_shy.gif border=0 align=middle>
shocked <img src=icon_smile_shock.gif border=0 align=middle>
angry <img src=icon_smile_angry.gif border=0 align=middle>
dead <img src=icon_smile_dead.gif border=0 align=middle>
sleepy <img src=icon_smile_sleepy.gif border=0 align=middle>
kisses <img src=icon_smile_kisses.gif border=0 align=middle>
approve <img src=icon_smile_approve.gif border=0 align=middle>
disapprove <img src=icon_smile_dissapprove.gif border=0 align=middle>
question <img src=icon_smile_question.gif border=0 align=middle>


J.Espinosa

OUTS Softwares

PostPosted: Thu May 03, 2001 4:41 pm
by kjm
You've lost me Justin. What smiley button?

Kevin

PostPosted: Fri May 04, 2001 3:12 am
by Justinespinosa
IN the edit screen, you've got a lot of buttons after "Format:" there's this smiley button
<img src="http://www.pocketC.net/forum/icon_editor_smilie.gif" border=0>

J.Espinosa

OUTS Softwares

Edited by - justinespinosa on 05/03/2001 22:14:44

PostPosted: Fri May 04, 2001 3:33 am
by Justinespinosa
<font face=Tahoma> <font size=6>Just for information, you can change the font type, size,<b>Style</b> </font id=size6></font id=Tahoma> <font color=red>and color</font id=red>
<ul>
<li> you </li>
<li> can </li>
<li> make </li>
</ul>
lists,<table border=1><tr><td>
tables !!
</td>
<td>
tables !!
</td>
</tr>
<tr>
<td>
tables !!
</td>
<td>
tables !!
</td>
</tr>
</table>

links:
http://www.outs4pda.cjb.net
images:
<img src="http://www.pocketc.net/forum/icon_editor_image.gif" border=0>


J.Espinosa

OUTS Softwares

PostPosted: Fri May 04, 2001 1:43 pm
by kjm
Thank you Justin <img src=icon_smile_big.gif border=0 align=middle>

It's just that You don't see the edit screen unless you are posting a message, and when I'm posting a message I don't tend to look at what edit features that are available, but get on with the message and get out of it.

Kevin <img src=icon_smile_cool.gif border=0 align=middle>