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 - Manipulating Scrollbars
Page 1 of 1

PostPosted: Fri Feb 09, 2001 3:29 pm
by airdrik
I would like to be able to maipulate scrollbars in a program that I am writing (get the new 'value' of a scrollbar after someone messed with it). Or do I have to manually figure out how they used the scrollbars?

I am using PocketC V2. Can anyone help me?


Edited by - airdrik on 02/09/2001 15:37:12

PostPosted: Sat Feb 10, 2001 11:46 am
by Justinespinosa
sorry, if it's a scroll bar created with ctreatectrl("scrollbar", ... there's no way to do that.

ASk Guy for more informations

J.Espinosa

OUTS Softwares

PostPosted: Sat Feb 10, 2001 6:38 pm
by airdrik
How should I set it up, then? I am using them to scroll through a '2d array' of bitmaps so that I can edit them (more specifically I am making a map editor with which to edit maps for a game I am making).

The space taken up by the map and scrollbars takes up everything in a rectangle from a certain x,y coordinate to the bottom right hand side of the screen, but not the whole screen (the rest will be used by tools for editing the map)

PostPosted: Sun Feb 11, 2001 10:10 am
by Justinespinosa
You can't use the system scrollbars, you must send message that Pocket C don't understand to set up the program and PocketC runtime eats the event that is sent by the scroll bar. Sorry, i suggest to to write your own scroll bar routine, (slow, slow, slow...) or to use trackbars. (faster, but not beautifull ).

i suggest to do like this:

<img src="http://www.multimania.com/justinespinosa/misc/capt0000.jpg">

the track bars have the style TBS_BOTH and TBS_NOTICKS, and TBS_VERT for the vertical trackbars. If you found better chars for the buttons, i think it will be more beautifull.
or you're not forced to use buttons.

if you're using a pocket PC, it will not display the 3D shading.

You can set the range for the trackbars, but they don't send any event. I suggest you to set a timer and to read the status of the trackbars each timer event.

J.Espinosa

OUTS Softwares

PostPosted: Sun Feb 11, 2001 4:48 pm
by airdrik
Tried doing it manually(sort of) didn't do much more than it did before. Guess I'll just have to wait for them to release v3 for WinCE devices :/.

PostPosted: Mon Feb 12, 2001 6:40 pm
by Justinespinosa
Or you must draw all yourself with rect() or drawbitmap().
But I don't no if the V3 Shell (it self) supports scrollbars. (V2 doesen't)

J.Espinosa

OUTS Softwares

PostPosted: Mon Feb 12, 2001 9:21 pm
by airdrik
Well, the device version of pocketc v3 hasen't even come out yet so we'll just have to see what they do about it when it does come out.

Let us hope that it does support scrollbars so that we can use them. Wink wink, nudge nudge.

PostPosted: Tue Feb 13, 2001 8:18 am
by guy
V3 doesn't yet support scrollbars. There are extensions to the Windows message system interface that need to be done (support for WM_NOTIFY messages) and to the sendmsg() function (support for passing and receiving structs) before you can use scrollbars.



Guy

PostPosted: Tue Feb 13, 2001 2:41 pm
by airdrik
I can wait. No Big hurry (though the sooner the better<img src=icon_smile.gif border=0 align=middle>)