yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Software Development] ng-gdata:
It's your own project (as for my own projects: the controls don't even show up in 3.5 and in 2.0 I get an empty box I can move around, resize etc.).

I attached a few screenshots. The numeric control and the header control are causing the oom error as well.

I also attached a two screenshots showing the two different versions of the time control. I think the only difference is that you have 24 instead of 12 hours and no AM/PM switch...
[Windows Mobile Software Development] eboelzner:
First... the SDK is NOT supported under .netCF 2.0! YOU WILL GET OOM exceptions all day long as the native drawing routines used are only in .net 3.5!!!

Ok... I have seen this...

You copied the source and runtime to a folder on your pc that the OS does not trust... that is the first message you got!

Copy to a folder that is trusted by vs2008... then...

1) make sure vs2008 is closed

2) copy the StedySoft.SenseSDK.PocketPC.asmmeta.dll to the correct folder as specified in the included notes

3) open the demo app in vs2008

4) right click the solution and select "Clean"

5) rebuild the entire solution

6) now open the form in the designer
[Windows Mobile Software Development] ng-gdata:
I know that 2.0 is not supported , but that's where they show up. In 3.5 they don't. I copied the metadata file to the correct folder. But I will try cleaning and rebuilding the solution now. I wonder however why your project is the only one that's not trusted, although I have all my solution in the Visual Studio subfolder of documents.

Have you seen the screenshots of the 24 hours clock above?

edit: tried cleaning and rebuilding, but it's still the same. I also moved it to another folder.
[Windows Mobile Software Development] Bence:
Is this compatible with Visual Studio 2010 and .net 4?

I ask because I've had some problems with VS08 SP1 when I wanted to continue work on my project that was made on studio without service pack...

Thanks
[Windows Mobile Software Development] eboelzner:
Are you running Vista or Win7 ?

Try right clicking the solution file, properties, somewhere in there, you should be able to "trust" the file since the OS senses that it came from outside your pc...
[Windows Mobile Software Development] h0er:
Dim label As New StedySoft.SenseSDK.SenseLabelControl With {.Top = 350, .Left = 50, .Text = "Test", .BackColor = Color.White}
Controls.Add(label)

Screenshot: http://i.imgur.com/b5A5f.png .

I'm guessing I'm just doing something wrong, and it's not your code that misbehaves.
[Windows Mobile Software Development] eboelzner:
Unfortunately... no! VS2010 does not support WindowsMobile nor CE development... only WindowsPhone 7 !
[Windows Mobile Software Development] TeDeV:
LOL u r joking! i didn't try that until today. wtf? no Windows 6.5 sdk for vs 2010? who the hell is making these ideas in that company?

Windows Phone 7 is CE 7.
[Windows Mobile Software Development] eboelzner:
I just added a menu item to the demo app... then added the following code to the click event of the new menu item to remove the first item in the list...

private void mnuRemoveItem_Click(object sender, EventArgs e) {
if (this.senseListCtrl.Count > 0) {
// by index
this.senseListCtrl.RemoveItem(0);
// by name
//this.senseListCtrl.RemoveItem(this.senseListCtrl[0].Name);
// by obj ref
//this.senseListCtrl.RemoveItem(this.senseListCtrl[0]);
}
mnuRemoveItem.Enabled = this.senseListCtrl.Count > 0;
}

I was able to remove by index, name, and obj ref... I actually removed all the items without any error...

Are you trying to remove an item in a event fired by the item? THat could potentially have an issue...

Add the menu item and my code... let me know... Thanks
[Windows Mobile Software Development] Sl4sher:
I tried your code for by index and you're right, it works perfectly.

I am actually trying remove a morelistitem from an event fired by one of its children.
[Windows Mobile Software Development] KUV1977:
In my app i am drawing a list of 50+ Items with Thumbnail. On the first time entering the list it goes without problem. Sometimes even in the second and third time but sooner or later i get an "unspecified error". The stacktrace shows the following.

at StedySoft.SenseSDK.DrawingCE.SenseAPIs.SenseImage.GetIImageSize(IImage iimg)
at StedySoft.SenseSDK.DrawingCE.SenseAPIs.SenseImage.Panel.Draw.ThumbnailIImage(Graphics g, IImage iimg, Rectangle r)
at StedySoft.SenseSDK.SensePanelItem.OnRender(Graphics g)
at StedySoft.SenseSDK.SenseListControl._renderGraphics()
at StedySoft.SenseSDK.SenseListControl.OnPaint(PaintEventArgs e)
at System.Windows.Forms.Control.WnProc(WM wm, Int32 wParam, Int32 lParam)
at System.Windows.Forms.Control._InternalWnProc(WM wm, Int32 wParam, Int32 lParam)
at Microsoft.AGL.Forms.EVL.EnterMainLoop(IntPtr hwnMain)
at System.Windows.Forms.Application.Run(Form fm)
at SenseSDKDemo.Program.Main()

i wanted to use own thumbnails but so far it is always the one included in your resource.

Before building the list i do a

this.senseListCtrl.Clear();
this.senseListCtrl.BeginUpdate();

and afterwards the

this.senseListCtrl.EndUpdate();

Am i missing something or did i discover a real bug?

EDIT: The same thing happens even if i don't set thumbnails at all and with smaller lists (20 items). However, it does take a lot more tries for the error to occurr.
[Windows Mobile Software Development] ng-gdata:
Which is quite annoying. I'm lucky I did not pay for my VS2010 and got it for free via Dreamspark...

btw: Is there a method in the SDK that determines whether the app is running on a VGA or QVGA device?
[Windows Mobile Software Development] {SBR}_L3GION:
I followed the instructions posted earlier for getting the controls to work I got my ui set up but it ended up as part of the soltution now I dont know what to do. I never got the them to my toolbox i just copied from the demo stuff
[Windows Mobile Software Development] TeDeV:
hey guys, can someone tell me what is the RGB color of the sense list's background?

i am trying to set it or get it, but no luck....
[Windows Mobile Software Development] spastik:
Hi,

It seems that you forget again of autosizing panel items depending on its text width and height beacause if text is too large it will get underneath the some controllers (like on/off switches, etc).

Could you please fix this ?

thanks :)
[Windows Mobile Software Development] ng-gdata:
StedySoft.SenseSDK.DrawingCE.SenseColors
[Windows Mobile Software Development] TeDeV:
don't get it. how and where do i use that?
[Windows Mobile Software Development] ng-gdata:
The class contains all the colors eboelzner used in the sdk. What you are looking for is this one:

Color StedySoft.SenseSDK.DrawingCE.SenseColors.List_Background
[Windows Mobile Software Development] Roccc:
Out Of Memory Exception

Hello,

Thanks eboelzner ! It looks the best Interface SDK :) I tested the demo on my HTC Diamond 2, it's very cool.

Now, I would like to use this SDK, but I have the same error that ng-gdata.

I copied the StedySoft.SenseSDK.PocketPC.asmmeta.dll to the correct folder as specified in the included notes, and I opened the demo app in vs2008.

But, I have an Out Of Memory Exception. I attache a screenshot. Do you have a suggestion ?

PS : I am running Vista, with Visual Studio 2008 SP1 and Compact Framework 3.5
[Windows Mobile Software Development] eboelzner:
Interesting... that should not be happening... I will test on a few of my dev pc's...
[Windows Mobile Software Development] eboelzner:
Localization

I have added the localization code... and created the resources...

First I need your language CultureInfo string ie: German = "de-DE"

I need your help to translate the following for your language...

English = Translation

Cancel =

Hour =

Minute =

No =

Retry =

Set =

Yes =

Ignore =

Thanks,

Ed
[Windows Mobile Software Development] TeDeV:
Greek = Translation

Cancel = Άκυρο

Hour = Ώρα

Minute = Λεπτά

No = Νο

Retry = Επανάληψη

Set = Αποδοχή

Yes = Ναί

Ignore = Άκυρο

don't really remember the CultureInfo thing, it is either gr-GR or el-EL
[Windows Mobile Software Development] Wareczek:
pl-PL

Polish = Tłumaczenie

Cancel = Anuluj

Hour = Godzina

Minute = Minuta

No = Nie

Retry = Ponów

Set = Ustaw

Yes = Tak

Ignore = Ignoruj
[Windows Mobile Software Development] Roccc:
Culture fr-FR but also for fr-BE ; fr-CA ; fr-LU ; fr-MC ; fr-CH

French= Translation

Cancel = Annuler

Hour = Heure

Minute = Minute

No = Νοn

Retry = Réessayer

Set = Confirmer

Yes = Oui

Ignore = Ignorer
[Windows Mobile Software Development] Phhere:
German = Translation

Cancel = Abbrechen

Hour = Stunde

Minute = Minute

No = Nein

Retry = wiederholen

Set = setzen

Yes = Ja

Ignore = Ignorieren
[Windows Mobile Software Development] TeDeV:
ed i have a request :)

is it possible to have an option (true - false) on if we want to have the text in a PanelTextbox on left or on top?

to explain it more...

right now, the PanelTextBox has the text (which describes it) above the textbox.

can you plz give us the option to also have it at the left or right of the textbox, so that we can have more space vertically? i really need that, and i would appreciate it

thanks
[Windows Mobile Software Development] TeDeV:
ok the sensePanelTextbox doesn't work well at all with 1.2 (haven't tried 1.3).

the event handler is a mess. can anyone confirm this?

i also get a message all the time i am trying to access the sender...

Cannot evaluate expression because the code of the current method is optimized.
[Windows Mobile Software Development] eboelzner:
Let me know what you are trying to do... the event(s) in question... I will take a look...

Also... have the 12 and 24 Hour time controls working and the Localization for Dates and Time
[Windows Mobile Software Development] wesch00:
I have encountered some problem with the DateTimePanelItem.

I've set the DateTime property of the item to a time value, i.e 9am. When I the open the time dialog, the value shown there is allways 01:00am. Am I misssing something?

Then the lowest time value for hours is 01. So I'm not able to define a time 00:00am. I'm not very familar with time formats in am/pm form. But is it necessary to have the hour value of 12 there? 12:00am is 0:00pm, isn't it? And 12:00pm is 0:00am in my opinon.

If you implement it for 24hour formats, 24:00 is not a avlid time format, it is 0:00 of the next day. So time ranges from 0:00 to 23:59:59.

Date dialog looks good at the first glance. You display the weekday with two letters. The Manila does it with only one letter. Since two letters are more informative, it is ok but not Manila like.

For my needs it would be nice to be able to provide a format string for the date and time values displayed on the panel item, i.e. to display the year with for digits. This makes it more flexible.

Edit:

Sorry, for the am/pm problem. I've had a look at wikipeda and it states the implementation is right, didn't know that. I expected something similar as for the 24 hor format.
[Windows Mobile Software Development] TeDeV:
what i am trying to do is to add an event handler on a sensepanelTextboxitem.

when i create a sub for the handler, and i am trying to access the Sender object, i get the above message about optimise, and i also get a cast error, when i am trying to get the sender object as a SensePanelTextboxItem.

the only thing that i can cast it into is a Textbox. nothing else works.

there are some other problems too with textboxes, but i am trying to figure out what or why it is happening
[Windows Mobile Software Development] vua777:
awesome nice work

(bookmark)
[Windows Mobile Software Development] JacE25:
Thanks for your answer.

I've got another problem with the SensePanelMoreItem.

If you click on the menuitem "step further" it calls the list.ShowChildren() Method. The same with step back, there i call showParent()

However, this call seems to work only when I have previously done it with clicking on the real SensePanelMoreItem.

Any ideas why? My mistake?

Edit:

I think I've found an error.

If one of the Numeric Up / Down box has a maximum value, this value applies only in the small view. If you choose the large view, you can enter values which are greater than the maximum
[Windows Mobile Software Development] h0er:
Combocontrol

Can somebody please post a working vb.net example of a combox and an onSelectedIndexChanged or similar). I've tried each and every example in this thread but it still doesn't work.

Thanks in advance!
[Windows Mobile Software Development] ng-gdata:
I'd say:

Set = Festlegen (that's how it is in the original Sense Calendar Dialog)

Retry = Wiederholen (upper case)
[Windows Mobile Software Development] apanoladotcom:
Translation for sv-SE and sv-FI.

Swedish = Svenska

Cancel = Avbryt

Hour = Timme

Minute = Minut

No = Nej

Retry = Försök igen

Set = Ställ in

Yes = Ja

Ignore = Ignorera

The translation for "Set" is a bit weird but it is the one that HTC uses in their Swedish version of Sense. In lack of a better one that will have to do.

Nice work on the SDK!
[Windows Mobile Software Development] char:
Here's quick translation for Czech (cs-cz):

Czech = Translation

Cancel = Zrušit

Hour = Hodina

Minute = Minuta

No = Ne

Retry = Opakovat

Set = Nastav

Yes = Ano

Ignore = Ignoruj
[Windows Mobile Software Development] KUV1977:
As i have written before there seems to be a bug with graphics.

I have a list of 50+ items that gets called and works fine the first time, but after some app-usage, calling the list again results in a crash with the error i posted above. The only thing i can do to keep the program from crashing is:

disabling the thumbnails AND xxx = this._buttonAnimation . If i enable either of those the app crashes sooner or later when calling the same list that worked well before. After taking out these lines the list loads fine everytime. Since i use it exactly the way the sample-app uses it, i can not think of a way how i coud be responsible for the crash...
[Windows Mobile Software Development] eboelzner:
Can you send me the app, with the isolated code, and the steps to reproduce the error... I will then attempt to fix the error(s)...

Ed
[Windows Mobile Software Development] hanoi_toulouse:
Help me please, i have some SensePanelTextbox and dont know how to find them out and take the Text inside these box from an event.

i am newbie in c# (2 days of study). Thanks in advance.
[Windows Mobile Software Development] eboelzner:
localization help... again

I have added the localization code... and created the resources...

First I need your language CultureInfo string ie: German = "de-DE"

I need your help to translate the following for your language...

Sorry... forgot to add some strings the first time...

Translation To:

CultureInfo String (if known):

Cancel =

Hour =

Ignore =

Minute =

No =

Off =

On =

Retry =

Set =

Yes =

Thanks,

Ed
[Windows Mobile Software Development] apanoladotcom:
Here's the updated Swedish translation.

Translation To: Swedish

CultureInfo String (if known): sv-SE and sv-FI

Cancel = Avbryt

Hour = Timme

Ignore = Ignorera

Minute = Minut

No = Nej

Off = Av

On = På

Retry = Försök igen

Set = Ställ in

Yes = Ja
[Windows Mobile Software Development] nelsonsantos:
Hi eboelzner... this is translation for Portuguese (Brazil).

Nice job!!

Translation To:

pt-br

Cancel = Cancelar

Hour = Hora

Ignore = Ignorar

Minute = Minuto

No = Não

Off = Desligar

On = Ligar

Retry = Tentar Novamente

Set = Definir

Yes = Sim

Reggards

Nelson Santos
[Windows Mobile Software Development] JacE25:
Translation To:German

CultureInfo String (if known): de-DE

Cancel =Abbrechen

Hour = Stunde

Ignore =Ignorieren

Minute =Minute

No =Nein

Off =Aus

On ="An" or "Ein"

Retry =Wiederholen

Set =Übernehmen

Yes =Ja

If you need some Screenshots of the German HTC Sense UI from my HD2 feel free to contact me.
[Windows Mobile Software Development] TeDeV:
this is for Greek

CultureInfo String (if known): el-EL

Cancel = Άκυρο

Hour = Ώρα

Ignore = Αγνόησε

Minute = Λεπτά

No = Όχι

Off = Κλειστό

On = Ανοιχτό

Retry = Επανάληψη

Set = Αποδοχή

Yes = Ναί
[Windows Mobile Software Development] char:
Translation To: Czech

Note: Without proper context some of the proposed translations may not be correct, this need to be verified in real use.

CultureInfo String (if known): cs-CZ

Cancel = Storno

Hour = Hodina

Ignore = Ignoruj

Minute = Minuta

No = Ne

Off = Vypnuto

On = Zapnuto

Retry = Opakovat

Set = Nastav

Yes = Ano
[Windows Mobile Software Development] wesch00:
In case of the calander control, "Set" ist "Festlegen" in the german Manila. It was allready somewhere mentioned I think.
[Windows Mobile Software Development] VPAFan:
Format Excetion in SenseTimeFSControl

Hi eboelzner

version 1.2 was shown in the toolbox of VS2008.

Now in Version 1.3 all controls are grayed out.

The demo also don't work. The form "frmDateTimeDemo" did not show up in the designer. There is an exception in the "SenseTimeFSControl".

bei System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
bei System.Number.ParseUInt32(String value, NumberStyles options, NumberFormatInfo numfmt)
bei System.UInt16.Parse(String s, NumberStyles style, NumberFormatInfo info)
bei System.Convert.ToUInt16(String value)
bei StedySoft.SenseSDK.SenseTimeFSControl..ctor()

I can start the App on a device with regional settings "English (USA) an it works fine. With regional settings "German (Germany)" I get an exception

SenseSDKDemo.exe
FormatException

bei System.UInt16.Parse(String s, NumberStyles style, IFormatProvider provider)
bei System.Convert.ToUInt16(String value)
bei StedySoft.SenseSDK.SenseTimeFSControl..ctor()
bei SenseSDKDemo.frmDateTimeDemo..ctor()
bei SenseSDKDemo.frmListDemo.mnuDateTime_Click(Object sender, EventArgs e)
bei System.Windows.Forms.MenuItem.OnClick(EventArgs e)
bei System.Windows.Forms.Menu.ProcessMnuProc(Control ctlThis, WM wm, Int32 wParam, Int32 lParam)
bei System.Windows.Forms.Form.WnProc(WM wm, Int32 wParam, Int32 lParam)
bei System.Windows.Forms.Control._InternalWnProc(WM wm, Int32 wParam, Int32 lParam)
bei Microsoft.AGL.Forms.EVL.EnterMainLoop(IntPtr hwnMain)
bei System.Windows.Forms.Application.Run(Form fm)
bei SenseSDKDemo.Program.Main()

I hope this helps you to get it running for us German guys.

I also have a request, could you please give us the example on how to create some custom PanelItems.

Do we have to use the use the "SenseListControl.ISenseListItem" interface or the "SensePanelBase"?

Greetz from germany
[Windows Mobile Software Development] Wareczek:
Translation To: Polish

CultureInfo String (if known): pl-PL

Cancel = Anuluj

Hour = Godzina

Ignore = Ignoruj

Minute = Minuta

No = Nie

Off = Wył

On = Wł

Retry = Ponów

Set = Ustaw

Yes = Tak
[Windows Mobile Software Development] joe_coolish:
I've got pretty much the same setup (VS 2008 SP1 on Vista) and I get similar errors

Mine says "The control StedySoft.SenseSDK.SenseOnOffControl has thrown an unhandled exception in the designer and has been disabled

Exception:

Out of Memory

Stack trace:

at StedySoft.SenseSKD.SenseOnOffControl.OnPaint(PaintEventArgs e)"

Then does the same thing for the SenseNumericControl.

Everything else renders fine and compiles fine.

Any idea what's up?
[Windows Mobile Software Development] joe_coolish:
Oh and I also have tried the

cmd /c start /wait devenv /setup /resetuserdata /selfreg /resetskippkgs

command, but no dice. I can't get the controls to be undisabled. Anything else I could try?
[Windows Mobile Software Development] legrorelou:
can it be something related to the windows mobile SDK revision (5 or 6) you have installed ?
[Windows Mobile Software Development] Roccc:
Hello,

I use the windows mobile SDK 6, but I have also installed the SDK 5 and the DTK 6.5.3.

thanks
[Windows Mobile Software Development] joe_coolish:
I have the same setup (6 SDK Professional + 6.5.3 DTK)
[Windows Mobile Software Development] makeveral:
Translation To: Spanish

CultureInfo String (if known): es-ES

Cancel = Cancelar

Hour = Hora

Ignore = Ignorar

Minute = Minuto

No = No

Off = Desactivado (if it's too long use off)

On = Activado (if it's too long use on)

Retry = Reintentar

Set = Definir

Yes = Si

------------

Translation To: Catalan

CultureInfo String (if known): unknown

Cancel = Cancel·lar

Hour = Hora

Ignore = Ignorar

Minute = Minut

No = No

Off = Desactivat (if it's too long use off)

On = Activat (if it's too long use on)

Retry = Reintentar

Set = Definir

Yes = Si
[Windows Mobile Software Development] Wareczek:
Catalan is ca-ES ;)
[Windows Mobile Software Development] mgigi:
Hebrew Translation

Translation To: Hebrew

CultureInfo String (if known): he-IL

Cancel = לבטל

Hour = שעה

Ignore = להתעלם

Minute = דקה

No = לא

Off = כבוי

On = דולק

Retry = נסה שוב

Set = לקבוע

Yes = כן

Thank you very much :)
[Windows Mobile Software Development] RuffioDK:
Here's the updated Dansih translation.

Translation To: Danish

CultureInfo String (if known): da-DK

Cancel = Afbryd

Hour = Time

Ignore = Ignorer

Minute = Minut

No = Nej

Off = Sluk

On = Tænd

Retry = Prøv igen

Set = Sæt

Yes = Ja
[Windows Mobile Software Development] eboelzner:
Make sure that the QVGA/VGA resource files are in the same folder as the SDK lib...
[Windows Mobile Software Development] joe_coolish:
I checked. I've been working with the SDK since yesterday and I think it's great! Just the IDE (Interface Developement Environment) portion I haven't gotten working.

I did the reset command on my Visual Studio (both 2008 and 2010) and the controls are still grayed out. I still get those 2 errors even thou all 3 .dlls are in the same folder. Where do you suggest I put the .dlls? I've just kept them in the bin folder of my project. Is there a better place?

Also, I had a couple quick questions. As far as documentation for the APIs go, are there any plans to have an API reference?

I am also trying to work with images and I just was wondering what the best solutions would be. I want to display an image over the ">" in the SensePanelMoreItem while the buttonClick method is processing, and also I want to display some images in the bottom right side of the SensePanelMoreItem. Images for things like "Already Visited" or "Favorited Item", things like that. Is there any way to add/override these images?

Thank you very much for your SDK btw. It's been really easy to pick up and use!
[Windows Mobile Software Development] hanoi_toulouse:
hi,

i have a SensePanelMoreItem with 2 sensePanelTextboxItem inside, please tell me the way to acces these 2 Textbox.text in the run time, as known they dont have names.
[Windows Mobile Software Development] Archer:
Just define the items globally in the class so that you have access to them in any of the class methods.
[Windows Mobile Software Development] hanoi_toulouse:
many thanks for prompt reponse, but could you give me some code? im new in c#.
[Windows Mobile Software Development] joe_coolish:
@eboelzner

I've been playing with your SDK for a bit, and I must say, it's very impressive! Very very good work :) I hope to have my first app (a Web Comic Aggregator) up and running within the next couple of weeks!

Some things I noticed:

- If a SensePanelMoreItem's Primary or Secondary Text is set to 'null' A 'null reference exception' is thrown at the OnPaint() event.

- I changing the BackColor or ForeColor on the Header object doesn't change anything (probably intentionally)

And some questions that I have

- I haven't figured out how to work with transparent images yet. Is there an example anywhere that demonstrates how to program them?

- Is there any way to go straight back to the first screen for a List that has multiple levels of SensePanelMoreItems? Right now I have a while loop that checks List.ParentFocusedItem != null and executes List.ShowParent(). It works but it zips past all the menu items on the way back.

Thank you very much for your SDK. You totally saved me from hours of googling .net CF solutions!

Joel
[Windows Mobile Software Development] Archer:
Give me the code you're having problems with and I'll be happy to alter it and post it back :)