- Forums
- Forum Help
- Search Forum
- Login
- Register
Truevision3D
>>
TV3D SDK
>>
TV3D SDK 6.5
(Moderators:
Waterman
,
Mithrandir_
,
beyonder
,
ZaPPZion
) >>
Weird behaviour
Pages: [
1
]
« previous
next »
Print
Author
Topic: Weird behaviour (Read 563 times)
Canning
Community Member
Posts: 592
Weird behaviour
«
on:
September 20, 2011, 05:53:10 AM »
I am making a world editor. I load TV into a picturebox, and beside this picturebox, to the right, I have some panels with some buttons relating to the world editor.
The weird behavior is this... if i click on a button to the right of the picturebox, TV thinks that I am clicking on the landscape, even though it is to the right of the picturebox.
Basically, it is not sticking to the bounds of the picturebox even though it appears to visually.
Is this a bug, or am I doing something wrong?
Logged
I am using 2010 VB.NET and TV 6.5 with Windows 7
beyonder
Moderator
Community Member
Posts: 463
Re: Weird behaviour
«
Reply #1 on:
September 20, 2011, 07:39:13 AM »
Use an if statement before you're click selection.
If Picture1.Focus = True Then ....
That way it will only activate when your mouse is in the render frame.
That's how I do it anyhoos...
Logged
"And what I saw scared me to the depths of my miserable soul. It was true, it was all a sham, it ain't real." -
The Thirteenth Floor
arnienet
Customers
Community Member
Posts: 263
Re: Weird behaviour
«
Reply #2 on:
September 20, 2011, 08:09:24 PM »
Are you initialising with the picture box hwd?
Logged
Total Dev time = 50% to code, 50% to test, 50% to find errors, 50% to fix, that's why it takes twice as long.
Dawn World MMO
Canning
Community Member
Posts: 592
Re: Weird behaviour
«
Reply #3 on:
December 04, 2011, 12:49:53 AM »
arnienet:
Code:
TV.Init3DWindowed(pctWindow.Handle.ToInt32, True)
Is that code correct?
I also tried If Picture1.Focus = True Then ...., but it still detects clicks outside of the picture box.
«
Last Edit: December 04, 2011, 12:57:40 AM by Canning
»
Logged
I am using 2010 VB.NET and TV 6.5 with Windows 7
Mithrandir
Community Member
Posts: 325
Re: Weird behaviour
«
Reply #4 on:
December 04, 2011, 01:20:16 AM »
TVInputEngine captures all the input. If you want to ignore all the input outside of the window/picture box you have to add a condition in your input processing code to check for position of the click. The Focus property makes sense with the window but a picture box rarely gets focus. I think it can't even get focus. But window can. The rest can be done by disabling all mouse input outside of the picture box based on mouse position.
Logged
jviper
Community Member
Posts: 2130
Discipline in training
Re: Weird behaviour
«
Reply #5 on:
December 04, 2011, 08:22:27 AM »
You could also use some of the picture box's events to help. There's mousedown/up, mouseclick, mousemove, mouseenter and mouseleave. However depending on what you the synchronisation may be different.
Logged
JAbstract.....Don't just imagine, make it happen!
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Truevision3D Official Information
-----------------------------
=> Development Information
-----------------------------
TV3D SDK
-----------------------------
=> TV3D SDK 6.3
===> Bugs
-----------------------------
Game Development
-----------------------------
=> Game Development
-----------------------------
Projects
-----------------------------
=> In-Development
=> Showcase
=> Recruitment
=> Announcements
-----------------------------
Truevision3D Official Information
-----------------------------
=> News and Announcements
-----------------------------
TV3D SDK
-----------------------------
=> TV3D SDK 6.5
-----------------------------
Game Development
-----------------------------
=> Engine Comparison
-----------------------------
TV3D SDK
-----------------------------
===> Shader Development
===> Content Pipeline
===> Bugs
-----------------------------
Game Development
-----------------------------
=> Companion Tools
=> Design and Theory
Powered by SMF 1.1.3
|
SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks