yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Software Development] hanoi_toulouse:
cool, many thanks, here is the codes:

StedySoft.SenseSDK.SensePanelMoreItem itm = new StedySoft.SenseSDK.SensePanelMoreItem("PanelItem" + (itmCounter++).ToString());

itm.ButtonAnimation = this._buttonAnimation;

//itm.ProcessEntireButton = this._processEntireButton;

itm.IThumbnail = iimg;

switch (i){

case 1:

itm.PrimaryText = "Countries : ";

for (int t = 1; t <= 2; t++)

{

StedySoft.SenseSDK.SensePanelTextboxItem itmMore = new StedySoft.SenseSDK.SensePanelTextboxItem("PanelItem" + (itmCounter++).ToString());

itmMore.LabelText = ((t==1)?"Français":"Espagnols");

itmMore.Text="0";

itmMore.Tag = "collier" + t.ToString();

itmMore.TextChanged += new EventHandler(myTextChanged);

itm.Children.Add(itmMore);

}

in myTextChanged i want to change secondaryText of all another parent controls. By the way please give me an example of use an Array of Enum or Array of Struct. ;););)
[Windows Mobile Software Development] Archer:
Thanks mate. I do hope that it doesn't mean we lose the metadata, but you do what you gotta do.

I look forward to your update. (I've got a KILLER app lined up ;))
[Windows Mobile Software Development] eboelzner:
OK... I created a sample project using .net 3.5... and the controls were grayed out!!! WTF! The target was 3.5 when I compiled the SDK!

So... I went to .net 2.0, and everything worked great! I could add ALL the controls, even the header! Are you leaving both the VGA and QVGA dlls in the same folder as the SDK dll?

So.. issue #1... (reproducible) .net 3.5 will not allow the controls to be added... so I use .net 2.0 to add the controls, and switch to 3.5... the controls grey out!

Issue #2... the header ctrl... It does not crash on me... how are you adding it? dbl click the control in the tab or drag it over?

Can you add the other controls?

Thanks for your help!!!

Ed
[Windows Mobile Software Development] TiTidom:
Hi Ed,

If it can help :

Issue #1 :

- I confirm : in .NET2.0 all controls are usable (not grayed out) / in .NET3.5 all are grayed out.

Issue #2 :

(i've put metadata in both 2.0 and 3.5 metadata folder and i am in .NET2.0 in this example).

- i can't add : HeaderControl + NumericFSControl + OnOffControl + NumericControl

- i can add : all other controls from your SDK.

test both : adding by draging and double click on it --> always the same out of memory problem.

hope you can do something :p

@++

TiTidom.
[Windows Mobile Software Development] Archer:
Yep, I can confirm the same. Also, if I start a new project and drop a SenseListControl on the form, that's enough for it to not run. It builds okay, but I get the attached error when I run it. This happens in InitializeComponent when it first tries to create the object.

Cheers mate :)
[Windows Mobile Software Development] VisualD:
Dont think I've used the designer for a netcf app in years, much better to manually initialise and place the controls IMHO.

Dim Header As New StedySoft.SenseSDK.SenseHeaderControl _
With {.Dock = DockStyle.Top, .Text = "Test Header"}
Controls.Add(Header)

Works fine in WM6 Project with netcf 3.5.

Just make sure you have added references to both resource dll's as well as the main dll.

EDIT:

However, adding a SenseListControl in the same way leaves me with a black background where the list should be, changing the BackColor has no effect :/ Will try some other stuff and report back.

EDIT2:

Yeah list works fine once you add some list items, maybe should be changed so it draws bg even with no items though.
[Windows Mobile Software Development] Archer:
Yeah, I don't want to go down that route if it can be avoided. It's one of the reasons that I want to switch from Manila SDK to this set of controls. Also, the Manila SDK controls are all-in-one (a panel with main & secondary text and a control on the right.) With this, you have to make them yourself, so I don't want to have to go down the route of having to create so much stuff in code at runtime.

I'll wait to see if the OP can fix the issues.
[Windows Mobile Software Development] eboelzner:
Ok... First; Thanks for all the feedback, I believe I have enough info to start determining what the issue with the init control sequence...

I referenece the "base" object in those controls that fail in the initial resize... but use "this" in the others.

I wonder why is does not fail in my dev environment? are you guys using VGA or QVGA designers? Are you setting the scaling mode to DPI? Did you turn off auto-scrolling on the form(s) that host the list?

The header control should auto-dock to the top without having to set it! as you can see, the dock property is not even exposed!

I will get another test version up ASAP... THANKS AGAIN!!!
[Windows Mobile Software Development] Archer:
VGA (well, WVGA to be precise, but obviously VGA).

I'm not setting anything. New project, and just drop the header or listcontrol onto a form. The header gives the design-time error and the listcontrol gives the runtime error.

No I didn't do this. All the settings were default.

I didn't pay much attention to the properties, to be honest, but it was docked at the top of the form automatically.

Thanks a lot mate - I look forward to it :)
[Windows Mobile Software Development] Archer:
I think I've figured out what the problem is. Even though the controls are only available in .Net 2.0, they only actually work in .Net 3.5. I've now started using the above suggestion of coding the controls manually, and it's working great.

Still looking forward to the next release, but at least it works now.

Edit:

I've also noticed that the SensePanelRadioItem falls over when clicked, with a NullReferenceException

StedySoft.SenseSDK.SenseListControl.OnItemRequestAction(Object sender, RequestActionEventArgs e)

StedySoft.SenseSDK.SensePanelRadioItem._notifyRequestAction(String action)

StedySoft.SenseSDK.SensePanelRadioItem.OnMouseUp(Int32 x, Int32 y)

StedySoft.SenseSDK.SenseListControl.OnMouseUp(MouseEventArgs e)

System.Windows.Forms.Control.WnProc(WM wm, Int32 wParam, Int32 lParam)

System.Windows.Forms.Control._InternalWnProc(WM wm, Int32 wParam, Int32 lParam)

Microsoft.AGL.Forms.EVL.EnterMainLoop(IntPtr hwnMain)

System.Windows.Forms.Application.Run(Form fm)
[Windows Mobile Software Development] eboelzner:
Got it to work correctly in .netCF 3.5!!!!

Ok... I finally got an answer from Microsoft about .netCF 3.5 controls and the toolbox from VS2008

1) VS2008 SP1 is required

2) If you installed VS 2008 and ANY version of .netCF 3.5 was on your system prior to install and you did not un-install it... there is an install bug that creates this issue.

Here is the fix from Microsoft...

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

from the command prompt to reset all user settings

See https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=322223&wa=wsignin1.0 for discussion.

This will re-run a portion of the setup and allow .netCF 3.5 controls to be enabled on the toolbox. I ran it and it works like a charm!!!

NOTE: I will upload the new version, with all know bug fixes, a readme text file to help setup the SDK, and recompile with WindowsMobile 6.0 SDK... later the afternoon.

Thanks for all the help!

Ed
[Windows Mobile Software Development] eboelzner:
LOL... Nice avatar... stopped reading there!

(response unsuscribed)
[Windows Mobile Software Development] TiTidom:
Hi,

That's a very good news !!!!!! :D

I will wait for this new version :) to test it ... tomorrow morning ... (in the afternoon for you = late in the night for me lol :eek: :p:p)

Thank's for your hard work !!

@++

TiTidom.
[Windows Mobile Software Development] Archer:
As TiTidom said, that's great news!

I can't wait to carry on using these controls. I've had to stop work on the CHTEditor at the minute as I don't want to do too much without testing it properly, and I've already got a few groups of radio controls.

Thanks a lot for your hard work mate :)
[Windows Mobile Software Development] Nightstorm99:
Thank you

I'm waiting for the new version! :)

I was developing a program and hope the new version is still compatible?

Can I use Picture boxes in the ListControl?
[Windows Mobile Software Development] Nightstorm99:
Hello!

@ eboelzner

Now I have tried everything to the elements in the Tollbox to see, but unfortunately, it still does not.

I would imagine that it is up to the language. For all other DLL Language neutral, but when it displays your "invariant language."

Could it possibly have to do with it?

Thanks

Greeting Denny
[Windows Mobile Software Development] Archer:
Thanks for the update Ed. I'll have a play with it later and report back.

Cheers mate :)
[Windows Mobile Software Development] TiTidom:
Hi Ed,

Thank's for the update. I tried it this morning, but unfortunatly, i've same problem as before (not usable in .NET3.5, only in .NET2.0 and exception on paint) :(

I tried your fix too, it initialize again the IDE, but not more, your controls are still unavailable (and if i add other controls from other sdk for .NET3.5, it works :o)

Waiting for the next release :D

@++

TiTidom.
[Windows Mobile Software Development] Archer:
I know it's a pain, but have you tried manually coding the controls, rather than using the IDE?
[Windows Mobile Software Development] TiTidom:
Not for the moment :p (only for the listcontrol :D)

If i have no other choice, i will do but if it's possible to use the IDE, it would be nice ;)

@++

TiTidom.
[Windows Mobile Software Development] Archer:
Yeah, I agree. I started rewriting an app last night that previously used the Manila SDK, so it wasn't that much of a big deal to change as that was already hand-coded. Other than the issues that were reported as fixed in v1.1, I didn't come across anything else doing it that way.

It's also the only way I've found to use the controls in a .Net 3.5 app, and using them in a .Net 2.0 app is what causes the errors in the IDE.
[Windows Mobile Software Development] Archer:
I think it's easier if I just give you a working project. I've created a

very

simple app with 2 more items, each with a textbox in them. If you select a more item and then enter a text value it will change the secondary text of the more item to whatever you put in the textbox.

To use array for structs or enums is the same for both.

Whatever[] array = new Whatever[n]; (where Whatever is either a struct or enum, and n is the size.)

You may be better off looking at generic lists though...

List<Whatever> list = new List<Whatever>();

You can add and remove items with lists a lot easier than with arrays.

Edit:

Okay, so the attachment window shows the zip file as being uploaded, but it disappears when I post it. Have a link instead...

http://www.johnmolyneux.co.uk/downloads/DemoApp.zip

@eboelzner

This is the 1st chance I've had to play with v1.3, and it's looking really nice, but I'm not keen on the fact that I can't create controls without passing a name into them - it complains at runtime that they need unique names. That means that any applications I've already written will need to have name values passed into their constructors.

Any suggestions or ways round this?
[Windows Mobile Software Development] eboelzner:
Actually... I may have released the wrong code, as you know, the name was not required... if the dev did not use a name, one would be created... I will take a look and get back to you...

Close to releasing 1.35... so you can test your code prior to me releasing and let me know...
[Windows Mobile Software Development] Archer:
Cheers Ed - much appreciated :)
[Windows Mobile Software Development] enroc91:
Is there a way to update/refresh the children of a MoreItem while you are in the MoreItem?

The first item on the MoreItem list is a button to update the items of the list itself, now I have to go back and go to the MoreItem again to see the list updated..

I tried the BeginUpdate() and EndUpdate() as suggested earlier in this thread, but I do not want to use an onshowchildren event.
[Windows Mobile Software Development] Archer:
lol - as if I'd give you code without running it!

You've not got v1.3 of the Sense SDK.

Please download :p
[Windows Mobile Software Development] hanoi_toulouse:
ok, now it works, really simple example, thank you verry much.
[Windows Mobile Software Development] Archer:
You're welcome mate. Glad you got it working.
[Windows Mobile Software Development] bandanner:
Hi!

Is there something like a progressbar and tabs planned?

Or does anybody have any suggestions, on how to improvise a progressbar?

Thanks in advance.
[Windows Mobile Software Development] leen15:
Hi, very nice sdk! :eek:

I would try it but i've a problem:

I read in this topic that for using these comands from the toolbox i've to switch the framework from 3.5 to 2.0 for don't have them grayed out, but how can do it?

If i go to Properties-> Application tab the Target Framework is disabled. :confused:

So i can build the SenseSDKDemo, but in develope time i don't see nothing in forms Design and i cannot modify them.

Thanks! ;)
[Windows Mobile Software Development] brandi:
@eboelzner is it possible, that your TimeControl only supports the weird AM/PM 12h format?!

I can't get it to work with a normal timeset!

Still, thanks for your awesome work!

greetz
[Windows Mobile Software Development] Wareczek:
Please be patient and wait for version 1.35 :)
[Windows Mobile Software Development] wesch00:
I've had the same problem with the name property as to be needed.

The most items in my app are owner drawn, so I gave them a Guid as a name. That was a small change, I couldn't widstand to try 1.3.
[Windows Mobile Software Development] Nixeus:
Hello,

Anyone have succeed to use this SKD on Visual Studio 2010 ?

I have tried to convert the project with VS2010 Ultimate, and there are converting errors :(

Anyone have a tips ?

Thanks a lot :)
[Windows Mobile Software Development] meltwater:
Please correct me if I am wrong, but AFAIK VS 2010 doesn't support WM development, just Windows Phone 7...
[Windows Mobile Software Development] Wareczek:
Yes, you're right :]
[Windows Mobile Software Development] brandi:
Alright, thank you!
[Windows Mobile Software Development] jerrya:
Just being a noob to this, bear with my. Does this enable me, someone with no experience, the capacity to create my own Sense skin, an actuall operating version that would be entirely my creation? Or do I really need to know what the piss I am doing to even attempt this? I don't mean ROM cooking, but instead of running my current cooked ROM, would I run this through Titanium?
[Windows Mobile Software Development] Archer:
This is for making Windows applications, regardless of what GUI you use on your phone. It's just that the controls look and act like Sense (Manila) controls, which is great for Windows developers that want to write apps that look like that GUI.
[Windows Mobile Software Development] KUV1977:
I am still looking for a way to load thumbs from file instead of from resource. However the default methods for that seem to be not supported by the iimg... can anyone of the more experienced c# coders give me a hint how to feed the files to the iimg as if they were coming from the resource, or is there a simple way i have missed? Thanx!
[Windows Mobile Software Development] hanoi_toulouse:
can someone show me please the code for creating a file on sd card, i cant find out on the google. Thanks in advance. :)
[Windows Mobile Software Development] jerrya:
Thanks for letting me know John! Some day this old brain of mine is gonna have to take a shot at this XML stuff, or whatever the programming is!
[Windows Mobile Software Development] KUV1977:
OK. So i finally figured out the thumbnail thing by myself. But now that i am using thumbs again i still get the crash every once in a while and the error is always:

COMException

_methodDescs | {System.IntPtr[10]}

unspecified error

Errorcode/HResult: -2147467259

anyone else having this?
[Windows Mobile Software Development] TeDeV:
can u share the code for the thumbnails?
[Windows Mobile Software Development] KUV1977:
That is my version. I am new to C# so there might be a better solution.

private IImage _getIImageFromFile(string file)
{
IImage iimg;
FileStream inStream = File.OpenRead(file);
MemoryStream strm = new MemoryStream();
strm.SetLength(inStream.Length);
inStream.Read(strm.GetBuffer(), 0, (int)inStream.Length);

using (strm)
{(ImagingFactory.GetImaging()).CreateImageFromBuffer(strm.GetBuffer(), (uint)strm.Length, BufferDisposalFlag.BufferDisposalFlagNone, out iimg);}
return iimg;
}
[Windows Mobile Software Development] Nixeus:
Hello my friends,

I have create a new tab in VS2008 SP1 named "sense control"

I have right-cliking on it, "choose elements", browse "StedySoft.SenseSDK.dll", and i don't see my sens controls on my new tab :(

I have readed the TXT and made :

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

It don't change anything :(

Have you an idea please ?

Thanks a lot
[Windows Mobile Software Development] vers2:
I am getting this error too. Here is the stacktrace:

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.SensePanelMoreItem.OnRender(Graphics g)
at StedySoft.SenseSDK.SenseListControl._renderGraphics()
at StedySoft.SenseSDK.SenseListControl._animateLeft()
at StedySoft.SenseSDK.SenseListControl.ShowChildren()
at StedySoft.SenseSDK.SenseListControl.OnItemRequestAction(Object sender, RequestActionEventArgs e)
at StedySoft.SenseSDK.SensePanelMoreItem._notifyRequestAction(String action)
at StedySoft.SenseSDK.SensePanelMoreItem.OnMouseUp(Int32 x, Int32 y)
at StedySoft.SenseSDK.SenseListControl.OnMouseUp(MouseEventArgs 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 WMPrototype.Program.Main()

It shows up on expanding some random SensePanelMoreItem after 1-2 minutes of work with the program.
[Windows Mobile Software Development] KUV1977:
About that error:

I have taken the original demo-app, threw out all elements but ListElements with thumbs, which i draw 100 of. I outsourced them into a function and added an onClick that reloads the list. Otherwise this is the original DemoApp.

When you run it and click for a while on the elements it will crash. Sometimes after 3 Clicks, Sometimes after 15, but sooner or later it will always crash. So I am pretty sure my coding - if a bit noobish - is not responsible for the crash. Or is there anything special that needs to be done on a list redraw?

If someone could check out the appended project, i'd be grateful.
[Windows Mobile Software Development] eboelzner:
OK...

1) every item in the list (all 100) have the a click event handled...

itm.OnClick += new SensePanelItem.ClickEventHandler(OnClickGeneric);

2) then in the click event code you delete all the list items and re-create them???

void OnClickGeneric(object Sender) {

this.senseListCtrl.Clear();

drawlist();

}

This is why your code is failing... why do you remove all the list items and re-create them in every list item click event???

Ed
[Windows Mobile Software Development] KUV1977:
I just changed the code to trigger the bug while changing the demo app as little as possible. My App will load different lists upon clicks - not always the same. This is why i clear the list in my app and draw a new one. In the actual list every item has a different click event and draws a different list.

So, how can i get rid of the error? What will i have to adjust?

Thanks for checking!

EDIT: And why does it work flawlessly if i leave out thumbs and _buttonAnimation?

EDIT2: Also, another bug, that is not critical. When one moves the finger from right to left, slightly up or slightly down. The list is moveable beyond limits and will not spring back. I have this in my app, in the mobile-app from erst0r and also in your sample-app...

Unrelated: How do i set the list to scroll to the topmost position?
[Windows Mobile Software Development] eboelzner:
Version 1.35 will have the following exposed method in the StedySoft.SenseSDK.DrawingCE.SenseImage namespace...

public static IImage LoadIImageFromFile(string file)

I want to let you know that this is a VERY costly process... your code will execute MUCH quicker with embedded resources.
[Windows Mobile Software Development] KUV1977:
Great! I have for now written a function for that myself, that simply converts a filestream to a memory stream(i posted it a little above) and it works well. I know that it is not as efficient but, the app will download various thumbs from the internet that will be different for each user, so i can impossibly integrate those before... ( send you a pm with an early version of my app - that shows the same error described)

Anyway, can you please tell me how to fix my crash. Do i have to remove click-events before redrawing the list?

However, i have also tried loading a very long list directly on startup (no redraw) which seemed to work but while scrolling down in that list the same error is thrown before i reach the bottom.

EDIT: I have specifically created my app now with 6 items at the top - all having different onclicks - and then about 40 Items below with custom thumbs but without click-handler. The list was never cleared. The list loads fine but before i reach the bottom of the list by scrolling the same error is thrown.
[Windows Mobile Software Development] leen15:
Nobody can help me? :confused:
[Windows Mobile Software Development] Hary96:
I have the same problem :-(
[Windows Mobile Software Development] eboelzner:
Version 1.35 (TEST) is up...

Still no update on the toolbox, but created some code to auto-install the SDK in VS2008... this may correct the issue...

I will hopefully have this install later this week!
[Windows Mobile Software Development] Wareczek:
Bug in "Sense DateTime Controls...":

frmDateTimeDemo.cs, line 31

DateTime dt = DateTime.Parse((sender as myPanelButton).SecondaryText);
[Windows Mobile Software Development] Wareczek:
Big thanks for SensePanelDateTimeItem.Style.Date :) So... what's next? Tabs view? :D
[Windows Mobile Software Development] brandi:
First of all, thanks for this pnwsome release!

But I got to ask a question. Might it be, that it is not possible to add the new Timecontrol to a None-Sense inferface?`

I'd like to add it to a normal form!

thanks a lot

brAndi
[Windows Mobile Software Development] enroc91:
If only this interface was the Windows Mobile 6 default interface, it would have made WM so more attractive to developers..:cool:
[Windows Mobile Software Development] mgigi:
Hebrew Translation Corrected

Cancel = ביטול

Hour = שעה

Ignore = התעלם

Minute = דקה

No = לא

Off = כבוי

On = דולק

Retry = נסה שוב

Set = בחר

Yes = כן

Missing translation string in Numeric Up/Down Dialog:

OK = אישור

Thank you! :)

Great work

P.D

I think "OK" string is missing in all translations.
[Windows Mobile Software Development] leen15:
Translation To: Italian

CultureInfo String (if known): it-IT

Cancel = Annulla

Hour = Ora

Ignore = Ignora

Minute = Minuti

No = No

Off = Spento

On = Acceso

Retry = Indietro

Set = Imposta

Yes = Si

Off and On can be use in Italian as in English.

Here is some CultureInfo from microsoft:

;)
[Windows Mobile Software Development] mgigi:
Hebrew Translation Final

Sorry, now the translation is like in most programs.

Cancel = בטל

Hour = שעה

Ignore = התעלם

Minute = דקה

No = לא

Off = כבוי

On = דולק

Retry = נסה שוב

Set = בחר

Yes = כן

OK = אשר