Hi
Just trying to "pimp up" the list box os that there is an image in front of each line, depending weather the line is selected or not. Looks already very good but ...🙂
To change the image I have to set valrep each time the user select/deselect a line. And after assign the new valrep to the field, UnifAce moves the cursor to the last line.
Any idea to set the cursor to a specific line?
Ingo
Does it have the same reaction if you use putitem/id to change the valrep for that one line? (and/or try changing $fieldvalrep?)
Regards,
Iain
Hi
Just trying to "pimp up" the list box os that there is an image in front of each line, depending weather the line is selected or not. Looks already very good but ...🙂
To change the image I have to set valrep each time the user select/deselect a line. And after assign the new valrep to the field, UnifAce moves the cursor to the last line.
Any idea to set the cursor to a specific line?
Ingo
Hi Iain
Oops, on first sight it looks good.
When selecting one after the other, the cursor is for each on the (then current and) last line.
But this is also true for deselecting any line before a selected line.
The cursors goes now to the last selected line.
Id did check that only modfied lines will set the valrep. Looks like UnifAce use the value (itemlist) of the field to set the presentation and after last item in the list, UnifAce set this at the current line
Before
Value = "A;B;C"
Valrep = "A=^glpy2!A;B=^glpy2!B;C=^glpy2!C"
cursor on C
deselect B , only the glyph of B will modified
Value = "A;C"
Valrep = "A=^glpy2!A;B=^glpy1!B;C=^glpy2!C"
cursor still on C as it is the last item in value
expectation of me is/was B
Ingo