Page 1 of 1
Table in OCX
Posted: Tue Aug 26, 2014 6:20 am
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]
Posted: Tue Aug 26, 2014 7:18 am
by Sergey Tkachenko
1) Upgrade to TRichView version 15
2) Compile your project with the compiler define RVNESTEDFORMS
Does the problem still exist?
Posted: Tue Aug 26, 2014 8:43 am
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;
Posted: Tue Aug 26, 2014 11:55 am
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.
Posted: Sat Aug 30, 2014 2:49 am
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¡£
Posted: Sat Aug 30, 2014 11:40 am
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.
Posted: Fri Sep 19, 2014 6:05 am
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¡£
Posted: Sat Sep 20, 2014 6:36 am
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.