Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-05-2005, 04:01 AM
Junior Member
 
Join Date: Oct 2004
Posts: 8
Default ActiveX Object not getting Key Presses

I made a simple form like so using the ActiveX form objects. All seems to work well except that the key presses do not go through to the object and so the
tab order stuff does not work. Oddly the space bar
does go through fine. Anyone have any suggestions?

var form = createControl("Forms.Frame.1", 0, 0, 380, 380);

button1 = form.activex.controls.add("Forms.CommandButton.1") ;

button1.caption="hello";
button1.left = 60;
button1.top = 60;

button2 = form.activex.controls.add("Forms.CommandButton.1") ;
button2.caption="hello2";
button2.left = 0;
button2.top = 0;
button1.setFocus();
Reply With Quote
  #2 (permalink)  
Old 10-06-2005, 02:30 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:ActiveX Object not getting Key Presses

"button1" is not a Window object, please try
Code:
button1.window.setFocus();
Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 01:59 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.