Ok here's my situation...
Got an MDI application with a panel to my right that has a tree view
for the project stuff, etc.
Now if I select an item in the tree view, the tree view gains input
focus. After this happens, my MDI children no longer are able to
obtain keyboard focus and therefore no longer receive keyboard
commands. Needless to say, that's a bad thing. :)
I've tried overriding OnClick() and adding a call to this.Focus(), but
no luck....
So what do I do?? The MDI windows themselves contain no controls as
the views are rendered directly onto the form using DirectX.
Any help is greatly appreciated,
Stephan 2 3997
So, if you click in the TreeView, you want to set the focus back to the
MDI window, is that what you want? If so, try setting the focus to the
MDI window in the MouseUp event handler of the TreeView. If that isn't
your problem, can you determine what form/control has focus?
Stephan Rose wrote: Ok here's my situation...
Got an MDI application with a panel to my right that has a tree view for the project stuff, etc.
Now if I select an item in the tree view, the tree view gains input focus. After this happens, my MDI children no longer are able to obtain keyboard focus and therefore no longer receive keyboard commands. Needless to say, that's a bad thing. :)
I've tried overriding OnClick() and adding a call to this.Focus(), but no luck....
So what do I do?? The MDI windows themselves contain no controls as the views are rendered directly onto the form using DirectX.
Any help is greatly appreciated,
Stephan
Thanks for the input..I ended up solving the problem by just making a
usercontrol as a view and using that with a fill dock to render onto.
That did the trick :) Can set focus to the view control now and
everything works :)
Thanks,
Stephan
On Thu, 05 Feb 2004 11:02:41 +0100, Antenna
<q1****************@hotmail.com> wrote: So, if you click in the TreeView, you want to set the focus back to the MDI window, is that what you want? If so, try setting the focus to the MDI window in the MouseUp event handler of the TreeView. If that isn't your problem, can you determine what form/control has focus?
Stephan Rose wrote:
Ok here's my situation...
Got an MDI application with a panel to my right that has a tree view for the project stuff, etc.
Now if I select an item in the tree view, the tree view gains input focus. After this happens, my MDI children no longer are able to obtain keyboard focus and therefore no longer receive keyboard commands. Needless to say, that's a bad thing. :)
I've tried overriding OnClick() and adding a call to this.Focus(), but no luck....
So what do I do?? The MDI windows themselves contain no controls as the views are rendered directly onto the form using DirectX.
Any help is greatly appreciated,
Stephan This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: pizzy |
last post by:
INTRO: I tried to clean it up for easy reading. I hope I didn't make
any mistakes.
PROBLEM: WOW, this is some crazy sh!t. I can't get my checkbox (see
"TAGSELECTED") to print my textboxes (see...
|
by: greg.scharlemann |
last post by:
I've been playing with this form validation method for a while and have
tried an array of things but haven't had any luck with a couple items.
1. The validateForm() function doesn't detect when...
|
by: copyco |
last post by:
I want to be able to test if my app's form has focus, (ie: not in
background, behind other windows). How can I do this? I tried the
Me.Focused, but that doesn't work. I think it's because a...
|
by: firenet |
last post by:
21 function js_reply_msg(node,g_id,u_id,par_id)
22 {
23 node.innerHTML="<FORM><TEXTAREA
name=\"msg_con\"><\/TEXTAREA><br><INPUT type=\"submit\"
value=\"reply\"><\/FORM>"
24 ...
|
by: SONIQ |
last post by:
Using javascripts to validate this form.
Basic operation, when a user clicks the submit order button, the javascript code must validate everything entered by the user.
Please help finnish this...
|
by: blackrunner |
last post by:
ERROR in my Query?!
ERROR:
Element GESCHLECHT is undefined in FORM.
i think everything ok. Maby somebody can help me here
Element GESCHLECHT is undefined in FORM.
The error occurred...
|
by: DDragon |
last post by:
ok here is the problem, i have to forms which have values i wish to be added together i can add together the values in one form all right but im having problems with adding the values of the other...
|
by: creative1 |
last post by:
I am trying form valdiation with javascript but it never call the function. can someone please test this code and see why it is like that. It screwed up my mind.
here is my code:
<!-- Java Script...
|
by: Jibran |
last post by:
I need some help with extra spaces in HTML form. There is a big white space appearing at the center of the HTML form that I am designing even though there is no <br> tags been used: ...
|
by: obtrs |
last post by:
im using java script for form validation..
here is the code
<script type="text/JavaScript">
function validate_required(field,alerttxt)
{
with (field)
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
| |