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 4014
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.co m> 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 "TAG#") when more than 1
number (see "VLANS") is inputed into my form.
QUESTION: How do I make my dynamic form have a dynamic input box(which
is created by checking the checkbox and calling the functionC1) inside
it and still be able to pass the...
|
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 the Min price is
greater than the maximum price.
2. The validateForm() function doesn't call isNumber() on the minBaths,
maxBaths, minBeds, or maxBeds.
3. Despite errors in input and the validateForm() function returning
false, the form is still...
|
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 control
within the form actually has focus, so the Me.Focused would return
false. Thanks!
|
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 node.nextSibling.nextSibling.innerHTML=""
25 }
My thought is that when i clicked a link,the js function generate the
Form,then get the input and deal with it.
|
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 form.
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
| |
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 in \anmeldung2.cfm: line 404
|
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 form to it... ill post the code for you to look at and try to explaine in detail what im trying to do.
here is the code (HTML and Javascript so you get the whole picture):
Javascript:
var gen, lights;
var lammount;
|
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 form form validation and entries -->
<script language="JavaScript">
function checkForm()
{
alert("I am called");
var cfirstname, cemail, cpass, clastname;
with(window.document.msgform)
|
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:
http://i116.photobucket.com/albums/o9/Jibran82/Pic1.jpg
The html code is below:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta
http-equiv="Content-Type"
|
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: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |