OUR NETWORK:MediaSmart Home Sansa Community Explore3DTV TechLore RoboCommunity Dijit Community About UsAdvertiseContact Us

 
Learn about scoring Forum's Raw Score: 302369.0
April 7, 2010 02:24 AM
Rating (0 votes)
  • 1
  • 2
  • 3
  • 4
  • 5
Rate This!

Member Avatar

JsX

Member
Joined: 04/06/2010

Hi,

I don't know if it is the right place to post this thread so sorry in advance if not...

I recently get a TouchSmart 300 (1125fr), where Windows 7 is installed by default. I download & installed the last "shell" (sp44643), .Net 3.5 frmwk, visual studio 2008 (pro) and TouchSmart sdk3.0.

Before beginning to dev I tried to execute sample application HelloWorld gived in TS sdk, and nothing happened. I don't think the exec crash because there is no Exception throwed and there is no fail logs. It just looks like you execute à void program. I tried in Debug and Release, with and without debugger compilation, nothing more...

I suspect (after step/step exec) there is an event "WindowClosing" throwed at startup in the app but i don't know where and WHY!

Does anyone have an idea?

Thanks in advance

JesuX Enjoys Stpatrick Unlike Xmas

Discussion:    Add a Comment | Comments 1-9 of 9 | Latest Comment

April 7, 2010 4:53 AM

the problem seems to come from the class "HP.TouchSmart.Library.InfoviewWindow". The simple act of inheriting (& pass constructor) causes somewhere the throwing of the CancelEvent to close the window.

I don't know how I could resolve the problem without knowing the reason producing that event... did anyone had the same trouble or an idea?

Thanks

JesuX Enjoys Stpatrick Unlike Xmas

April 7, 2010 11:50 AM updated: April 7, 2010 1:45 PM

Hello JSX..

I believe you are trying to run HelloWorld outside the TouchSmart shell. You will not be able to run it outside TS shell because it's design is to interpret messages coming from the TS shell. I guess it wouldn't make much sense to run it outside that environment.

With that said you can run other TS application with passing parameter: "chromeless debug"

If you need some sample which runs outside TS shell,send me PM with your email.

April 8, 2010 2:53 AM updated: April 8, 2010 2:54 AM

Yes I was :)

I did not understand the link between shell and apps
it seems to work now!

thanks a lot Shuk!

By reading the guidelines, I understood all "Touch" events were provided by OS for this configuration and there is a line saying : Note: For Windows® 7 multi-touch APIs, please refer to the Windows® 7 SDK.

I m a bit confused is it possible to make touchApp without SmartCenter shell, if it is the case i m more interested of that issue.

Shuk says:If you need some sample which runs outside TS shell,send me PM with your email.
I did not know it was possible!

JesuX Enjoys Stpatrick Unlike Xmas

April 8, 2010 8:59 AM

JsX,
You can develop your touch applications running outside the TouchSmart application (SmartCenter Shell). That would be a standalone windows application which has touch capabilities. For this purpose you do not need our SDK. You use SDK only if you need to port your program inside TouchSmart application i.e. if you want to deliver an experience to user within the TouchSmart application.

All touch events come from Windows7 OS. So, you write program for TouchSmart application or write a standard windows program, you will use Windows 7 API's.

---

Shuk says:If you need some sample which runs outside TS shell,send me PM with your email.
I did not know it was possible!
---
This is very much possible and explained in SDK too. You need to pass few parameters to run programs written for TouchSmart. HelloWorld sample included in SDK does not run outside the TouchSmart application because of its design. It interprets TouchSmart application messages hence you can not run it outside of TS application.
I will send you a program which runs both outside and inside the TS application.

April 8, 2010 10:14 AM

ok,

Thank you very much for explainations & time passed Shuk!! Really!

JesuX Enjoys Stpatrick Unlike Xmas

April 9, 2010 3:00 AM

Guidelines provide explaination about layouts(small, large) but nothing about functions switching them and i did not understand the "chromeless debug" field to run out TS thanks it ll be useful!

JesuX Enjoys Stpatrick Unlike Xmas

April 9, 2010 9:34 AM

The switching of layouts/window sizes of the hosted app is controlled by SmartCenter. When the user takes an action in SmartCenter that needs to result in a change of tile layout, SmartCenter will make that change by resizing the hosted application.

"chromeless debug" is just a convention that the sample apps/shared WPF library use to let you run them outside SmartCenter. So you can run the following:

C:\...\>HelloWorld.exe chromeless debug

and the hosted app will run standalone on the Windows desktop. Now you can resize it using the mouse (for example) and verify that your layout switches happen as you expect and that the layouts look like they should.

You could choose to use a different method to turn on "debug" behavior in your hosted app - maybe a registry entry or ini/xml file. Up to you. You're the programmer.

April 9, 2010 10:18 AM

JSX, did you check the code I sent you? It clearly implements all layouts. As Geek said all view switching is controlled by TouchSmart application. You just need to implement your views in your code. If you will see sample code I sent you, you can see I have implemented all views which are seamlessly working inside TS application and outside with the parameter.
Providing switching between multiple views writing without any code is one the advantages of using TS application.
If you read section 3.3.15 in TS 3.0 SDK, you can see the reasoning about passing parameter.

April 9, 2010 10:55 AM updated: April 9, 2010 10:55 AM

Yep, i tested that! it works thanks a lot, Shuck!

JesuX Enjoys Stpatrick Unlike Xmas

Discussion:    Add a Comment | Back to Top | Comments 1-9 of 9 | Latest Comment

Add Your Reply

(will not be displayed)

Email me when comments are added to this thread

 
 

Please log in or register to participate in this community!

Log In

Remember

Not a member? Sign up!

Did you forget your password?

You can also log in using OpenID.

close this window
close this window