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

Manipulating Scrollbars

Discuss PocketC for CE (including Desktop Edition)

Postby airdrik on Fri Feb 09, 2001 3:29 pm

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
airdrik
 
Posts: 26
Joined: Fri Feb 09, 2001 3:25 pm

Postby Justinespinosa on Sat Feb 10, 2001 11:46 am

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
J.Espinosa

OUTS Softwares
Justinespinosa
 
Posts: 156
Joined: Wed Dec 06, 2000 2:30 pm
Location: Switzerland

Postby airdrik on Sat Feb 10, 2001 6:38 pm

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)
airdrik
 
Posts: 26
Joined: Fri Feb 09, 2001 3:25 pm

Postby Justinespinosa on Sun Feb 11, 2001 10:10 am

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
J.Espinosa

OUTS Softwares
Justinespinosa
 
Posts: 156
Joined: Wed Dec 06, 2000 2:30 pm
Location: Switzerland

Postby airdrik on Sun Feb 11, 2001 4:48 pm

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 :/.
airdrik
 
Posts: 26
Joined: Fri Feb 09, 2001 3:25 pm

Postby Justinespinosa on Mon Feb 12, 2001 6:40 pm

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
J.Espinosa

OUTS Softwares
Justinespinosa
 
Posts: 156
Joined: Wed Dec 06, 2000 2:30 pm
Location: Switzerland

Postby airdrik on Mon Feb 12, 2001 9:21 pm

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.
airdrik
 
Posts: 26
Joined: Fri Feb 09, 2001 3:25 pm

Postby guy on Tue Feb 13, 2001 8:18 am

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
Guy
[url]mailto:pcform@pcform.net[/url]
http://www.pcform.net
PocketC CE API interface: http://www.networkdynamics.net/PCForm.html#library
PCForm and CE API forum: http://www.networkdynamics.net/forum
guy
 
Posts: 879
Joined: Thu Dec 07, 2000 8:58 am
Location: United Kingdom

Postby airdrik on Tue Feb 13, 2001 2:41 pm

I can wait. No Big hurry (though the sooner the better<img src=icon_smile.gif border=0 align=middle>)
airdrik
 
Posts: 26
Joined: Fri Feb 09, 2001 3:25 pm


Return to PocketC for CE

Who is online

Users browsing this forum: No registered users and 1 guest

cron