Search found 24 matches

by aoven
Sun May 21, 2006 12:14 pm
Forum: Support
Topic: How to get default Enabled in Trv*Action.OnUpdate?
Replies: 2
Views: 12367

1) You can disable all RichViewActions by assigning False to RVAControlPanel.ActionsEnabled
That's no good for me, because I want to be able to disable a specific action only.
2) You can disable the given RichView-action by assigning True action.Disabled.
Ah, yes - I missed that one! Thanks!
by aoven
Fri May 19, 2006 12:51 pm
Forum: Support
Topic: How to get default Enabled in Trv*Action.OnUpdate?
Replies: 2
Views: 12367

How to get default Enabled in Trv*Action.OnUpdate?

I have a few special situations, where I need to disable some of the actions, even though they are enabled by default. For example, I'd like to prevent insertion of a page break in a paragraph with a certain style. I tried simply writing the OnUpdate handler but then the default handling is ...
by aoven
Sun May 07, 2006 11:50 am
Forum: Support
Topic: fix memo-table-cell-border-lines
Replies: 5
Views: 19428

because user can't destroy a good built table by unconcentrated working. If user want to resize col (or row) he must do it fully aware of importance.
Well, that's why the "undo" command is there for! :)
by aoven
Sun Apr 30, 2006 5:34 pm
Forum: Support
Topic: Hiding caret when selection exists?
Replies: 1
Views: 10002

Hiding caret when selection exists?

Is there a way to show the caret only when there is no selection? I'm thinking something along the lines of what Word does. I guess HideCaret/ShowCaret would be the way to go - the problem is where to put those calls to trap selection changes? OnSelect seems to be the place, but it fires far too ...
by aoven
Fri Apr 28, 2006 8:54 pm
Forum: Support
Topic: External scrollbars
Replies: 8
Views: 30308

Interesting! I'll need to investigate if everything works the same. Thanks for putting this demo together!
by aoven
Sat Apr 22, 2006 11:30 pm
Forum: Support
Topic: External scrollbars
Replies: 8
Views: 30308

Well, I'm happy to say that the ScrollParent idea appears to be working smoothly! :D

If you'd be interested to review the changes and include these modifications into main source, let me know and I'll send you the modified RVScroll.pas.

If not, that's ok, too.
by aoven
Sat Apr 22, 2006 9:23 pm
Forum: Support
Topic: External scrollbars
Replies: 8
Views: 30308

I'm actually toying with the idea to modify TRVScroller implementation by adding a property ala ScrollParent: TWinControl. If this property is assigned TRVScroller would display scrollbars on this control instead on itself.

What do you think?
by aoven
Sat Apr 22, 2006 9:20 pm
Forum: Support
Topic: External scrollbars
Replies: 8
Views: 30308

External scrollbars

I'm trying to implement a Word-like page layout for RVE and I need a way to implement my own scrollbars, because they need to be detached from the actual editor. I'm having problems synchronizing my custom scrollbars with the actual editor scrolling, because I can't access all the necessary values ...
by aoven
Sat Apr 08, 2006 12:19 am
Forum: Support
Topic: Making selection rect match the tallest selected item
Replies: 2
Views: 12253

Ah, so simple now. It used to be fairly complicated. :)

Thanks!
by aoven
Tue Apr 04, 2006 2:47 am
Forum: Support
Topic: Making selection rect match the tallest selected item
Replies: 2
Views: 12253

Making selection rect match the tallest selected item

Can someone please show me what must be done to make the blue selection rectangle always be as high as the tallest item in selection (like MS Word does)? By default, rectangle height varies from item to item. I know it's possible, because I asked this very same question a few years back, when I ...
by aoven
Sun Mar 12, 2006 7:15 pm
Forum: Support
Topic: Clicking a table cell causes OnItemAction to fire
Replies: 8
Views: 30432

After digging through the source, I found a way to detect the situation. In OnItemAction I check Sender.Focused value. If it's False, then the event is a result of inplace editor being filled with cell contents. If it's True, then it's a genuine event. The question remains if this check will still ...
by aoven
Sat Mar 11, 2006 11:57 pm
Forum: Support
Topic: Clicking a table cell causes OnItemAction to fire
Replies: 8
Views: 30432

Clicking a table cell causes OnItemAction to fire

I noticed that OnItemAction fires with ItemAction = rviaInserting when clicking inside a cell if caret was previously outside. I figure this happens because of the trick with a nested inplace editor, which comes transparently to life when a cell is being edited. However, for all practical purposes ...
by aoven
Sat Mar 04, 2006 1:44 pm
Forum: Support
Topic: Detecting selection deletion
Replies: 4
Views: 18445

Hm, yes - those are both good points. But that can't happen with items that have style protection enabled, right? And it just so happens I only need to know when those items are being deleted. I don't care about the others. :)

Aleksander
by aoven
Fri Mar 03, 2006 10:26 pm
Forum: Support
Topic: Detecting selection deletion
Replies: 4
Views: 18445

Actually, I just found out that OnItemAction event is close enough for my needs. It can catch every item before it gets deleted or cut.

Aleksander
by aoven
Fri Mar 03, 2006 10:01 pm
Forum: Support
Topic: Detecting selection deletion
Replies: 4
Views: 18445

Detecting selection deletion

Is there a clever way of detecting a selection deletion before it occurs?

Aleksander