I am trying to set the list choices in a popup list, but when I tap on the
trigger I only get a thin line across the screen where the list object is.
What's weird is when I fill the list from the constructor it works fine.
Does anything special need to be do when I fill the list. I have been
trying to figure out this problem for awhile now and it is driving me crazy.
Here is my code to fill the list.
----------------------------------------------------------------------------
-----
ListPtr propLst;
ControlPtr popTrip = ((ControlPtr)GetObjectPtr(MainPropPopTrigger);
Property curProp;
char* Prop[20];
UInt PropRecCount = DmNumRecords(gPropertyDB);
propLst = (ListPtr)GetObjectPtr(MainPropertyList);
for(int i = 0; i < PropRecCount; i++)
{
VoidHand myRecord = DmQueryRecord(gPropertyDB, i);
if(myRecord)
{
UnpackProperty(&curProp, (PackedProperty*)MemHandleLock(myRecord));
MemHandleUnlock(myRecord);
DmReleaseRecord(gPropertyDB, i, false);
Prop[i] = curProp.Prop;
}
}
LstSetListChoices(propLst, Prop, PropRecCount);
LstSetSelection(propLst, 0);
CtlSetLabel( popTrig, LstGetSelectionText (propLst,
LstGetSelection(propLst)));
----------------------------------------------------------------------------
----------------
Thanks for the help.
----
Tim Frakes
Systems Design Associates LLC
--
For information on using the ACCESS Developer Forums, or to unsubscribe, please
see http://www.access-company.com/developers/forums/