search for: posselect

Displaying 1 result from an estimated 1 matches for "posselect".

Did you mean: podselect
2006 May 15
3
FXTextField - posSelected?(pos)
...er if am facing a bug or something else On a FXtextField, I want to detect the low and high pos of the selected string example: the text is: 0123456789 The selected string is : 234567 first = last = -1 atext.text.length.times do |pos| first = pos if atext.posSelected?(pos) and first < 0 last = pos if atext.posSelected?(pos) end puts " first = #{first} last = #{last}" Result: last == 8 !!!!!! ===> problem , 8 is not selected More, atext.posSeltected?(last) ? true : false ===> true. In f...