Home > Archive > Clarion > January 2005 > VSCROLL in a list box with the IMM atribute
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
VSCROLL in a list box with the IMM atribute
|
|
| Alejandro 2005-01-13, 3:55 pm |
| Hi:
I just have a queue loaded listbox with the IMM atribute on, because I
need to filter another queue loaded listbox on the NewSelection event.
The first queue have more records than the available vertical space on
the list box, so I need to implement a vertical scroll bar.
Refering to the help it says:
"When you place VSCROLL on a LIST with the IMM attribute, the vertical
scroll bar is always present, even when the list is not full. When the
user clicks on the scroll bar, events are generated, but the list
contents do not move (executable code should perform this task). "
But I have no idea of how to implement this....
can someone help me?
Thx
| |
| Jean Lussier 2005-01-13, 3:55 pm |
| For Queue loaded listbox, you should NOT put the
attribute IMM. On the event "NewSelection", all
that you need to do is GET(myQueue, CHOICE(?List)).
At this point the current Queue record is in memory
and can be used to load and filter another Queue.
This works irrelevant of the cause of NewSelection
(mouse_click, Keyboard, Scrolling...).
Obviously you will need to adjust the value "myQueue"
and "?List" in the code above to match your code.
Jean Lussier
INFORMACCES - Montreal (Canada)
"Alejandro" <manticorebp@gmail.com> wrote in message
news:57b6b12d.0501130847.33d69ab1@posting.google.com...
> Hi:
> I just have a queue loaded listbox with the IMM atribute on, because I
> need to filter another queue loaded listbox on the NewSelection event.
> The first queue have more records than the available vertical space on
> the list box, so I need to implement a vertical scroll bar.
> Refering to the help it says:
>
> "When you place VSCROLL on a LIST with the IMM attribute, the vertical
> scroll bar is always present, even when the list is not full. When the
> user clicks on the scroll bar, events are generated, but the list
> contents do not move (executable code should perform this task). "
>
> But I have no idea of how to implement this....
> can someone help me?
>
> Thx
|
|
|
|
|