Table in OCX

General TRichView support forum. Please post your questions here
Post Reply
kisshexuxia
Posts: 29
Joined: Mon May 07, 2012 2:36 am

Table in OCX

Post by kisshexuxia »

When in ocx ,the keydown VK_LEFT,
VK_RIGHT,
VK_UP,
VK_DOWN, event is not respond¡£
so I set a message with KeyEvent;

Code: Select all

function OCXKeyEvent(var Message: TMessage):boolean;
var msg: TMsg;
begin
  result := true;
  case Message.Msg of
    WM_GETDLGCODE: begin
      Message.Result := DLGC_WANTTAB or DLGC_WANTARROWS;
    end;

    WM_CHAR: begin
      if Message.WParam = 9 then
       ActiveEditor.RichViewEdit.InsertTab;
        //ActiveEditor.InsertTab;

    end;

    WM_KEYDOWN: begin
      if Message.WParam in
        [
        VK_LEFT,
        VK_RIGHT,
        VK_UP,
        VK_DOWN
        ]
      then begin
        SendMessage(GetFocus,WM_KEYDOWN,Message.WParam,-1);
      end;
    end
  else
    result := false;
  end;
end;
BUT when in table from one cell to other cell with key VK_LEFT,
VK_RIGHT,
VK_UP,
VK_DOWN, the cursor is not find or it not get Focused.
or Position the cursor on a table line¡£


In OCX it will be find.
In EXE it's ok.



[/code]
Sergey Tkachenko
Site Admin
Posts: 17565
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

1) Upgrade to TRichView version 15
2) Compile your project with the compiler define RVNESTEDFORMS

Does the problem still exist?
kisshexuxia
Posts: 29
Joined: Mon May 07, 2012 2:36 am

Post by kisshexuxia »

Sergey Tkachenko wrote:1) Upgrade to TRichView version 15
2) Compile your project with the compiler define RVNESTEDFORMS

Does the problem still exist?


The version must 15?

my version now 14;
Sergey Tkachenko
Site Admin
Posts: 17565
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Please update to the new version.
If you are already a registered user, please send me email (to richviewgmailcom) or a private message with information allowing me to find your order, and I'll send you downloading links.

We are currently working on the ActiveX version of our component (working name is TextAlly), and at least in VB.NET tabs and keys work correctly.
I am not sure how it works in browsers and other host applications yet.
kisshexuxia
Posts: 29
Joined: Mon May 07, 2012 2:36 am

Post by kisshexuxia »

Sergey Tkachenko wrote:Please update to the new version.
If you are already a registered user, please send me email (to richviewgmailcom) or a private message with information allowing me to find your order, and I'll send you downloading links.

We are currently working on the ActiveX version of our component (working name is TextAlly), and at least in VB.NET tabs and keys work correctly.
I am not sure how it works in browsers and other host applications yet.
I download Trial Versions Last updated: August 25, 2014 (TRichView v15.0, RichViewActions v5.0, ScaleRichView v6.0.2) rvpkg.zip (59.7 MB) ¡ª TRichView for Delphi 5¨C7, 2005¨C2010 and XE (for Win32), XE2¨CXE6 (for Win32 and Win64);
FOR DELPHI XE , and build the ActiveX. the Problems still exist¡£
Sergey Tkachenko
Site Admin
Posts: 17565
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

You need a source code to recompile the source code with RVNESTEDFORMS define.

I test my ActiveX with newer version of Delphi, unfortunately it cannot be simply recompiled in XE.
This is what I can see:
- with this define, tab and arrow keys work correctly everywhere, including tables; I tested in Internet Explorer and VB.NET (under Windows 8.1)
- without this define, tab and arrow keys do not work correctly in table cells: when pressed in a cell, the caret moves after the table, or sometimes disappears at all.
kisshexuxia
Posts: 29
Joined: Mon May 07, 2012 2:36 am

Post by kisshexuxia »

Sergey Tkachenko wrote:You need a source code to recompile the source code with RVNESTEDFORMS define.

I test my ActiveX with newer version of Delphi, unfortunately it cannot be simply recompiled in XE.
This is what I can see:
- with this define, tab and arrow keys work correctly everywhere, including tables; I tested in Internet Explorer and VB.NET (under Windows 8.1)
- without this define, tab and arrow keys do not work correctly in table cells: when pressed in a cell, the caret moves after the table, or sometimes disappears at all.

I download rvpkg.zip with DELPHI XE
it's Just like always¡£
Sergey Tkachenko
Site Admin
Posts: 17565
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

As I said, you need a source code to recompile the source code with RVNESTEDFORMS define.
rvpkg.zip contains precompiled units, so RVNESTEDFORMS cannot be applied.

Ok, I'll create a special version of the trial for Delphi XE for you, in the beginning of the next week.
Post Reply