Search found 4 matches

by rjlth
Thu Dec 12, 2013 8:59 am
Forum: Support
Topic: RichView.GetFocusedItem(RVData, ItemNo) - RVData is nil
Replies: 4
Views: 12871

I have found out what the problem was.
Before calling GetFocusedItem I called SelectionExists. And SelectionExists resets focus. I have replaced

Code: Select all

RichView.SelectionExists
with

Code: Select all

RichView.RVData.SelectionExists(false, false)
and now everything works properly.
by rjlth
Thu Dec 12, 2013 8:15 am
Forum: Support
Topic: RichView.GetFocusedItem(RVData, ItemNo) - RVData is nil
Replies: 4
Views: 12871

I have found some interesting thing. If I focus on this item and then press Enter, OnJump event is called. And in this event GetFocusedItem works properly. But if I click on item with right button (item gets dooted frame) to call my popupmenu, click on some menu item and try to call GetFocusedItem ...
by rjlth
Wed Dec 11, 2013 5:47 pm
Forum: Support
Topic: RichView.GetFocusedItem(RVData, ItemNo) - RVData is nil
Replies: 4
Views: 12871

But there is a focused item, it has dotted frame. And I am using TRichView.
If I add a new text item with style, that have "Jump" set to true, is this item a hyperlink?
by rjlth
Wed Dec 11, 2013 3:31 pm
Forum: Support
Topic: RichView.GetFocusedItem(RVData, ItemNo) - RVData is nil
Replies: 4
Views: 12871

RichView.GetFocusedItem(RVData, ItemNo) - RVData is nil

Good day to all! I am having problem with retrieving focused text in RichView. In documentation it is written that whit GetFocusedItem I can get the ItemNo of focused item. But RVData is nil and ItemNo is -1. Why can it be? Text style has "Jump" set to true, using tabs i switched between items, but ...