yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Software Development] JacE25:
I have a SensePanelComboItem in a SensePanelMoreItem. If I open the SensePanelMoreItem for the first time, the combo list is filled. If I close the SensePanelMoreItem, and reopen it again, the combo list is empty and white. Where is my mistake?

In the demo you can find the same problem at the Combolist behind Item 13. if you choose one item, and close the Panel, and then reopen it, the list is also white and empty.

Edit Edit:

In the demo and in my Application:

If you choose noting in the combolist, but close and reopen the panel, you will get an ArgumentException {"the parameter is incorrect"}

Stack Trace:
[Windows Mobile Software Development] KUV1977:
With 1.35 i am getting a lot of {NullReferenceExceptions} with

StackTrace

at StedySoft.SenseSDK.SenseListControl.OnMouseDown(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 SenseSDKDemo.Program.Main()

in

Application.Run(new frmListDemo());

where i didn't get them in 1.3. I really don't know why, although it might be obvious for better C#-coders. I didn't change anything to my code yet...

I have an initial list and once you click an item, the list is cleared and a new list is drawn. The first lists always work but in the second list i always get the described error and the notice that i should 'create an object instance wit 'new'' - which i did. Also there is a possibility to return to the initial list (which gets loaded new, because it might change during the course of the program) and then even the button that worked fine before throws the error...

Here is one of the items that throws an error on second call:

IImage iimg_g = this._getIImageFromResource(this._isVGA() ? "vga_regedit" : "qvga_regedit");
StedySoft.SenseSDK.SensePanelItem itm_g = new StedySoft.SenseSDK.SensePanelItem("ItemA");
itm_g.ButtonAnimation = this._buttonAnimation;
itm_g.IThumbnail = iimg_g;
itm_g.PrimaryText = "Item";
itm_g.SecondaryText = "Description";
itm_g.Tag = "All Things";
itm_g.OnClick += new SensePanelItem.ClickEventHandler(OnClickShowG);
this.senseListCtrl.AddItem(itm_g);

Is there anything i have to do between clearing a list and building a new one so that the new one is treated as a fresh one? Are the old event handlers still active or something like that?
[Windows Mobile Software Development] Archer:
This may not be relevant (especially considering that you said this worked in v1.3), and was actually mentioned a few posts back for a similar issue, but are you trying to free an object within an event handler on that object?

Also, is there a reason you're not using more items? I know you only gave a brief description of what you're trying to do, but that was the first question I thought of when reading it.
[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, and i have tried on 2 computers, and i have the same problem :-(

Have you an idea please ?

Or if anyone could make some screenshots for installing this sdk, it will be greatfull

Thanks a lot

regards,

Nixeus

_____________
[Windows Mobile Software Development] Reaper:
Everyone has this problem. The creator is working on a fix. In the meantime you can copy the controls from the sample project and paste them into your own project. Just have the qvga and vga dll files refrences in your own project before you paste.
[Windows Mobile Software Development] spastik:
I just saw that you've released a new version with new features but then again you ignored the text's width bug.

Are you at least planning on doing something about this issue ?

thanks :)
[Windows Mobile Software Development] KUV1977:
Thank you for answering. I am not doing what you say, however, i am clearing the whole list (.clear) after clicking an element, so: maybe!?

I was starting out using the MoreItem and really liked it. The problem however is that the second list will have between 40 to 80 Entries and per each element there would be another sublist with between 30 to 60 Entries. I figure that would cost a lot of memory and while it would be nicer i have turned to this method. I think it is better for my purpose to redraw the lists.
[Windows Mobile Software Development] Archer:
In that case, I'd have to agree with you. I've used a similar method to make a file browser, and I've had no problems with it.

Could you try changing the code you quoted above to the following and see if you still have the same problem? (Just get rid of the image and buttonanimation stuff.)

StedySoft.SenseSDK.SensePanelItem itm_g = new StedySoft.SenseSDK.SensePanelItem("ItemA");
itm_g.PrimaryText = "Item";
itm_g.SecondaryText = "Description";
itm_g.Tag = "All Things";
itm_g.OnClick += new SensePanelItem.ClickEventHandler(OnClickShowG);
this.senseListCtrl.AddItem(itm_g);

Also, are you calling every SensePanelItem "ItemA"? I don't name items like that, so I don't know what the result of calling everything the same thing would be.

Finally, which version of this SDK are you using? There was a problem in v1.2 that was fixed in v1.3 that was specifically to do with clearing list controls.
[Windows Mobile Software Development] Reaper:
Hi,

I am also getting the unspecified error mentioned before when using the IImage thumbs. With the same stack trace:

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)

This is how I can the error.

1. I create a list and populate it with item that have primary and secondary text, as well as tag and name properties set.

2. When a item is clicked I fill in the IImage with a image I download from the web.

3. If I click all items in the list from top to bottom. (so each item now has a thumb)

4. scrolling back up list will produce the error before I get to the top of the list.

This only happens when using IThumbnail and not when using the normal Thumbnail, although if I use the normal thumbnail with normal images (not IImage), the images don't look as nice. Anyone else have this?
[Windows Mobile Software Development] KUV1977:
No, every item has a unique name. I have just changed the example here a bit. I think using the same names over and over again throws an error in the list.

My project runs ok in 1.3. I get that other crash that i have described before, which totally disapears if i disable thumbs and button animations, but never this new error.

The NullReference-Problem has just arisen while trying out 1.35.

I will try removing both things and see if it works...
[Windows Mobile Software Development] Archer:
Ah fair enough. It may well be something introduced with 1.35 then, which is a shame. Let's wait and see what Ed has to say about it then.
[Windows Mobile Software Development] JacE25:
Could someone confirm me that my problem also occurs at others?
[Windows Mobile Software Development] Archer:
Yes mate - I just tried it and get the same result.

Also (note for eboelzner), I'm also still getting "All list items must have a unique name"
[Windows Mobile Software Development] eboelzner:
I actually fix part of the issue... the text should no longer be displayed in the right image part of the panel... You can test that in the demo app by placing a long text string in the primary or seconday text property...

BTW: v1.35 was only a test release for localization, 12/24 hr datetime, etc... the official new release will be v1.4
[Windows Mobile Software Development] eboelzner:
Thanks... I will look into both this evening... that is why v1.35 was put up before an "official" release... :)

Thanks to ALL... for the feedback and support! I am striving to make this work!
[Windows Mobile Software Development] eboelzner:
Ok... did some initial review...

1) the Microsoft native code that allows AlphaBlending creates an IImage object... which is just a Interop wrapper around a COM object. There was never, until recently, a way to decrement the object counter to actually indicate to the OS to release all the COM objects created with IImage. It seems in my hast to manage the memory more efficiently, I must be decrementing IImage counters multiple times in a few areas... the combo issue, etc...

I will correct the issue and post a v1.36 DLL later this evening...

2) for those who have specific bugs that I have not addressed... please feel free to PM me with your issue, and bug code sample if applicable. This will allow me to address them asap.

3) John, I made sure that the panelItem "New" function had the ability to create a unique name if you choose not to use the overloaded method and privide one... THe "increment" part of the unique name creation must not be working properly... sorry, I will fix this for v1.36 also!!!

Trust me guys... THis is not a small SDK by any means... and I take 110% pride in my released code!!! Trust me! LOL :) I am OCD about it!
[Windows Mobile Software Development] Nixeus:
ooooOo really ?
[Windows Mobile Software Development] boffi:
SenseComboControl

I’m using VS 2008 (Basic) and with standard ComboBox this work

ComboBox1.Items.Add("item 1")

i Can’t get it to work with "SenseComboControl"

how can i add a item to it?
[Windows Mobile Software Development] Archer:
Ed - I think we all realise how massive this project is, and I'm sure I speak for everyone on here when I say you're doing a brilliant job! You're doing sterling work mate, and I know we all wait for updates with baited breath!
[Windows Mobile Software Development] eboelzner:
Found the issue... fixed in v1.36
[Windows Mobile Software Development] czbenson:
hi ,sensesdk is awesome ,wonderful ,but just without multiline textbox. could you add it after ?

and another question ,can you tell me how to make the form transparent just like you SenseAboutBox ??

thx..
[Windows Mobile Software Development] cnzqy1:
Translation to: Chinese Simplified

CultureInfo String: zh-CN/zh-CHS

cancel=取消

hour=时

ignore=忽略

minute=分

no=否

off=关

ok=确定

on=关

retry=重试

set=设置

yes=是
[Windows Mobile Software Development] mike3000c:
Traditional Chinese translation

Even i can't found any one as it is under the cultureinfo list, but i think it will be useful if you need.

Translation To: Traditional Chinese

CultureInfo String (if known): it should be same to all (zh-TW / zh-MO / zh-HK / zh-CHT)

Cancel = 取消

Hour = 時

Ignore = 忽略

Minute = 分

No = 否

Off = 關

Ok= 確定

On = 開

Retry = 重試

Set = 設定

Yes = 是
[Windows Mobile Software Development] vers2:
ITranslucentForm myForm = new ITranslucentForm();
myForm.ShowDialog();
[Windows Mobile Software Development] meltwater:
I second this, it's an excellent piece of work and a magnificent addition to the m$ effort. Imagine how nice windows mobile would have been if we had something as nice as this from day one!
[Windows Mobile Software Development] char:
Small correction for cs-CZ posted below:

Should be:

<?xml version="1.0" encoding="utf-8" ?>
<cultures>
<cs-CZ cancel="Zruš" hour="Hodina" ignore="Ignoruj" minute="Minuta" no="Ne" off="Vyp" ok="OK" on="Zap" retry="Opakuj" set="Nastav" yes="Ano"></cs-CZ>
</cultures>

ChAr
[Windows Mobile Software Development] czbenson:
thx very much,guy .
[Windows Mobile Software Development] Mikenif:
Heres the Dutch translation

<nl-NL cancel="Annuleren" hour="Uur" ignore="Negeren" minute="Minuut" no="Nee" off="Uit" ok="OK" on="Aan" retry="Opnieuw" set="Instellen" yes="Ja"></nl-NL>

Am i able to use this in 1.35 or do i have to wait for 1.4?
[Windows Mobile Software Development] TeDeV:
here is the correction for the greek translation

<el-GR cancel="Άκυρο" hour="Ώρα" ignore="Άκυρο" minute="Λεπτά" no="Όχι" off="Κλειστό" ok="OK" on="Ανοιχτό" retry="Επανάληψη" set="Αποδοχή" yes="Ναί"></el-GR>
[Windows Mobile Software Development] ng-gdata:
I have a question is the de-DE translation used for other German speaking countries like Austria or Switzerland as well?

here is a list of all German speaking countries with the respective LCID:

German - Germany	0407	1031
German - Austria	0c07	3079
German - Liechtenstein	1407	5127
German - Luxembourg	1007	4103
German - Switzerland	0807	2055
[Windows Mobile Software Development] mamirix:
Translation to Arabic

Translation to: Arabic

CultureInfo String: ar-SA

cancel=إلغاء

hour=ساعة

ignore=إهمال

minute=دقيقة

no=لا

off=تعطيل

ok=موافق

on=تشغيل

retry=محاولة

set=تثبيت

yes=نعم
[Windows Mobile Software Development] JacE25:
If I have understood you correctly, you have nearly the same problem as me.

You could open the SensepanelComboitem only one time soon as it is in a sub-list(SensePanelMoreItem), if you open it a second time, the list is white and empty, or you'll get a exception.

This bug will be fixed in version 1.4
[Windows Mobile Software Development] wesch00:
No I don't think so that it is the same problem.

I can open the SensePanelComboItem more then once without any error. The error only occurs, when the SenseListControl is cleared or modified (one item removed). If the listControl.Clear(); is commented it out, the app works. Only the text of the second combo is not updated when the selection of the first is changed.

It should be ensured if it is the same problem or not. Since I'm in allmaost every form clearing the list control (I use the list control in dynamic way, the displayed items are fetched from a database), it crashes in my app in allmost every form even if there are no ComboBoxItems on it.
[Windows Mobile Software Development] eboelzner:
v1.36 up for testing...

Ok fellow developers... v1.36 is up for testing!

There are some major changes to some of the underlying code:

All panel items that have a thumbnail will request the IImage size upon the first draw, then caches the values until replacing the IImage or disposing of the object. This should eliminate the overhead of the COM layer of the OS and equate to faster draws, less OOM exceptions, and... larger lists!!! If this works, I will use this methodology in the other layers... Please consider using the same ideas in your handling of IImage COM objects. There is an exposed method to release am IImage.

All internal IImage objects are destroyed immediately upon drawing!

The underlying collection of the List control used to be a generic LIST<T> object. While this worked ok... the ability to internally locate, aggregate, and maintain the list was somewhat slow on some functions... so... I created a hybrid LISTEx<T, T> This allows me to locate an item internally, and externally, (by Name, Index, or object) without doing ANY enumerating!

ComboBox internal list changed form LIST<T> to BINDINGLIST<T>

Alot of other updates/changes/fixes...

So... even though I have done regression testing, please test ALL of your app functions and let me know the GOOD and the BAD... This is a major step on the way to v1.4...

Also... I never heard any feedback about how fluid the new list scrolls... Is it acceptable now???

Regards,

Ed
[Windows Mobile Software Development] KUV1977:
The {NullReferenceExceptions} error is certainly gone. But i still get my known error. Unfortunately i fail to see, what i could do differently. Sometimes upon clearing the list and drawing a new one the app will crash with this:

at StedySoft.SenseSDK.SensePanelItem._getImageSize()
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()

The problem is completely gone if i am not using thumbs and buttonanimations.

I have attached the demo app that reloads its own list upon click to demonstrate the effect. My real app will - of course - load different lists per click. I have just chosen to edit the official demo to minimzie other mistakes i might have made. Could someone please check it out and see if he/she can fix it or find the problem, or is it not possible to clear lists multiple times? Do i have to use loops to remove and add items? Or so i simply have to call another command after clearing lists? Thanx!

EDIT: I just checked and drew my big list with thumbs directly in the first list creation and it also crashes. However my big list has about 40 thumbs loaded from file and it crashes. The appended sample project shows 1000 items all with the same iimg from resource and it takes a while to crash...

EDIT2: I didn't realize that IImage was not part of your SDK but existed before. Also i did not realize that i could load a different kind of thumbnail. Now i am using a default image and the lists seem to work without fail so far. However, the transparency of the default images is horrible. So my question is probably more general and not really related to the SDK itself. Still i would appreciate any help with this IImage-Problem.

EDIT3: I just copied the app to my phone (HD2). The scrolling seems to have gotten a lot nicer/smoother. There is, however, still this small thing with being able to move the lists out of the screen without it bouncing back, if you move your finger diagonally from right to left and up or down. It seems like the app didn't realize that the list has left screen-space. I noticed that in my app, the mobileconnections app and also the cookies home tab settings app, so i guess it is a general SDK problem. I really don't mind but i suppose you will want to have it as flawless as possible, that's why i post it.
[Windows Mobile Software Development] wesch00:
The issue I postet here some entries above, seems to be gone with 1.36.

Thx.
[Windows Mobile Software Development] chikoo:
Pardon my ignorance, but what is this senseSDK for?

Can you develop new WM applications using it?
[Windows Mobile Software Development] Nixeus:
On the toolbox, i only see " pointer" and "myPanelButton" for the Sense Controls..:(
[Windows Mobile Software Development] KUV1977:
Yes, you can create all sorts of apps that look similar to Sense-Default-Apps.
[Windows Mobile Software Development] Sl4sher:
1.36 is working well for me, but I still need to try your time controls, they should be perfect for me now.

Sensepanelitem still doesn't size right, am I doing something wrong? Check out the attachment.
[Windows Mobile Software Development] KUV1977:
I have that too. I guess it was only meant to be one primary line and one secondary one and the text gets centered for that height. It would be great if it was centered for the whole text height or if one could influence the placement - or can one already?
[Windows Mobile Software Development] Sl4sher:
I'd love 1 line for the Primary Text as it won't take line breaks IIRC and the rest filled with secondary text. Of if we could control the size of both would be cool too.
[Windows Mobile Software Development] JacE25:
Thx for the update ed,

looks like my issue is resolved, thank you!

Another suggestion:

It would be great if you could also use the SensePanelTimeItem for entering floating point numbers, for example 1.26 miles, or 4.56 m. Would it be possible to incorporate something like the next version?There would basically not so much changes. Something like that would certainly be very convenient.
[Windows Mobile Software Development] meltwater:
Ed,

I'm hoping to feature your SDK in the next release of the facebook tab, I hope my software skills are good enough to do your hardwork justice. Also I shall try to ensure recognition is included and passed on where-ever possible.

At the moment, long way off from release and will take me some time to learn how to use your controls, but worth it to leave behind the ms forms.

Excellent work!
[Windows Mobile Software Development] TeDeV:
hey eboelzner, can you plz add a feature to have the Text headers at the left of the textbox and not above them like an option?

they take too much space. i would like to have an option to choose if i want it on top or on the left.

thank you
[Windows Mobile Software Development] eboelzner:
Will do... what do you suggest for a maximum width when placed on the left side... 30% ? 50% ?
[Windows Mobile Software Development] eboelzner:
Thanks for the kind words... I look forward to your new release as I use your excellent Facebook tab in my ROMS for the Imagio and TP2!

Let me return the favor and offer my testing services...
[Windows Mobile Software Development] eboelzner:
I understand the issue now... I will look into adding properties to allow you to position the Primary and Secondary text...
[Windows Mobile Software Development] TeDeV:
how about that we can set it manually? for example i can have a big header text, and a very small textbox. or the other way around. so i guess i need to be able to set the width to both of them
[Windows Mobile Software Development] Skadork:
Wonderful!!!
[Windows Mobile Software Development] eboelzner:
Got it working... hope to have v1.37 out soon so you can test!
[Windows Mobile Software Development] eboelzner:
Well... When the layout style is set to LabelLeft, I will honor the LabelWidth property, then I will set the textbox width as follows...

Textbox.Width = List.Width - Label.Width

for starters...
[Windows Mobile Software Development] shinyzhu:
WOW! this is what i want.
[Windows Mobile Software Development] madindehead:
This looks excellent. I want to develop a little app for my phone, just as a bit of fun really. I'm a bit confused however how to use it within an application that I am writing. Sorry to sound stupid, but could anyone explain how to include it in a project (and what language I should write in, C++ or C#?). Where should this SDK be copied to on my system also? Does it need to be within the Visual Studio folder? I am going to hopefully use this in an app that I hope to write over the summer (I need something to do until September).
[Windows Mobile Software Development] mike3000c:
excellent SDK for wm.

i had to work with this SDK to develop my first wm program. your demo source is so nice for starter.

can i have some sample of SenseAPIs.SenseImage class.

as i using SenseAPIs.SenseImage.GetIImageFromResource("qvga_regedit") or SenseAPIs.SenseImage.GetIImageFromResource("SmartDeviceProject2.Resources.qvga_regedit.png") also get the error of resource not find.

i had embed the resource on the project. By using "_getIImageFromResource" method is successful to get the image.

string name = "qvga_regedit"; //change to "SmartDeviceProject2.Resources.qvga_regedit.png" also not work
SensePanelItem AboutContent = new SensePanelItem();
AboutContent.IThumbnail = SenseAPIs.SenseImage.GetIImageFromResource(name);
//successful call below:
AboutContent.IThumbnail = this._getIImageFromResource(this._isVGA() ? "vga_regedit" : "qvga_regedit");
[Windows Mobile Software Development] Archer:
I'll pm you later mate.
[Windows Mobile Software Development] KUV1977:
If you download it, there is a TXT File that describes what you have to do to use it.
[Windows Mobile Software Development] madindehead:
Thanks john :)
[Windows Mobile Software Development] leen15:
can you send me the same?