yep, as I beleive so.
The LstMakeItemVisible() Function makes an object visible in a list, not in
a popuptrigger. Thus, if you have a big list scrolled to the end and you do
a LstMakeItemVisible(list,0) the first record is gonna become the visible
item so your list is scrolled to the top.
For displaying labels in pop-up triggers of a dinamic list ( a list you
initialize in the code) you need to
hook an event that is popSelectEvent: there you set the label of the popup.
That event is generated everytime you selected an item of a list activated
by a popup
switch (event->eType) {
case popSelectEvent:
switch(event->data.popSelect.controlID) {
case PopTrigger:
CurrentRecord = event->data.popSelect.selection;
ctrl = (ControlPtr)
FrmGetObjectPtr(frm,FrmGetObjectIndex(frm,PopTrigger));
CtlSetLabel(ctrl,"trigger_name");
// you know where to take the trigger name becouse you have
the CurrentRecord Inex, that is, you
// can go to your database and retreive what you need to set
the name, the same way you
// retrieve it in you custom list draw function
handled = true;
break;
}
Hope this helps
Ariel
----- Original Message -----
From: Brian O'Grady <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, January 04, 2000 4:01 PM
Subject: Pop-up label not displaying
> Hello,
>
> I seem to be missing something with my pop-up trigger, I can not get a
> value from my list to appear in the pop-up label. The list is initialized
> with a draw function, I use LstSetSelection(list,0);
> LstMakeItemVisible(list,0); to make the first item in the list visible but
> nothing is shown. The list does display properly when selecting the
trigger
> arrow but after selecting an item from the list nothing appears next to
the
> trigger. The PP guide says it should place the chosen item in the pop-up
> label automatically. I'm sure I must be missing something simply, does
> anyone have an idea as to what I may be leaving out? Thank you.
>
> Brian O'Grady
>
>
>
>
>
>