Main Site Documentation

Getting Started with Glide


#1

I would like to start using Glide, but am not sure how to get started.

I have a 7-inch display connected to my Cobra.

[ol]
What project type should I choose when creating the new project?
How do I calibrate my 7-inch touch screen?
Any other setup or configuration hints or tips for a newbie?[/ol]

Thanks.


#2
  1. Don’t use the MF WIndows project. Use the other project for you board type.
  2. Glide has a calibration function built. Read the Glide documentation and It will give you an example.
  3. To get started on Glide check out the examples accessible from the Glide designer.

#3

http://www.ghielectronics.com/glide/examples/


#4

Thanks Mike and Gus. I’ll give it a try.


#5

I created a new EMX Application.

I added a sub-directory called “Glide” and copied the contents of the Glide zip file into it (including the “be” and “le” sub-directories).

I added a reference to the Glide DLL in the “Glide” sub-directory.

I copied code from the first example into my Program.cs file.

I get this compile error:

Unable to copy file “C:\Documents and Settings\Jim\My Documents\Visual Studio 2010\Projects\Embedded Controller Projects\Cobra\Glide Test 1\Glide Test 1\Glide\be\LE\GHIElectronics.NETMF.Glide.pe” to “bin\Debug\LE\GHIElectronics.NETMF.Glide.pe”.

Could not find a part of the path ‘C:\Documents and Settings\Jim\My Documents\Visual Studio 2010\Projects\Embedded Controller Projects\Cobra\Glide Test 1\Glide Test 1\Glide\be\LE\GHIElectronics.NETMF.Glide.pe’.

Notice that it is looking for the “pe” file in a subdirectory with the path \Glide\be\LE". There is no such directory.

Please tell me what I’m doing wrong. Thanks.


#6

first, you should be using a cobra application.

second, the glide library should not be a sub directory of your project. it is a library which will be used by many projects.

try moving it and see if the problem goes away.


#7

:slight_smile: Thanks Mike.

I moved the Glide sub-directories out of the project, and that fixed it.


#8

I experienced some headaches when trying to run the example applications for Glide.

Here are some tips that I hope will help other newbies like me:

Glide DLLs

  • Extract the Glide files into a directory in some common location.
  • I use
My Documents\Visual Studio 2010\Libraries\
  • Extracting the files will create a directory called Glide V 1.0.0
  • I rename this to Glide.

Calibration application (in the Help documentation under the CalibrationWindow class):

  • In the XML for the window:
    • Set Glide Version=“x.x.x” to the version of Glide you are using (e.g., 1.0.0).
    • Set Window Width and Height to the size of your LCD display (e.g., 800 x 480 for me).
  • In Program.cs:
    • In order to save your calibration results…
    • Change this
calWindow = new CalibrationWindow(false, false);
- To this 
calWindow = new CalibrationWindow(false, true);

Example 3

  • Window1 - Window3 XML:
    • Change Glide version and Window Width and Height as described above.
    • Change Label to TextBlock
  • In Program.cs:
    • Despite the comments in updateButtons(), setting Enable to false does not change the Alpha level.
    • I added these lines after setting the button Enable to false
backBtn.Alpha = 85;
nextBtn.Alpha = 85;
- This line in backBtn_TapEvent is incorrect:
Tween.SlideWindow(windows[index], windows[lastIndex], Direction.Down);
- It should be this:
Tween.SlideWindow(windows[lastIndex], windows[index], Direction.Down);

#9

Thank jasdev.
You explain the “EXECUTED IN A GLIDE V 1.0.0 PARADIGM” PROJECT WITH MULTIPLE WINDOWS “” in the issue.


#10

No problem! I saw your posting, and am glad to help.