Page 1 of 1
.net Keyboard Input Focus
Posted: Mon Apr 27, 2020 3:39 pm
by cnctech
I am using a complex Usercontrol in a palletset. When attempting to use keyboard input in my control, keystrokes go straight to IntelliCad comand line.
How do I control this focus?
Re: .net Keyboard Input Focus
Posted: Tue Apr 28, 2020 6:21 am
by QuanNguyen
It's difficult to diagnose what happened with your summary descriptor (by text only).
It's better if have some code to debug.
Regards.
Re: .net Keyboard Input Focus
Posted: Fri May 01, 2020 5:07 am
by cnctech
I have since found that if I hide the Command bar then my editing works correctly but when reOpend the problem reoccurs.
When using PalliateSet in Autocad this problem is not occuring.
Re: .net Keyboard Input Focus
Posted: Wed Dec 16, 2020 11:08 am
by DenisSilveira
I got same problema and still didn´t get the solution for this case
Re: .net Keyboard Input Focus
Posted: Tue Mar 30, 2021 5:48 am
by DenisSilveira
DenisSilveira wrote: ↑Wed Dec 16, 2020 11:08 am
I got same problema and still didn´t get the solution for this case
I've made some tests and observed when I call <commandMethod> to invoke a UserControl inside palletteset some textBox fields doesn't work ... simple the text typed vanissh from screen ...
In other hand, when this same pallette set is called from inside a menuContext on form it works fine.
So, I detected the problem occurs when we call <CommandMethod>
Re: .net Keyboard Input Focus
Posted: Tue Mar 30, 2021 11:40 pm
by QuanNguyen
Hi Denis,
Inside the PaletteSet, try to use the IntelliCAD.Internal.Utils.ExecuteCommand instead of CommandMethod.
Re: .net Keyboard Input Focus
Posted: Sat Apr 03, 2021 7:35 am
by DenisSilveira
QuanNguyen wrote: ↑Tue Mar 30, 2021 11:40 pm
Hi Denis,
Inside the PaletteSet, try to use the IntelliCAD.Internal.Utils.ExecuteCommand instead of CommandMethod.
This time, I used to invoke palleteSet/User control by menu command inside WindosForm, that works normally !!!
Calling commandLine a <CommandMethod>Sub ... constructs the palletset but dosn't work properlly.