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 - Controls Question

Controls Question

Discuss PocketC for CE (including Desktop Edition)

Postby corwyn on Sun Nov 24, 2002 4:53 pm

Still learning the ins and outs of pocketc. I am working on creating controls in the Docs it states that 'each control has its own specific styles. For each control, consult the control documentat' I am not locating the documentation for each control. I went the header and have played the values I found there but they don't seem to have anyeffect.

am I missing somehting?

----------------------------------------------------------
http://www.kolvir.com/ <- Ever Evolving!
Don Glover, the younger "Wild Thing"
C, Visual Basic Programmer: Have Network Will Program.
----------------------------------------------------------
http://www.kolvir.com/ <- Ever Evolving!
Don Glover, the younger "Wild Thing"
C, Visual Basic Programmer: Have Network Will Program.
corwyn
 
Posts: 11
Joined: Thu Nov 21, 2002 4:02 am
Location: USA

Postby corwyn on Sun Nov 24, 2002 5:08 pm

Figured out part of the problem.. the why it had no effect. I am still looking for the controls documentation though.

<blockquote id="quote"><font size="1" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote"><i>Originally posted by corwyn</i>
<br />Still learning the ins and outs of pocketc. I am working on creating controls in the Docs it states that 'each control has its own specific styles. For each control, consult the control documentat' I am not locating the documentation for each control. I went the header and have played the values I found there but they don't seem to have anyeffect.

am I missing somehting?

----------------------------------------------------------
http://www.kolvir.com/ <- Ever Evolving!
Don Glover, the younger "Wild Thing"
C, Visual Basic Programmer: Have Network Will Program.
<hr height="1" noshade id="quote"></blockquote id="quote"></font id="quote">

----------------------------------------------------------
http://www.kolvir.com/ <- Ever Evolving!
Don Glover, the younger "Wild Thing"
C, Visual Basic Programmer: Have Network Will Program.
----------------------------------------------------------
http://www.kolvir.com/ <- Ever Evolving!
Don Glover, the younger "Wild Thing"
C, Visual Basic Programmer: Have Network Will Program.
corwyn
 
Posts: 11
Joined: Thu Nov 21, 2002 4:02 am
Location: USA

Postby joh.becker on Mon Nov 25, 2002 7:52 am

You will find this info on the MS webpage. I don't have the link at hand, but if you search this forum you should find the link here.

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

Postby guy on Mon Nov 25, 2002 8:46 am

The information that you want is at:

http://msdn.microsoft.com/library/en-us/wceintro/htm/cestart.asp

Function documentation can be found by choosing "Windows CE API Reference" in the left hand (contents) pane.

For general control styles you should look at the documentation for the CreateWindow() and CreateWindowEx() functions. The PocketC createctrl() function calls the real CE API CreateWindowEx() function. The documentation is in the "Windows User Interface Services" section of the documentation, in the "Windows" subsection.

For the individual control styles you need to look in the appropriate subsection of the "Windows User Interface Services section".

Not all of the constants are defined in the standard pcheader.h, just the most common ones.

You can get more of the constants from windefs.h which is in the PCForm evaluation kit (see link in signature below). Or (plug) buy the registered PCForm. PCForm will write the PocketC code that creates controls for you, all you have to do is draw your user interface on the screen.

Alternatively you can get just about everything that you need by installing the CE API interface library (free, link in signature below) and including the headers winuser.h and commctrl.h. This also has a more recent copy of windefs.h but you should really be using winuser.h and commctrl.h rather than pcheader.h and windefs.h.


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 corwyn on Mon Nov 25, 2002 11:45 am

That is what I was missing. The documentation in question is microsoft documentation not pocketc docs... thanks.
<blockquote id="quote"><font size="1" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote"><i>Originally posted by guy</i>
<br />The information that you want is at:

http://msdn.microsoft.com/library/en-us/wceintro/htm/cestart.asp


<hr height="1" noshade id="quote"></blockquote id="quote"></font id="quote">

----------------------------------------------------------
http://www.kolvir.com/ <- Ever Evolving!
Don Glover, the younger "Wild Thing"
C, Visual Basic Programmer: Have Network Will Program.
----------------------------------------------------------
http://www.kolvir.com/ <- Ever Evolving!
Don Glover, the younger "Wild Thing"
C, Visual Basic Programmer: Have Network Will Program.
corwyn
 
Posts: 11
Joined: Thu Nov 21, 2002 4:02 am
Location: USA

Postby wolfgang on Mon Nov 25, 2002 7:18 pm

For an easier (simpler) start, download the PC Form Demo ( http://www.pcform.net ). It contains a fairly complete description of the controls that are available in PocketC, along with their attributes, styles etc.

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 Tue Nov 26, 2002 7:54 am

Or if you don't want PCForm, the help file is online anyway at the pcform site.


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 corwyn on Tue Nov 26, 2002 12:11 pm

Thanks. My initial thoughts are that I want to learn the ins and outs of the PocketC language before I start going the visual route.


<blockquote id="quote"><font size="1" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote"><i>Originally posted by guy</i>
<br />Or if you don't want PCForm, the help file is online anyway at the pcform site.


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

<hr height="1" noshade id="quote"></blockquote id="quote"></font id="quote">

----------------------------------------------------------
http://www.kolvir.com/ <- Ever Evolving!
Don Glover, the younger "Wild Thing"
C, Visual Basic Programmer: Have Network Will Program.
----------------------------------------------------------
http://www.kolvir.com/ <- Ever Evolving!
Don Glover, the younger "Wild Thing"
C, Visual Basic Programmer: Have Network Will Program.
corwyn
 
Posts: 11
Joined: Thu Nov 21, 2002 4:02 am
Location: USA

Postby guy on Tue Nov 26, 2002 2:24 pm

<blockquote id="quote"><font size="1" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote"><i>Originally posted by corwyn</i>
<br />Thanks. My initial thoughts are that I want to learn the ins and outs of the PocketC language before I start going the visual route.
<hr height="1" noshade id="quote"></blockquote id="quote"></font id="quote">

A good plan. The simple event loop that I posted in the previous thread is all you really need. When you get PM_COMMAND events you should call getnotify() to get the additional notification code. Some simple user actions will generate several PM_COMMAND events for a control, and you usually only want to respond to one of them.

Most of the notification codes are in windefs.h. This is originally from PCForm, but I think Kevin now includes it in the desktop compiler kit. It isn't in the device compiler kit.

There is a useful collection of header files that define everything that you are likely to need here:

http://www.networkdynamics.net/headers.zip

This has an updated version of windefs in it, or you could use winuser.h and commctrl.h which match the files of the same names that Microsoft provides with eMbedded Visual Tools. If you use these headers you should put all of them in directory "\PocketC" whether you are using the desktop or the device compiler.


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