Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Pages: [1]
  Print  
Author Topic: HasFocus  (Read 469 times)
tom_namibia
Customers
Community Member
*****
Posts: 89


WWW
« on: December 01, 2007, 09:34:03 AM »

Hi,

why is TV3D.HasFocus always False?

I just tried the vb6 tutorial samples. Somehoe it is irritating, that when the sample is running and I switch to another application, e.g. like writing this post right now, the sample also processes all keyboard inputs.

Tom
Logged
SylvainTV
Administrator
Community Member
*****
Posts: 4479


WWW
« Reply #1 on: December 03, 2007, 02:01:00 PM »

Maybe it's because it's initialized into a picturebox ?

I think that HasFocus works only when the engine is initialized directly in a Form, not in a PictureBox. Try to change the handle during the initialization so that it initializes in the window.
Logged

Regards

Sylvain Dupont
TrueVision3D Developer
sylvain@truevision3d.com

TV3D IRC at http://chat.truevision3d.com or on server irc.truevision3d.com #Truevision3D. Come talk with us !
tom_namibia
Customers
Community Member
*****
Posts: 89


WWW
« Reply #2 on: December 04, 2007, 02:37:23 PM »

Hi Silvian,

yes, when the engine is initialized directly in a Form, TV3D.HasFocus works as expected.

But now I realized, when I add a Toolbar or a Statusbar to the form, the rendering area is not adjusted. The engine is still rendering in the whole form, so parts are lying invisible behind the statusbar and behind the toolbar.

It would be nice, if HasFocus would also work, if the engine is initialized into a container like a picturebox or a usercontrol. Or at least, the LostFocus and GotFocus-Events of the container should work. These events are currently also not fired.

Is this maybe a bug in 6.3 and fixed in 6.5?

Ciao, Tom

 
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks