Main Site Documentation

Glide -- Graphical Library for NETMF


#1

This new thread will be for Glide. Update coming soon.


#2

I tried setting the visible property of the progress bar to false to hide it under certain conditions, but it never worked. I made sure I called the render() method of the window as well. I tried it on the label as well with the same result. That wasn’t too big of a deal since I could just set the text to nothing. I can’t do that with the progress bar though. I wasn’t sure if the visible property was intended to work yet.


#3

I’m trying Glide on my Cobra with 4,3" display. But I can’t get the touch calibrated properly.
How to do that, if at all possible?


#4

Where ca i find the glide-example ?

cu
Andreas


#5

Browse to

http://www.ghielectronics.com/glide

Download the ZIP file and check.


#6

More updates will be released soon. Library documentation will contain examples for all components. There will also be project examples to assist you in getting started. All this will be available within next few days.


#7

I remember, there was a glideexample.zip file in the past.
Is there a chance to get these file once again, however the code is for an earlier glide version ?
Get this sample code help me to work with the new api.

cu
Andreas


#8

Examples are in the library documentation:

Glide.UI > Button Class

http://www.ghielectronics.com/downloads/Glide/Library/html/29bfc922-2454-6001-acd2-24458f621ec2.htm

There is an example for almost every UI Element.


#9

@ zerov83 (Chris)
To directly calibrate your 4.3" display you could call a function like this:

static void Calibrate()
{
	const int CAL_POINTS = 5;
	short[] sx = new short[CAL_POINTS] { 240, 48, 48, 432, 432 };
	short[] sy = new short[CAL_POINTS] { 136, 26, 246, 246, 26 };
	short[] cx = new short[CAL_POINTS] { 2102, 612, 597, 3469, 3618 };
	short[] cy = new short[CAL_POINTS] { 2138, 751, 3582, 3388, 753 };
	Touch.ActiveTouchPanel.SetCalibration(CAL_POINTS, sx, sy, cx, cy);
}

This isn’t the ideal solution but should allow you to accurately test things.

@ af6767
There is now a Glide examples page: http://www.ghielectronics.com/glide/examples/


#10

Glide V 0.1.2 is here: http://www.ghielectronics.com/glide/

[ulist]
[li]Fixed the keyboard text not showing up as you type.[/li]
[li]Setting display object’s Visible property to false will make them invisible. You must call Invalidate on the window to make this happen.[/li]
[li]Nearly all components have example documentation.[/li]
[li]Added an Examples section to the glide page.[/li]
[/ulist]


#11

@ Josh
You make my evening, amazing, thank you.

cu
Andreas


#12

Mhm, little problem, i see no way to make a calibration in glide.
i have a 4.3 display and so the calibration is bad.
the net calibration method you suggest, is useless in glide.
have you any solution for me ?

cu
Andreas


#13

Hi,

How do you change the content of a cell of the datagrid or to remove a datarow at runtime?

Peter


#14

@ af6767
Working on a solution.

@ peterd
This is great feedback. The DataGrid did lack some necessary features. Next release will include:

public void RemoveRow(DataGridRow row)
public void RemoveRowAt(int rowIndex)
public void SelectRowAt(int rowIndex)

// GetCellText has been replaced with:
public object[] GetRowData(int rowIndex)

public void SetRowData(int rowIndex, object[] data)
public void SetRowData(int rowIndex, object data, int columnIndex)

Will that cover your needs?


#15

Thanks Josh I think that will do.

Another question: Is it possible to add a window or panel with x and y coordinates <> 0 to show in the center off the screen for example for error messages or user input.

Peter


#16

That wouldn’t work because only one window can be shown at a time. Prompts will be in the next release.


#17

Hey,
I’m working on a plotting control for Glide. Basic functionally is working, on-the-fly display of data with automatic scrolling. I will posting the code if I have added features like dateTime axis and auto scaling.

Take a look at the picture.


#18

That looks excellent. Great job!


#19

Nice job, indeed!


#20

Josh,

Could you check the TapEvent of a window. It doesn’t seem to function.

Peter