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 - how to use trackbar

how to use trackbar

Discuss PocketC for CE (including Desktop Edition)

Postby joh.becker on Fri Aug 23, 2002 5:19 pm

Does anybody know how to use a trackbar? I wanted to use a scrollbar, but learned here that this is not working.But some recommended to use the trackbar instead.
I did not find any reference to trackbars. How are they created and moved? How can I check the position, what message do I get when the user moves it?

Johannes
joh.becker
 
Posts: 86
Joined: Tue Apr 17, 2001 6:51 am
Location: Germany

Postby KOU on Fri Aug 23, 2002 11:06 pm

---------------------------------------------------------------------
The other place you could go for examples of using the CE API from PocketC are the example programs that install with the libraries. There's a program sbtest.pc that creates scrollbars and sets them up with the SetScrollInfo() function.

The example programs get installed into My Documents. The readme file has a list of these programs. Look for ceapireadme.txt in the My Documents folder.

--------------------------------------------------from guy's old post

Sorry guy.
Be sure to use guy's wonderful CEAPI interface.

Somewhere there is more post on this.

KOU
KOU
 
Posts: 92
Joined: Mon Mar 18, 2002 8:04 pm
Location: USA

Postby KOU on Fri Aug 23, 2002 11:08 pm

I forgot to say.

It is in
http://www.pcform.net
guy's PCForm page.
KOU
 
Posts: 92
Joined: Mon Mar 18, 2002 8:04 pm
Location: USA

Postby ianf on Sat Aug 24, 2002 7:16 am

<font face='Tahoma'>I have written some PocketC articles including one on Track Bars. My main documentation page is:-
http://www.sundialsoft.freeserve.co.uk/sddocs.htm
and the Track Bar article is here:-
http://www.sundialsoft.freeserve.co.uk/sddoc002.htm</font id='Tahoma'>

Note: my docs are for PocketC V2 for CE/PocketPC
ianf
 
Posts: 92
Joined: Mon Dec 11, 2000 7:25 am
Location: United Kingdom

Postby joh.becker on Sat Aug 24, 2002 3:45 pm

Thanks Ian, will try it tomorrow.

Johannes
joh.becker
 
Posts: 86
Joined: Tue Apr 17, 2001 6:51 am
Location: Germany

Postby joh.becker on Sun Aug 25, 2002 2:44 pm

OK, the trackbar works, I can set the position and retrieve it.
But how do I get a message that informs me when the user moves the slider?
I assumed that I would get PM_COMMAND messages, but I just get them with msg[0] = 1, low(msg[2] = 2), hi(msg[2] = 1024). But they seem not to be related to the trackbar.

Does anyone know how to catch messager from the trackbar????

Johannes
joh.becker
 
Posts: 86
Joined: Tue Apr 17, 2001 6:51 am
Location: Germany

Postby wolfgang on Mon Aug 26, 2002 1:10 pm

I have the same problem in my current development - I get no messages from the trackbar. I was hoping it would at least be transparent so I would get messages from the main window (guiid = 1) instead, but no. I ended up by setting up a 500ms timer to check the trackbar position in regular intervals to see if it has changed, it works, but needless to say I am not thrilled about my solution.

Wolfgang

Composing music on the PocketPC! - http://www.pdamusician.com
Composing music on the PocketPC! - http://www.pdamusician.com
wolfgang
 
Posts: 281
Joined: Tue Dec 12, 2000 4:22 am
Location: USA

Postby guy on Mon Aug 26, 2002 6:17 pm

I use a timer for my trackbar handling in normal PocketC (from pre CEAPI days).

The best solution would be to use CEAPI and to create the trackbar or scrollbar in the execution thread then get real windows messages.

Unfortunately I don't have a good solution for letting the PocketC part of the application have all of the windows messages. I still need Kevin's callable VM interface to make this work. The various kludges I have tried don't achieve the right result.


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
[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 joh.becker on Tue Aug 27, 2002 5:14 am

OK, I stick with the timer approach by now. CEAPI does not work for me, because I constantly run out of tablespace.

Johannes
joh.becker
 
Posts: 86
Joined: Tue Apr 17, 2001 6:51 am
Location: Germany

Postby guy on Tue Aug 27, 2002 11:15 am

The symbol table problem may have been increased because of some typing errors in the header files. You could try updating your copies of the header files to see whether you still get the symbol problem.

There is not yet a clean way of handling real windows messages in CEAPI.


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
[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


Return to PocketC for CE

Who is online

Users browsing this forum: No registered users and 2 guests

cron