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 - problem with a list

problem with a list

A PocketC native palm library offering native forms and assorted utilities

Postby auzan00 on Mon Jan 14, 2002 12:37 pm

Hi

I have a problem with a list.
I use two forms : the first is OK, but on the second one, I can't select any element on a list.

What's wrong ?

Do I need to define different ID numbers for every elemnt on every form or is it another problem ?

Thanks.
auzan00
 
Posts: 20
Joined: Fri Oct 26, 2001 10:19 am
Location: France

Postby jstadolnik on Mon Jan 14, 2002 1:56 pm

No clue. My car has this little rattle coming from the back right somewhere... any idea what it could be? <img src=icon_smile.gif border=0 align=middle>

You need to show your source code, otherwise I have no idea of what's going on.

Every form needs to have it's own ID number.
Every form object needs it's own ID number.

Joe


The PToolboxLib guy.
http://www.geocities.com/retro_01775/PToolboxLib.htm
jstadolnik
 
Posts: 1741
Joined: Wed Dec 06, 2000 3:34 am
Location: USA

Postby auzan00 on Tue Jan 15, 2002 7:49 am

I'm not good for car repair : so here is the code...

First form (no list, no problem) :
OpenBmpDb ("garcon");
FastBmp (0,15,0);
Form (FORM1,"RESTAURANT");
Label (LDef,110,40,"D?ɬ©finir :");
Button (BCarte,0x00,100,55,50,12,"Carte");
Button (BMenu,0x00,100,75,50,12,"Menu");
Label (Lpass,110,125,"Passer :");
Button (BComm,0x00,95,140,60,12,"Commande");
Button (BFin,0x00,20,140,32,12,"FIN");
Fctl (DRAW,FORM1);

Second form (everything works) :

Form (FORM2,"D?ɬ©finition carte");
List (LiType,0,25,70,NBType,BType);
FsetList (LiType,-1,NBType,LType);
Button (BType,0x003,10,25,0,0,"Cat?ɬ©gories");
List (LiPlat,80,25,70,MAXPlat,0);
Button (BFinC,0x00,1,145,27,12,"FIN");
Button (BNCat,0x00,32,145,40,12,"Nouvelle");
Button (BPlus,0x00,78,145,37,12,"Ins?ɬ©rer");
Button (BMoins,0x00,118,145,32,12,"Oter");
Fctl (DRAW,FORM2);

Third form (can't select) :

Form (FORM3,"D?ɬ©finition menus");
List (LiMenu,0,25,70,NBMenu,BLMenu);
FsetList (LiMenu,-1,NBMenu,LMenu);
Button (BLMenu,0x003,10,25,0,0,"Menus");
List (LiPlatM,80,25,70,MAXPlat,0);
Button (BNMenu,0x00,32,145,40,12,"Nouveau");
Button (BPlusM,0x00,78,145,37,12,"Ins?ɬ©rer");
Button (BMoinsM,0x00,118,145,32,12,"Oter");
Button (BFinM,0x00,1,145,27,12,"FIN");
Fctl (DRAW,FORM3);

What do you think ?

Fabrice
auzan00
 
Posts: 20
Joined: Fri Oct 26, 2001 10:19 am
Location: France

Postby jstadolnik on Tue Jan 15, 2002 1:27 pm

Well, since I don't now what your defines and variables are it's hard for me to figure out what's going on.

What device and OS version are you using.

Joe

The PToolboxLib guy.
http://www.geocities.com/retro_01775/PToolboxLib.htm
jstadolnik
 
Posts: 1741
Joined: Wed Dec 06, 2000 3:34 am
Location: USA

Postby auzan00 on Tue Jan 15, 2002 1:35 pm

device : Visor Platinum OS 3.5
PocketC version 4.2.0
PToolboxLib version 7.1.5

There are no variables in the listing I provided, only defines such as
#define FORM1 1000
All numbers are different.

Fabrice
auzan00
 
Posts: 20
Joined: Fri Oct 26, 2001 10:19 am
Location: France

Postby jstadolnik on Tue Jan 15, 2002 2:03 pm

Is LMenu, as used in the FsetList call an array of variables... it should be.

FsetList (LiMenu,-1,NBMenu,LMenu);

Joe


The PToolboxLib guy.
http://www.geocities.com/retro_01775/PToolboxLib.htm
jstadolnik
 
Posts: 1741
Joined: Wed Dec 06, 2000 3:34 am
Location: USA

Postby auzan00 on Tue Jan 15, 2002 2:05 pm

Yes, you're right : there are variables :

string LType[MAXType]={"Ap?ɬ©ritif","Entr?ɬ©e","Viande","L?ɬ©gume","Dessert"};
string LMenu[MAXMenu]={"Menu 1","Menu 2","Menu 3"};
auzan00
 
Posts: 20
Joined: Fri Oct 26, 2001 10:19 am
Location: France

Postby jstadolnik on Tue Jan 15, 2002 3:55 pm

In order to reproduce your problem, I need to run your code, so I will need all your defines too.

Joe

The PToolboxLib guy.
http://www.geocities.com/retro_01775/PToolboxLib.htm
jstadolnik
 
Posts: 1741
Joined: Wed Dec 06, 2000 3:34 am
Location: USA

Postby jstadolnik on Tue Jan 15, 2002 4:18 pm

Also, you need to be careful not to install a form (and it's objects) more than once without first destroying the old form.

You need to either create the forms only once and use the DRAW command to switch between them OR if you create the forms as you need them, you need to FREE them when your done with them.

Joe

The PToolboxLib guy.
http://www.geocities.com/retro_01775/PToolboxLib.htm
jstadolnik
 
Posts: 1741
Joined: Wed Dec 06, 2000 3:34 am
Location: USA

Postby jstadolnik on Wed Jan 16, 2002 2:35 am

It looks like you are missing a FsetList call for the LiPlatM list.

Joe

The PToolboxLib guy.
http://www.geocities.com/retro_01775/PToolboxLib.htm
jstadolnik
 
Posts: 1741
Joined: Wed Dec 06, 2000 3:34 am
Location: USA

Postby auzan00 on Wed Jan 16, 2002 5:25 am

No the FsetList is done elsewhere :
I'll send you the complete listing.

Thanks
auzan00
 
Posts: 20
Joined: Fri Oct 26, 2001 10:19 am
Location: France


Return to Pocket Toolbox

Who is online

Users browsing this forum: No registered users and 2 guests

cron