Search found 176 matches

by j&b
Tue May 22, 2012 4:19 pm
Forum: Support
Topic: ApplyStyleConv..(rv_BackColor) - error only in rveTable
Replies: 9
Views: 22354

procedure TForm1. memoKeyDown (Sender: TObject; var Key: Word; Shift: TShiftState); ... begin ... if (ssCtrl in Shift) and (ssShift in Shift) then begin //Strg+Shift+key ... end else if (ssShift in Shift) then begin //Shift+key ... end else if (ssCtrl in Shift) and (ssShift in Shift) then begin //St...
by j&b
Sun May 20, 2012 4:25 pm
Forum: Support
Topic: ApplyStyleConv..(rv_BackColor) - error only in rveTable
Replies: 9
Views: 22354

That works, BUT cursor is beneath table and not at the end of text which was marked before. Therefore I add in procedure TForm1.WMMyCommand rveTable.xxx procedure TForm1.WMMyCommand(var Msg: TMessage); begin rveTable.GetEditedCell(rveTzeile1,rveTspalte1); memo.Deselect; rveTable.EditCell(rveTzeile1,...
by j&b
Sun May 20, 2012 9:01 am
Forum: Support
Topic: ApplyStyleConv..(rv_BackColor) - error only in rveTable
Replies: 9
Views: 22354

create a menu item with Ctrl+F4 and Ctrl+F10 shortcuts

Thank you, Sergey. >>create a menu item with Ctrl+F4 and Ctrl+F10 shortcuts. //do you mean AND and not OR ? All trials don’t memo.deselect. Can you tell me what I have to write? procedure TForm1.memoKeyDown(Sender: TObject; var Key: Word; Shift: TShiftState); … begin … Memo.ApplyStyleConversion(rv_B...
by j&b
Fri May 18, 2012 3:28 pm
Forum: Support
Topic: ApplyStyleConv..(rv_BackColor) - error only in rveTable
Replies: 9
Views: 22354

memo.deselect

Memo.ApplyStyleConversion(rv_BackCOLOR);
if memo.GetCurrentItemEx(TRVTableItemInfo, rve, TCustomRVItemInfo(rveTable)) then key:= vk_right
else memo.deselect;

to deselect memo about key:= vk_right (or another key) is not the right way.

Do you know another way ?
by j&b
Fri May 18, 2012 2:28 pm
Forum: Support
Topic: ApplyStyleConv..(rv_BackColor) - error only in rveTable
Replies: 9
Views: 22354

Thank you. All runs.

I only have to remove "memo.deselect"

I deselect memo about key:= vk_right --> Caret jumps to next cell

Now I am looking for a key which deselect memo but remains at the position.
by j&b
Fri May 18, 2012 12:58 pm
Forum: Support
Topic: ApplyStyleConv..(rv_BackColor) - error only in rveTable
Replies: 9
Views: 22354

ApplyStyleConv..(rv_BackColor) - error only in rveTable

I want to mark a text with backcolor clYellow All is ok if text is in memo, but only if text is in a rveTable I get an error-hint. After closing error-window progam runs without error. procedure TForm1.memoKeyDown(Sender: TObject; var Key: Word; Shift: TShiftState); { var r,c,rs,cs: Integer; Cell: T...
by j&b
Sun Apr 15, 2012 8:02 pm
Forum: Support
Topic: to get all infos at the position of caret
Replies: 4
Views: 14153

[quote="Sergey Tkachenko"]Something like this. Thank you. But when I use your solution, I must deactivate the red lines below (Undefinierter Bezeichner: 'rvsLabel' [Hinweis] unit1_mh.pas(1230): Das private-Symbol 'HySuchen_Memo) Why ? Best regards j&b ... function DescribeCurrentItem(r...
by j&b
Fri Apr 13, 2012 10:51 am
Forum: Support
Topic: to get all infos at the position of caret
Replies: 4
Views: 14153

to get all infos at the position of caret

Hello, I want to get all infos at the position of caret (which is in a memo or in a “memo-table”). This was created under Vista, Delphi 7.1 and TDBRichViewEdit v13.9 Who can complete or finish or correct the following code ? procedure TForm1.sbTesten1Click(Sender: TObject); var fi: TFontInfo; schrSc...
by j&b
Wed Mar 28, 2012 1:58 pm
Forum: Support
Topic: Load DIRECTLY WinWord Document to rvEditor?
Replies: 8
Views: 21457

Oddly enough are "memo.canChange and memo.Change" (for working with "TDBRichViewEdit") are written to "officeSpeichern" instead to "officeLaden". Sorry. Here are the corrected procedures. procedure TForm1.officeLaden(wahl: integer); var r: Boolean; begin pb.Vi...
by j&b
Wed Mar 28, 2012 11:14 am
Forum: Support
Topic: Load DIRECTLY WinWord Document to rvEditor?
Replies: 8
Views: 21457

I hope that's what you mean. Perhaps someone find a better way as "unit uDatTyp" on a new Form procedure TForm1.btnOpenClick(Sender: TObject); begin Open; end; procedure TForm1.Open; var fEinfuegen: boolean; i,wahl: integer; dateityp, filename: string; begin //if query1.state in [dsEdit, d...
by j&b
Wed Mar 28, 2012 7:32 am
Forum: Support
Topic: Load DIRECTLY WinWord Document to rvEditor?
Replies: 8
Views: 21457

I have found that many users do not publish the solution of their question. That's a shame, because I think that the last article should be the solution of a question.. Therefore, I present MY solution for my question to all those who are interested. In the meantime, I have had a "Saure Gurkenz...
by j&b
Wed Mar 07, 2012 9:25 am
Forum: Support
Topic: Load DIRECTLY WinWord Document to rvEditor?
Replies: 8
Views: 21457

Sergey Tkachenko wrote:Sorry, I do not understand the question
A joke (Scherz)

'Falls du mal nicht weißt was du machen sollst ...'
oder 'Solltest du mal "Saure Gurkenzeit haben"...' (http://de.wikipedia.org/wiki/Sauregurkenzeit)

... dann würde die Erweiterung (.doc to .rvf) dein Programm weiter abrunden.
by j&b
Wed Mar 07, 2012 6:20 am
Forum: Support
Topic: Load DIRECTLY WinWord Document to rvEditor?
Replies: 8
Views: 21457

Probably, you can use OLE automation (TWordApplication, TWordDocument) to save a document to a temporal RTF file (or the Clipboard) and then import it in TRichView. But I do not have an example, sorry. Thank you for your answere. If you do not know what time you should: Would that no be a further r...
by j&b
Tue Mar 06, 2012 2:40 pm
Forum: Support
Topic: Load DIRECTLY WinWord Document to rvEditor?
Replies: 8
Views: 21457

Load DIRECTLY WinWord Document to rvEditor?

Is there a way to load DIRECTLY WinWord Documents to rvEditor[br][br] Background:[br] The rvf files are very much smaller than Word files. This property I would like to use to archive Word files[br][br] I do not want[br] to load a DOC-file with Winword[br] save it by Winword as RTF file and[br] load...
by j&b
Wed Feb 22, 2012 11:54 am
Forum: Support
Topic: How to color a word from all my text?
Replies: 6
Views: 19490

Yes, the general idea is while memo.SearchText(fid.FindText, [rvseoDown]) do Memo.ApplyStyleConversion(rv_COLOR); + implementation of rv_COLOR in memo.OnStyleConversion. As for the rest of your code, I do not understand it. If you explain what you want to implement, I'll try to suggest a simple sol...