And you've linked the list to the trigger in constructor?
Tim <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > I put in the LstSetHeight() function but it still doesn't work. Do you have > to put some other code, like a popSelect event, in one of the event handlers > for it to work? > > thanks, > -- > Tim Frakes > Systems Design Associates > > "Neil Rhodes" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > > > > 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. > > > > > > > Sounds like no items are visible. > > > > You need a call to LstSetHeight to specify how many items are visible. > > I usually use the minimum of the number of items in the list or 12 (as I > > remember), the maximum that'll fit on-screen. > > > > > 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); > > > > LstSetHeight(propLst, min(PropRecCount. 12)); > > > > > CtlSetLabel( popTrig, LstGetSelectionText (propLst, > > > LstGetSelection(propLst))); > > > > Neil > > -- > > Neil Rhodes > > Calliope Enterprises, Inc. > > 1328 Clock Avenue > > Redlands, CA 92374 > > (909) 793-5995 [EMAIL PROTECTED] fax: (909) 793-2545 > > > > > > > > -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
