Nope, the document states that, though not in the exact words IT DOES
NOT MAKE A COPY.
-LstSetListChoices (ListType *listP, Char **itemsText, UInt16 numItems)
-Parameters : itemsText Pointer to an array of text strings.
So, u would have to do something like this:
void foo()
{ Char* *strArray
Basically if the API name has Set in the title it merely stores a
reference to whatever you pass in, if it has Copy in the name it will
actually copy what you pass it. eg FrmCopyTitle copies the string you pass it.
Regards,
Gavin.
--
For information on using the ACCESS Developer Forums, or
Hello,
am trying to get a simple database listing.
Is there a limit to the number items that can be passed to LstSetListChoices.
Many thanks
regards Darren
--
For information on using the ACCESS Developer Forums, or to unsubscribe, please
see http://www.access-company.com/developers/forums/
only
during scrolling
Darren wrote:
Hello,
am trying to get a simple database listing.
Is there a limit to the number items that can be passed to LstSetListChoices.
Many thanks
regards Darren
--
For information on using the ACCESS Developer Forums, or to unsubscribe, please
see http
on this list when you select or unselect them.
Eduardo Orea.
Darren escribió:
Hello,
am trying to get a simple database listing.
Is there a limit to the number items that can be passed to
LstSetListChoices.
Many thanks
regards Darren
--
For information on using the ACCESS Developer Forums
or unselect them.
Eduardo Orea.
Darren escribió:
Hello,
am trying to get a simple database listing.
Is there a limit to the number items that can be passed to
LstSetListChoices.
Many thanks
regards Darren
--
For information on using the ACCESS Developer Forums, or to unsubscribe, please
Thank you James, that was the problem. I have it fixed now. I really appreciate
your help :)
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/
When I use LstSetListChoices to set the items in a list, whenver I click on an
item it turns into garbbage. Random symbols and at some points it tries to
access invalid memory.
This is the code I'm using I am setting the text for a list created by the
resource editor.
---
Char
Ron wrote:
When I use LstSetListChoices to set the items in a list,
whenver I click on an item it turns into garbbage. Random
symbols and at some points it tries to access invalid
memory.
This is the code I'm using I am setting the text for a list
created by the resource editor
I dont know whether my code is wrong or not.
What happened is all parameters are correct but
Function LstSetListChoices is not working..
It crushes the emulator without error message..
Of course, It will be my mistake in the code..
I will just show u the code anyway..
Please reply
Jinyoung Lee wrote:
Function LstSetListChoices is not working..
It crushes the emulator without error message..
snip
__
void FillLetsCookFormListWithData(ListType *titleLst, ListType *categoryLst,
ListType *yieldLst) {
What about those
Actually, on second thought, I'm thinking that the problem might not be
the call to LstSetListChoices at all. The ListType objects may still be
invalid, but the bigger mistake would be that you allocated memory for
the list elements within your FillLetsCookFormListWithData function
titleItemList[i] = (char
*)MemPtrNew(StrLen(dbRecipePtr-title));
StrCopy(titleItemList[i], dbRecipePtr-title);
Simple example:
- we assume the title is foo
- then StrLen(title) is 3, right?
- so you allocate a buffer of 3 bytes
- then use StrCopy to copy foo
(somehow my other message appeared without subject and with date set to
1970..)
titleItemList[i] = (char)MemPtrNew(StrLen(dbRecipePtr-title));
StrCopy(titleItemList[i], dbRecipePtr-title);
Simple example:
- we assume the title is foo
- then StrLen(title) is 3, right?
- so you allocate
On Thu, 23 Mar 2006, Robert Moynihan wrote:
Actually, on second thought, I'm thinking that the problem might not be
the call to LstSetListChoices at all. The ListType objects may still be
invalid, but the bigger mistake would be that you allocated memory for
the list elements within your
Hi Dean,
On Thu, 23 Mar 2006, Robert Moynihan wrote:
Actually, on second thought, I'm thinking that the problem might not be
the call to LstSetListChoices at all. The ListType objects may still be
invalid, but the bigger mistake would be that you allocated memory for
the list elements within
Robert Moynihan wrote:
Hi Dean,
On Thu, 23 Mar 2006, Robert Moynihan wrote:
Actually, on second thought, I'm thinking that the problem might not be
the call to LstSetListChoices at all. The ListType objects may
still be
invalid, but the bigger mistake would be that you allocated memory
[Charset ISO-8859-1 unsupported, filtering to ASCII...]
Robert Moynihan wrote:
Hi Dean,
On Thu, 23 Mar 2006, Robert Moynihan wrote:
Actually, on second thought, I'm thinking that the problem might not be
the call to LstSetListChoices at all. The ListType objects may
still
Dean Gahlon wrote:
(I also suspect that Thomas Damme's
message on this topic (to allocate StrLen(...)+1 rather than
StrLen(...)) is more where the OP's problem lies.)
I agree 100%. That is fundamental error that, really, couldn't help but
crash. I didn't see that problem during my first
Thank you very much for replies...
But i still cannot make it work...
First the input parameters are corroct ( I think )
What i use to get the parameters is following:
FormPtr frmP;
frmP = FrmGetActiveForm();
(ListType *)(FrmGetObjectPtr(frmP, FrmGetObjectIndex(frmP,
Sori..finally I got answer.. I had mistake in resource numbering..
I didnt check the other numbering in label..
There were two same resource numbers that are the one for
label and the other for list. That's why it crashed..
Anyway thank you,, thany you..
--
For information on using the
Subject: Re: LstSetListChoices keeps crashing on me :(
From: Robert Baruch [EMAIL PROTECTED]
You can't make the array const... otherwise you couldn't have lists whose
content changes.
I also added LstSetHeight, but that failed to help.
I think I'm going to have to fork over $125 to Palm Support
You can't make the array const... otherwise you couldn't have lists whose
content changes.
I also added LstSetHeight, but that failed to help.
I think I'm going to have to fork over $125 to Palm Support to get them to
figure it out :(
--Rob
--
For information on using the Palm Developer
, Tuesday, Wednesday,
Thursday, Friday, Saturday};
Set up your list:
ListType*listP=GetObjectPointer(yourListID);
LstSetListChoices(listP, days, 7);
LstSetSelection(listP,3); //sets the initial selection as Wednesday,
just for kicks.
LstSetHeight(7);
Now draw the list:
LstDrawList(listP);
Now
Robert Baruch [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi all,
Can someone tell me what's wrong? In my program, when
LstSetListChoices is hit, the emulator dies with an array index out of
bounds.
Here's the code fragment:
static void displayCallLog()
{
ListType *list
Robert Baruch wrote:
I also added LstSetHeight, but that failed to help.
I think I'm going to have to fork over $125 to Palm Support to get
them to figure it out :(
You could try using setting callback to draw the list items. Your
callback and then just do WinDrawChars(), and it can use
Can someone tell me what's wrong? In my program, when LstSetListChoices is
hit, the emulator dies with an array index out of bounds.
As the others said, the variables has an implizit auto modifier and it is
not longer valid when the list is drawn. I think you should add the modifiers
const
Hi all,
Can someone tell me what's wrong? In my program, when LstSetListChoices is hit,
the emulator dies with an array index out of bounds.
Here's the code fragment:
static void displayCallLog()
{
ListType *list;
char *duration;
char *testArray[] = {one, two, three, four, five};
list
Robert Baruch wrote:
Hi all,
Can someone tell me what's wrong? In my program, when LstSetListChoices is hit,
the emulator dies with an array index out of bounds.
Here's the code fragment:
static void displayCallLog()
{
ListType *list;
char *duration;
char *testArray[] = {one, two, three, four
Robert Baruch wrote:
Hi all,
Can someone tell me what's wrong? In my program, when LstSetListChoices is hit,
the emulator dies with an array index out of bounds.
Here's the code fragment:
static void displayCallLog()
{
ListType *list;
char *duration;
char *testArray[] = {one, two, three
OK, I have made the testArray global, and the crash with index out of bounds
still happens... what else could be wrong?
static char *testArray[] = {one, two, three, four, five};
static void displayCallLog()
{
// etc
}
Thanks for any help!
--Rob
--
For information on using the Palm
I think what might be happening is your list is trying to use the
pointer between freeing the old pointer and setting the new
pointer.
Try reversing the order; set the new pointer first, then free the
old memory.
Top tip
Thanks for that, it's much happier now :-)
--
For information on
Does this behave differently in PalmOS 5 ?
On the Emulator (M505 ROM), if I don't manually free up the memory I allocated for the
ListItems (an array of Strings), I get warnings about leaked memory upon application
exit (Form Close). So my application frees the memory itself.
On the Garnet
From: Steve [EMAIL PROTECTED]
Does this behave differently in PalmOS 5 ?
On the Emulator (M505 ROM), if I don't manually free up
the memory I allocated for the ListItems (an array of Strings),
I get warnings about leaked memory upon application exit
(Form Close). So my application frees
By the way, if the sources code of the Lib (managing Lists) are
available, I'd be more than curious to give em a look ;-)
Axel Bernard wrote:
By the way, I confirm that it is an actual bug in the Lib:
- modifying the Sample appli Formats (FormatsPanel.c) as
/* --
I dont know if its the same problem you are having but we were getting
blank lists when selecting a list item in the 2500 range with OS 3.5 We
had to scroll the list after selecting an we were ok.
We did something like this to make it draw properly
LstSetSelection(listP, listIndex);
Mike Margerum wrote:
I dont know if its the same problem you are having but we were getting
blank lists when selecting a list item in the 2500 range with OS 3.5 We
had to scroll the list after selecting an we were ok.
We did something like this to make it draw properly
Axel Bernard [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Mike Margerum wrote:
I dont know if its the same problem you are having but we were getting
blank lists when selecting a list item in the 2500 range with OS 3.5 We
had to scroll the list after selecting an we were ok.
Hi all,
i'm back on the subject as i'm stuck right now.
Our program
- display a list of 2979 items (strings), 12 visible items
- using our own Draw function through LstSetDrawFunction
- when LstSetTopItem () is set to 2967 (ie top of last page) the list is
displayed a microsecond then is
At 08:39 PM 10/28/2003, Axel Bernard wrote:
Hi all,
i'm back on the subject as i'm stuck right now.
Our program
- display a list of 2979 items (strings), 12 visible items
- using our own Draw function through LstSetDrawFunction
- when LstSetTopItem () is set to 2967 (ie top of last page) the
By the way, I confirm that it is an actual bug in the Lib:
- modifying the Sample appli Formats (FormatsPanel.c) as
/* -- PanelPickListDrawItem func - */
static char marre[128]; //+
static void PanelPickListDrawItem (UInt itemNum, RectanglePtr bounds,
How many visible items are there?
-Original Message-
From: Steve K [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 13, 2003 1:10 PM
To: Palm Developer Forum
Subject: LstSetListChoices
It has been a few days and I have not heard on this, so I thought I would
post again.
I am trying
According to the Palm OS Reference, if the list is visible when you call
LstSetListChoices, you will need to call LstDrawList to update the list.
-Tom
It has been a few days and I have not heard on this, so I thought I would
post again.
I am trying to set the choices in a list using
Thanks guys, but I have solved this issue already.
Steve K
Tom Hoelscher [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
According to the Palm OS Reference, if the list is visible when you call
LstSetListChoices, you will need to call LstDrawList to update the list.
-Tom
It has been a few days and I have not heard on this, so I thought I would
post again.
I am trying to set the choices in a list using LstSetListChoices, and know I
am getting very close to getting it to work.
I call my function to populate the list and I receive no error and I get no
data
On Fri, 8 Aug 2003 09:51:28 -0700, Dave Carrigan [EMAIL PROTECTED] wrote:
On Fri, Aug 08, 2003 at 12:26:13PM -0400, bullshark wrote:
static char* gPlateString =
PL3/16x\0PL1/4x\0PL5/16x\0PL3/8x\0PL1/2x\0PL5/8x\0;
The above doesn't work. The compiler knows that dquote strings end with \0
At 05:14 PM 8/13/2003, Steve K wrote:
I tried your suggestion still I get nothing. I've tried adding a
LstDrawList still get nothing.
Have you stepped through with a debugger and verified that the system call
that makes your list of string pointers is correctly formatting up the list?
--
Ben
I tried your suggestion still I get nothing. I've tried adding a
LstDrawList still get nothing.
Still at a loss...
thanks,
steve
The bug is that you unlock the gStringH handle after you've passed it's
locked pointer to LstSetListChoices. That handle needs to remain locked
until after
;
static Boolean PopulateList(void)
{
FormType* frmP = FrmGetActiveForm();
ListType* lstP = (ListType*) FrmGetObjectPtr(frmP, lstDesc);
gStringH = SysFormPointerArrayToStrings(gPlateString, 6);
gListString = (char**)MemHandleLock(gStringH);
LstSetListChoices(lstP, gListString, 6
On Fri, Aug 08, 2003 at 03:29:21PM -0700, Steve K wrote:
I think I should also note that I am using this list with a pop-up list.
Not sure if that makes a difference or not, but thought I would mention it.
If it's for a popup list, you definitely have to avoid freeing the
handle until there is
**) SysFormPointerArrayToStrings(gPlateString, 6);
LstSetListChoices(lstP, gListString, 6);
LstDrawList(lstP);
return true;
}
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/
)
{
Boolean retValue = false;
if(lstP) {
LstSetListChoices(lstP, listString, size);
LstDrawList(lstP);
retValue = true;
}
return retValue;
}
Steve K
Steve K [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Using the debugger and an emulator as opposed
At 04:31 PM 8/13/2003, Steve K wrote:
I am trying to set the choices in a list using LstSetListChoices, and know I
am getting very close to getting it to work.
I call my function to populate the list and I receive no error and I get no
data displayed in my list.
Here is the function.
static char
Using the debugger and an emulator as opposed to just running it on the palm
gives me an error message on the LstSetListChoices call:
Inventory (1.0) called SysFatalAlert with the message: Font.c, Line:248,
Invalid font.
thanks
Steve
Ben Combee [EMAIL PROTECTED] wrote in message
news:[EMAIL
I am trying to set the choices in a list using LstSetListChoices, and know I
am getting very close to getting it to work.
I call my function to populate the list and I receive no error and I get no
data displayed in my list.
Here is the function.
static char* gPlateString =
PL3/16x\0PL1/4x\0PL5
On Fri, Aug 08, 2003 at 12:26:13PM -0400, bullshark wrote:
static char* gPlateString =
PL3/16x\0PL1/4x\0PL5/16x\0PL3/8x\0PL1/2x\0PL5/8x\0;
The above doesn't work. The compiler knows that dquote strings end with \0
so there is nothing in the .o image after PL3/16x.
What are you talking
();
ListType* lstP = (ListType*) FrmGetObjectPtr(frmP, lstDesc);
gStringH = SysFormPointerArrayToStrings(gPlateString, 6);
gListString = (char**)MemHandleLock(gStringH);
LstSetListChoices(lstP, gListString, 6);
LstDrawList(lstP);
MemHandleUnlock(gStringH);
MemHandleFree(gStringH);
return true
On Fri, Aug 08, 2003 at 03:41:24PM -0400, bullshark wrote:
On Fri, 8 Aug 2003 09:51:28 -0700, Dave Carrigan [EMAIL PROTECTED] wrote:
On Fri, Aug 08, 2003 at 12:26:13PM -0400, bullshark wrote:
static char* gPlateString =
PL3/16x\0PL1/4x\0PL5/16x\0PL3/8x\0PL1/2x\0PL5/8x\0;
It's still a
,SysFormPointerArrayToStrings failed);
gListString=MemHandleLock(h);
LstSetListChoices(lstP, gListString,6);
// when you are done with the list, unlock the handle and call MemHandle Free
// SysForm allocated it for you, disposal is your problem
If you are going to allocate yourself:
// this looks more
On Thu, Aug 07, 2003 at 11:46:16PM -0700, Steve K wrote:
I have read many a posts on this question, however, none seem to be working
for me. I have attempted to simplify this with no results. I am no longer
getting fatal exceptions, however nothing is happening.
What is the key ingredient
)
{
gStringH = SysFormPointerArrayToStrings(gPlateString, 6);
gListString = (char**)MemHandleLock(gStringH);
LstSetListChoices(lstP, gListString, 6);
MemHandleUnlock(gStringH);
return true;
}
...
case frmCloseEvent:
MemHandleFree(gStringH);
break;
tia,
Steve
Dave Carrigan
, lstDesc);
gStringH = SysFormPointerArrayToStrings(gPlateString, 6);
gListString = (char**)MemHandleLock(gStringH);
LstSetListChoices(lstP, gListString, 6);
LstDrawList(lstP);
MemHandleUnlock(gStringH);
MemHandleFree(gStringH);
return true;
}
Also I hate to be too much of a bother
how?
you need a string-array to fill the list.
example1:
#define LIST_ITEMS 3
#define MAX_STRING_LEN50
Char szList[LIST_ITEMS][MAX_STRING_LEN] = {abcdefg, hijklmno,
pqrstuvw};
if you want to use string resources to fill the list, simply load the
strings in a string array
and now what should i do if just like
#define LIST_ITEMS 3
#define MAX_STRING_LEN50
Char szList[LIST_ITEMS][MAX_STRING_LEN] = {abcdefg, hijklmno,
pqrstuvw};
Markus Dresch [EMAIL PROTECTED] дÈëÏûÏ¢ÐÂÎÅ:[EMAIL PROTECTED]
how?
you need a string-array to fill the list.
how?
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/
--- Akhil Bhandari [EMAIL PROTECTED] wrote:
I am adding data in the list dynamically. I am using
method LstSetListChoices() . It works fine.
Now like this if a add no. of items more than the list
visible item, a scroll bar appears and if i click it,
program crashes.
Maybe you aren't
Hi,
I am using list control in my GUI application in palm
OS CodeWarrior.
I am adding data in the list dynamically. I am using
method
LstSetListChoices() . It works fine.
Now like this if a add no. of items more than the list
visible item, a
scroll bar appears and if i click it, program
*)MemHandleLock(recordH);
temprec = *myrec;
filelist[i] = (Char*)MemPtrNew(20);
StrCopy(filelist[i], temprec.fileno);
MemHandleUnlock(recordH);
DmReleaseRecord(dbMainRef, i, 0);
}
LstSetListChoices(lstFileNo, filelist, 4);
--
Make sure you free the memory allocated in form
Am Don, 2002-07-25 um 22.53 schrieb Steve Mann:
Hi,
My question: is it legal to pass a null pointer to LstSetListChoices
Yes, in the 2nd parameter.
Of course :)
and/or what might be other reasons for this behaviour?
CtlnewControl may invalidate any previous form pointers you have
Idea: I read of a bug in 3.5 when using CtlNewControl is
(unsuccessfully) trying to adapt every ptr in a dynamically created
form. Might it be that on 3.5 the CtlNewControl goes through all other
form elements that already exist in the form and does something with
'em?
There were problems with
Am Fre, 2002-07-26 um 07.54 schrieb Steve Mann:
Hi,
There were problems with dynamic form elements in 3.5 and earlier.
They were kind of delicate. That would be my guess as to the problem.
Do you need to be able to run on 3.5?
Definitely yes. The OS 3.5 fraction is just too big to ignore
(
(Char*)p )
+ 1 );
StrCopy( items[ ndx ], p );
MemHandleUnlock( h );
}
LstSetListChoices( listP, items, numItems );
LstSetHeight( listP, numItems );
}
Note that the Char** must be global to work also
the two dimension array to the popup list. The
LstSetListchoices() requires list items in the Char **itemsText format. I
use SysFormPointerArrayToStrings() function which also returns error
message. How do I convert the 2dimension array to a Char ** format.
Or is there any other way to get the list
in items and free it when you don't need it.
Khurram+
- Original Message -
From: Yuva Kumar [EMAIL PROTECTED]
To: Palm Developer Forum [EMAIL PROTECTED]
Sent: Friday, November 09, 2001 11:00 AM
Subject: error in LstSetListChoices() function? Help required.
Hi All,
I am accessing
I'm getting a fatal error MemoryMgr.c, Line 4342, NULL handle when
running an application on the palm, I think the error comes from the
following code:
Why not use the symbolic debugger and POSE to find out _exactly_
where the error occurs. It's much easier to track down problems that
way.
( theListItems );
ListPtr list = (ListPtr) FrmGetObjectPtr(frm,
FrmGetObjectIndex(frm, PartTwoAbility1List));
CharPtr unlock=(CharPtr)MemHandleLock(gStringArrayH);
LstSetListChoices(list, unlock, theListCount);
does someone have an idea where my error
Subject: LstSetListChoices
From: Nancy Kho [EMAIL PROTECTED]
Date: Thu, 07 Jun 2001 17:31:30 -0500
I'm getting a fatal error MemoryMgr.c, Line 4342, NULL handle
when running an application on the palm, I think the error comes
from the following code:
First, I'd strongly recommend you
));
CharPtr unlock=(CharPtr)MemHandleLock(gStringArrayH);
LstSetListChoices(list, unlock, theListCount);
does someone have an idea where my error is?
thanks,
[EMAIL PROTECTED]
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http
Does LstSetListChoices() make its own copy for the list to use, or does it continue to
use the memory that you have indicated in this call?
Could I destroy my string list, and the list remain happy?
Jason Garrett
wirelessdata
Ph: +64 9 379 3710 Fax: +64 9 379 7360 Cell: +64 21 400 307 ICQ
Nope, the document states that, though not in the exact words "IT DOES
NOT MAKE A COPY".
-LstSetListChoices (ListType *listP, Char **itemsText, UInt16 numItems)
-Parameters : itemsText Pointer to an array of text strings.
So, u would have to do something like this:
void foo()
{ Char*
Basically if the API name has "Set" in the title it merely stores a
reference to whatever you pass in, if it has "Copy" in the name it will
actually copy what you pass it. eg FrmCopyTitle copies the string you pass it.
Regards,
Gavin.
--
For information on using the Palm Developer Forums, or
Thanks for response. I solved the problem by using a pointer to my
text strings.
Owen
From: Owen Flagel [mailto:[EMAIL PROTECTED]]
I'm setting the label and I'm returning a handled = true
in a popSelect event, but the problem still persists. Any
further ideas where I could be going
From: Owen Flagel [mailto:[EMAIL PROTECTED]]
I'm setting the label and I'm returning a handled = true
in a popSelect event, but the problem still persists. Any
further ideas where I could be going wrong here.
Now we need more info. Exactly where is the crash? Can you give the call
stack
From: Karen M Serafino [mailto:[EMAIL PROTECTED]]
When you tap the popup trigger, it will display the first item with
a little down-arrow to the right of it, but none of the other items.
OK, when you dynamically populate a popup list, you should always call
LstSetHeight to make it display as
From: Karen M Serafino [mailto:[EMAIL PROTECTED]]
I do not have a stringtable resource with the items all set up;
I need to read them from a database. I set up a packed string
of null-terminated strings and called SysFormPointerArrayToStrings
Consider a different technique: don't create a
From: "Karen M Serafino" [EMAIL PROTECTED]
Subject: Re: LstSetListChoices
..., but with the popup symbol (solid triangle)
to the left of it versus to the right.
If you position the list too far to the right, the OS will put the popup
arrow to the left. Try moving the list le
I'm drawing a list resource using LstSetListChoice(,NULL,) and then
using a draw function LstSetDrawFunction(,,). The new list redraws
correctly. However, when I select an item from the list I get the
Error:
Just written to memory location zero(NULL).
The list object is being
is to just grab the text for the selected item from the array of
strings that you originally passed to LstSetListChoices. But in this case,
you passed NULL for that, and the OS doesn't know any better, so it crashes
when trying to use that NULL pointer.
-slj-
--
For information on using
ALL
How can I show gif / jpeg images on Palm device ?
Thanks
Paulo Ricardo
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/
What exactly does this have to do with "NULL memory after
LstSetListChoices"?
Anyway, take a look at FirePad's FireViewer at www.firepad.com
Hope that helps!
-Rus
http://www.act.avnet.com/
-Original Message-
From: Paulo Ricardo Colacino [mailto:[EMAIL PROTECTED]]
Se
the popSelect handler to prevent the OS from trying to
do its default behavior...
...which is to just grab the text for the selected item from the array of
strings that you originally passed to LstSetListChoices. But in this case,
you passed NULL for that, and the OS doesn't know any better, so
SysFormPointerArrayToStrings to create the array of pointers to
pass to LstSetListChoices, but it just blanks out the old items in the
list and leaves it empty after I draw the form again.. Thank you.
Karen Serafino
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
From: "Karen M Serafino" [EMAIL PROTECTED]
Subject: LstSetListChoices
Does anyone have a WORKING example or explanation of how to set the items
of a list to string values read from a database? I do not have a
stringtable resource with the items all set up; I need to read
and popup trigger text were set up explicitly in
a .RCP file. Thanks.
Karen Serafino
On Sun, 22 Oct 2000 14:14:13 -0500 "Richard Burmeister"
[EMAIL PROTECTED] writes:
From: "Karen M Serafino" [EMAIL PROTECTED]
Subject: LstSetListChoices
Does anyone have a WORKING example o
My
question is how can I define the first item to display?
LstSetTopItem.
Regards,
Steve Mann
--
---
Creative Digital Publishing Inc.
1315 Palm Street, San Luis Obispo, CA 93401-3117
---
805.784.9461
When I call the function I get a Fatal Exception. Here's some of my source
code:
char ItemsText[2][10] = {"String1","String2"};
//...
LstSetListChoices(pList,(char**)ItemsText,2);
You've declared an array with 20 characters in it.
You need to declare an array of char
)
}
next string
}
//now that there is a record containing an array of character pointers..
LstSetListChoices(listP, itemsText, numStrings);
My problem is that I can't seem to figure out the declarations/syntax to set
and pass the itemsText variable. Any ideas? Anyone already done
(PedidosDetalleEtiquetasList);
LstSetListChoices(lst, MemHandleLock(choicesEtiquetasPtrsHandle),
numEtiquetas);
}
return true;
}
Amadeu
De: "Rob Graber" [EMAIL PROTECTED]
Responder a: "Palm Developer Forum" [EMAIL PROTECTED]
Fecha: Wed, 26 Apr 2000 09:34:32 -0500
Para: &
Where can i find the newest printcap and msr stuff? i have a device that i
doubt is updated in the existing printcap and want to know if it is at all
supported, if not, i will manually hafta put all the guts into it. is
there anything i should know about if i go about that road? i already
i changed my app (because of the large arrays used for the list
construction) to use memhandles to store the list items. when i set the
list all i get is the first item that i set. the remainder isn't displayed
but the arrow to scroll down is visable. what might cause the items not to
be
1 - 100 of 112 matches
Mail list logo