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

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

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

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

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

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

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 112
[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 - Tables
Page 1 of 1

PostPosted: Mon Dec 08, 2003 9:49 pm
by Manoj
Hi Joe,

The documentation says that there is no support for drawing 'Tables'.

So how should I go about doing it. Essentially what I want to do is display a list of 3 columns, such as : Name, Age, SSN, all properly aligned as in normal tables.

How do others go about doing this? Please can you also provide a sample code or algorithm (with specific functions I need to use to create and populate the multi-column list. Better still if I can scroll the list).

Best regards,
Manoj

PostPosted: Mon Dec 08, 2003 11:46 pm
by jstadolnik
PalmOS tables are not supported with the PToolboxLib. However, you can easily fake them out by dynamically creating field and button object within a list, and then using the FsetMany/FgetMany functions to access the arrays of objects.

You should also be able to scroll using FsetMany.

For an example, see the example in the following link:
http://pocketc.net/forum/topic.asp?TOPI ... s=fsetmany

Joe

The PToolboxLib guy.
http://www.geocities.com/retro_01775/PToolboxLib.htm

PostPosted: Sun Dec 14, 2003 7:06 am
by Manoj
Hi Joe,
The example you mentioned above is not wholly adequate. Because the list that you mention is just vertically aligned Fields, CheckBoxes and PopupLists.

I want something like 3 columns of data, eg Name, Age, SSN. I can use pixel positioning like you did in the example above, to lay them out in alignment but I cannot scroll them. I also loose good visual appeal that standalone lists provide.

So what I have done now is to build three StandAlone lists one for each column and populate them individually. This looks good since the Lists also draw a box around themselves, highlight currently selected row and provide automatic scrolling.

The problem I have now is when I have more rows than my Lists can display. In this case, I get three scroll arrows, one for each List. <b>How can I suppress scroll arrows in two (or all) of the three lists?</b>
I want to use scroll arrows from one List to let me scroll entire row up or down. I believe I can keep all rows in the lists in sync by using Fctl(LISTUP and LISTDOWN methods for lists without scroll arrows. The problem comes down to suppressing the scroll arrows in other two lists.

Any suggestions?

Best regards,
Manoj :evil:

PostPosted: Sun Dec 14, 2003 11:21 am
by JustAl1947
Set the number of items in the lists equal to the number of items displayed. This will prevent the scroll arrows from being displayed. Create your own scroll arrows. When a scroll arrow is clicked on, programmatically reload the three lists with the appropriate data. This will take more programming effort on your part.:(

PostPosted: Sun Dec 14, 2003 3:38 pm
by jstadolnik
<blockquote id="quote"><font size="1" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote">
The example you mentioned above is not wholly adequate. Because the list that you mention is just vertically aligned Fields, CheckBoxes and PopupLists.
<hr height="1" noshade id="quote"></blockquote id="quote"></font id="quote">

Well, the example is simply my internal testcase for the FsetMany/FgetMany functions. That's all it was intended for.

True palmOS table objects do not have lines separating the columns and rows. A developer must draw lines in explicitly if they want them.

<blockquote id="quote"><font size="1" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote">
The problem I have now is when I have more rows than my Lists can display. In this case, I get three scroll arrows, one for each List. How can I suppress scroll arrows in two (or all) of the three lists?
I want to use scroll arrows from one List to let me scroll entire row up or down. I believe I can keep all rows in the lists in sync by using Fctl(LISTUP and LISTDOWN methods for lists without scroll arrows. The problem comes down to suppressing the scroll arrows in other two lists.
<hr height="1" noshade id="quote"></blockquote id="quote"></font id="quote">

This is pretty much a long standing PalmOS problem. There used to be way to supress the arrows in lists. However, with OS5, the developer lost access to it programmatically.

The best work around using list is described by JustAl1947 above. He's right on the money. That's actually what the professionals do.

You can scroll a set of fields via a similiar techique. Essentially, use FsetMany to load an array into a set of fields. The trick is in what part of the array you pass to FsetMany. If you have 5 vertically stacked fields, start by loading in the first 5 array values (with FsetMany). If the "table" is scrolled, re-call FsetMany, but start at a point deeper in the array (but still only assign 5 fields). This fakes out scrolling quite well.

If you want a true grid effect, use non-editable fields with no underlines. Then draw a box around the fields to create the list effect, and finally use FsetMany to populate the grid with values and to scroll.

Joe

The PToolboxLib guy.
http://www.geocities.com/retro_01775/PToolboxLib.htm

PostPosted: Sun Dec 14, 2003 11:29 pm
by Manoj
Thanks a lot to both you guys!:D
Manoj