yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Software Development] wesch00:
You cannot assign a context menu to the item, but to the SenseListControl. In OnPopup just determine the selected item and hide/show the appropriate menu items.
[Windows Mobile Software Development] czbenson:
awesome ,thx very much ...
[Windows Mobile Software Development] char:
I'm not sure that this is the problem. I used Reflector on other Microsoft assemblies in 3.5 cf DesignerMetadata directory and they too reference 2.0 cf :confused: So the problem lies somewhere else...

ChAr
[Windows Mobile Software Development] brandi:
Hey, I am developing a Tool with this awesome SDK, which loads some Data from Inet resources. The Resrouces are in German, and the encoding is set to ascii. Is there any way the components could show the german "umlaute" ?

greetz.
[Windows Mobile Software Development] mkbm:
Hi,

thanks for the hint.

Now I can access everything I want.

Now I am having a problem with adding items dynamic to a moreitem.

I have added a onshowchildren event.

And I can add an item. Than I make a Refresh for the base SenseListCtrl but the item doesn´t appear after that.

I have to go back and enter the moreitem again to see the new added item.

Is there a way how I can update this without going one back?
[Windows Mobile Software Development] TeDeV:
did u try the beginUpdate and endUpdate?
[Windows Mobile Software Development] mkbm:
Thanks this works fine.

But right now I am having a big problem with using more forms with the SenseListCtrl.

I have one main form with a SenseListCtrl and one SensePanelItem.

When I click on the item I want to open a new form which also have a SenseListCtrl without any items.

If I do this 15-20 times I get a "OutOfMemoryException".

I already have tried to use Dispose on the SenseListCtrl before closing the new form but nothing changed.

This only happens if I add a SenseListCtrl to the second form.
[Windows Mobile Software Development] mkbm:
I have to add that I noticed that adding dynamic a item to a moreitem with the beginupdate and endupdate method only works if I use the OnShowChildren event.

If I want to use this on the OnHideChildren item the refresh is not done right after adding the item.

My Example:

One SenseListCtrl with one MoreItem. This MoreItem has another MoreItem and a PanelItem. And the last one too.

SenseListCtrl->MoreItem1->MoreItem2->MoreItem3

MoreItem2:

->ItemPanel2_1

MoreItem3:

->ItemPanel3_1

Now I have a OnClickEvent for the ItemPanel3. Here I want to add a ItemPanel (with BeginUpdate and EndUpdate) to MoreItem2. If I do this on the OnHideChildren I have to go back to the MoreItem1 and enter MoreItem2 again to see the new Item.
[Windows Mobile Software Development] TeDeV:
can you give me a sample code? so i can run it?
[Windows Mobile Software Development] mkbm:
Hi,

here is a example where I am only adding a Divider to the first MoreItem in runtime.

private void frmListDemo_Load(object sender, EventArgs e) {
// set the list event handlers
this.senseListCtrl.OnShowItemChildren += new SenseListControl.ShowItemChildrenHandler(OnShowItemChildren);
this.senseListCtrl.OnHideItemChildren += new SenseListControl.HideItemChildrenHandler(OnHideItemChildren);

// set the list scroll fluidness
this.senseListCtrl.Velocity = .65f;

// turn off UI updating
this.senseListCtrl.BeginUpdate();

// add SensePanelMoreItem(s)
this.senseListCtrl.AddItem(new StedySoft.SenseSDK.SensePanelDividerItem("Panel Item with Radio Sub Items"));
for (int i = 0; i <= 0; i++) {
StedySoft.SenseSDK.SensePanelMoreItem itmMore = new StedySoft.SenseSDK.SensePanelMoreItem();
itmMore.ButtonAnimation = this._buttonAnimation;
itmMore.ProcessEntireButton = this._processEntireButton;
itmMore.PrimaryText = "Primary Text for item " + i.ToString();
itmMore.Tag = "MoreItem1";
// add SensePanelRadioItem(s) in Child Container
if (i.Equals(0)) {
for (int t = 0; t <= 0; t++)
{
StedySoft.SenseSDK.SensePanelMoreItem itmMore1 = new StedySoft.SenseSDK.SensePanelMoreItem();
itmMore1.ButtonAnimation = this._buttonAnimation;
itmMore1.ProcessEntireButton = this._processEntireButton;
itmMore1.PrimaryText = "Primary Text for item " + t.ToString();
itmMore1.Tag = "MoreItem2";
// add SensePanelRadioItem(s) in Child Container
if (t.Equals(0))
{
itmMore1.SecondaryText = "Current selection is sub-item #1";

}
// add any/mixed SensePanelItem(s) in Child Container

itmMore1.OnClick += new SensePanelMoreItem.ClickEventHandler(OnClickGeneric);
itmMore.Children.Add(itmMore1);
}
}
// add any/mixed SensePanelItem(s) in Child Container

itmMore.OnClick += new SensePanelMoreItem.ClickEventHandler(OnClickGeneric);
this.senseListCtrl.AddItem(itmMore);
}
// we are done so turn on UI updating
this.senseListCtrl.EndUpdate();

// enable Tap n' Hold & auto SIP for SensePanelTextboxItem(s)
SIP.Enable(this.senseListCtrl.Handle);
this.sip.EnabledChanged += new EventHandler(sip_EnabledChanged);
}

void OnShowItemChildren(SenseListControl.ISenseListItem Sender) {
mnuMenu.Enabled = false;
mnuMenu.Text = "";
mnuExit.Text = "Back";
}

void OnHideItemChildren(SenseListControl.ISenseListItem Sender) {
if (Sender.Tag.ToString() == "MoreItem1")
{
mnuMenu.Enabled = true;
mnuMenu.Text = "Menu";
mnuExit.Text = "Exit";
}
if (Sender.Tag.ToString() == "MoreItem2")
{
this.senseListCtrl.BeginUpdate();
this.senseListCtrl.ParentFocusedItem.Children.Add(new StedySoft.SenseSDK.SensePanelDividerItem("Text"));
this.senseListCtrl.EndUpdate();
}
//
}

If you open the first MoreItem you will see a second one. Than you have to open the second MoreItem and klick on "Back". Now the Divider Item is added to the first MoreItem. But you will only see it if you go back to the main SenseList and open the first MoreItem again.
[Windows Mobile Software Development] Sl4sher:
I'm having a problem with the way thumbnails render, take a look at the attached pic.

It looks like the bottom right-most pixel determines transparency? This happens with jpeg and png.
[Windows Mobile Software Development] KUV1977:
Hi there. I am new to mobile development and i found this SDK and i think it is really great.

I have just a couple of questions:

Is there an easy way to change the font size within the elements, or to make the Items big/high enough so i can use two lines of secondary text?

Also i would need an element that would be like the ItemMore Element but with thumb and a thumb element with 2 additional text elements that are right aligned or even a thumb element with 2 additional icons on the right.

I guess it would be easy to just build a new control inheriting from the old ones but i am really just a beginner and don't know where to start. So i would really appreciate someone pointing me in the right direction.
[Windows Mobile Software Development] ArtifexAlpha:
Which property should I use? List.FocusedItem always returns null. Is this the right approach?
[Windows Mobile Software Development] KUV1977:
Hey guys. How would i load an image from the file system into the thumbnails instead of using embedded images? My app downloads a couple of images based on user-settings and i can therefore not embed them from the start.
[Windows Mobile Software Development] Wareczek:
It's not enought. If list have only 3 positions, ContextMenu fired on empty place under positions. It would be nice to see possibility to add ContextMenu to list items.
[Windows Mobile Software Development] {SBR}_L3GION:
for some reason I still cant get this sdk to work with visual studio. I have downloaded the latest version and followed directions in the readme and still no success. any other suggestions?
[Windows Mobile Software Development] legrorelou:
@L3GION :

I have a suggestion : wait a little more (as many of us ;) do). Eboelzner seems to have found the solution (and someone else too if I remember the last posts).

btw, thanks for your work Eboelzner and thanks to all participating people.
[Windows Mobile Software Development] sabamimi:
+1

(Waiting politely and with great expectations)
[Windows Mobile Software Development] Jal84:
Hi guys

Does it work with SharpDevelop ?
[Windows Mobile Software Development] meltwater:
See my previous post, you may be able to use it manually.
[Windows Mobile Software Development] wenwlg:
Oh my god!what a nice design
[Windows Mobile Software Development] harpyboy:
Using this SDK for a personal project. Great work!!!!

I'm also looking for possibility to change the ListControl and PanelDividerItem background color.......
[Windows Mobile Software Development] char:
Hi,

:confused: Is there any time estimate for releasing next version? What about publishing library source code (for non-commercial purposes)?

Have anybody been successful using the library in design time?

ChAr
[Windows Mobile Software Development] francarl:
thank you eboelzner for your amazing sensesdk.

I'm trying to port my htc menu loader/msgbox replacement from ManilaSDK to your framework (much better, btw). But I have one problem. When I try to open a form from your demo project, this is the result:

How can I resolve OutOfMemory problem? I've followed all steps from your first post. Visual Studio version is 2008 with SP1 and have been resetted from command line according to your indication.

thank you in advance

regards
[Windows Mobile Software Development] KUV1977:
I always get the same errors, but click them away and can den work in the code-view. It's little weired but otherwise works.

Can someone please tell me how to load thumbnails from file - not from resource. I know it might be a c# basic question not really SDK related, but i am really new to c# and can't figure it out. Thanks!
[Windows Mobile Software Development] francarl:
Of course I do the same, but I prefer to have full IDE support!
[Windows Mobile Software Development] djbello:
Designer support...

@eboelzner: I think I have a possible solution to the components remaining grayed out in the toolbox in VS2008.

As stated here (blog.opennetcf.com/ctacke/2008/11/26/Studio08sToolboxAndCompactFrameworkAssemblies.aspx), assemblies that are build against the 2.0 framework do not show up when writing against the 3.5 framework.

I noticed that StedySoft.SenseSDK.dll references mscorlib for both the 2.0 as the 3.5 framework. I am guessing that removing the 2.0 mscorlib dependency might remove the problem.

I cannot test this myself as the source is not available and the licence does not allow reverse engineering the obfuscated StedySoft.SenseSDK.dll assembly ;)
[Windows Mobile Software Development] eboelzner:
The SDK requires that your application use .net 3.5! I know that some of you use .net 2.0 to use the toolbox connections, then change to .net 3.5... but let me make this perfectly clear...

The SDK uses MS drawing methods that are only available in .net 3.5... therefor the 3.5 requirement... and the mem exception while trying to paint...

I will be releasing a new version in a day or so... new goodies and hopefully some help for those who still have the greyed out toolbox icons...
[Windows Mobile Software Development] hanoi_toulouse:
i cant manage to show sdk on the toolbox, would be ready to donate but dont know how to use it in vb.net, kindly give me some code please, thanks.
[Windows Mobile Software Development] Reaper:
hi all,

Anybody find a way to speed up the "button effect" of list items? So when someone clicks a listitem they do not have to hold it for more dan half a second before the button highlights? Great controls by the way!!
[Windows Mobile Software Development] TeDeV:
well my "problem" with the list, is that it is too slow when you move your finger up and down.

plus i have to press the list much harder in order for it to realise that i want to scroll.

maybe i am doing something wrong? what is velocity about?
[Windows Mobile Software Development] Archer:
There isn't a way to speed up the visual response, and I don't know if eboelzner is fixing that with this up-coming release, but I can say for sure that it is only a visual issue. Any event handlers are fired whether the control is highlighted or not. I too would like it to highlight quicker, but I've not had 1 user even comment on (out of nearly 100,000 downloads) so I'm guessing it's not a big deal to users ;)

I can't see why you have to press harder to get the list to scroll. That sounds very strange as I seriously doubt that the list has anything in there that alters your screen sensitivity. I guess it will run slower on some devices and faster on others. I'm using a HD2 and it's as smooth as anything. What phone do you have?

As for velocity, it's to do with the deceleration after you let go. It looks to me to be related to a curve of deceleration rates, rather than a straight line. (Picture a graph with deceleration rate as the Y axis and the velocity property as the X axis, and a quarter circle arc that goes from high up in the Y axis to a way along in the X axis. It's difficult to explain, but that's what it seems to be.)

I'm setting it to values between 0.8F and 0.9F, but I've got long pages of controls and I like the idea of being able to scroll the whole page with a quick flick and release. Anything below about 0.5F can get pretty unpleasant as it just stops when you let go. I like it to slide for a bit :)

Just make sure to keep the value < 1. It doesn't seem to accelerate above 1, but it doesn't stop moving! How to bug your users lol ;)
[Windows Mobile Software Development] Archer:
Actually, I just found a bug whilst playing with velocity. Any value >= 1 causes the application to keep running after you close it. I guess the control is still scrolling and this keeps the process alive. It was chewing up CPU and I had to use a task manager to kill the process.
[Windows Mobile Software Development] TeDeV:
the sensitivity is really bad on the list. when i slide my finger just a little bit up or down on manilla, it just reacts nicely. with this list, i need to touch it for a bit and then scroll.
[Windows Mobile Software Development] JacE25:
Hi,

first I would like to thank you for this great SDK, after some practice working with the sdk isnt as difficult as thought first, although it has no designer support

One Question:

Is it possible to change the "touch"slide event on a SensePanelMoreItem to the same as the click Event?

Sorry for my poor english :D

I need something like OnFocus, but i couldnt get the given OnGotFocus working

edit edit edit :D

My Problem is:

I have a navigation between 4 "Windows". I have one Senselist with SensePanelMoreItems, which are the "windows" or tabs, but in the second window you will see a Panel with a Picture. On Startup the picturepanel is hidden. So now i need a method for showing and hiding my panel at the right time (when the user touches the SensePanelMoreItem)

damn:

I've found it: OnShowItemChilden...
[Windows Mobile Software Development] Archer:
Actually, when you put it like that, I do get the same effect.

Basically, if I flick the screen it only works about 20% of the time, but if I put my finger on the screen and then move it, it works 100% of the time.

Again, I'm sure this will be exaggerated on slower devices which is why I'd not noticed it myself till now. Thanks a lot mate. It's gonna bug me now I know about it ;)
[Windows Mobile Software Development] Reaper:
Thnx for the reply johncmolyneux,

It is definately not a big issue, I just thought there might have been some refresh value somewhere I could change. I had not noticed the scrolling issue either, and will continue to pretend not to notice it, as it will be bug me to if I "know" :P.
[Windows Mobile Software Development] h0er:
When I add a new SenseLabelControl and give it text and such (even a backcolor) it still stays transparant (i.e. I can see my home screen through the label.).

Does anybody know how to fix this?

Thanks in advance!
[Windows Mobile Software Development] eboelzner:
Thanks John... I will fix this for then next release this weekend...

ALSO... The list will not scroll unless you move your finger 20 pixels (VGA, 10 QVGA)... this allows for a solid click event because if this was not implemented, a simple attempted click would move the list... I can externalize the value so developers can adjust... ????

What do you think?
[Windows Mobile Software Development] eboelzner:
See my post above...
[Windows Mobile Software Development] Reaper:
Hi eboelzner,

I was wondering if it is possible to change the alignment of the primarytext, secondarytext and thumbnail of a listitem? The reason I ask, because if you increase the height of a listitem it aligns the stuff in the middle, it might be handy if you could align it to the top of the list item. I do not know if this is easy to implement, if not just ignore me. I appreciate your work on these controls very much!
[Windows Mobile Software Development] TeDeV:
plz do that. it is too hard to scroll, and it shouldn't be. i would like it to be as smooth as the htc home response if possible

thanks.

PS. did u have any thoughts for a numericbox with decimals? (and more numbers than 99?)
[Windows Mobile Software Development] Archer:
That makes sense, and I think developers would definitely prefer to have some control over that threshold. Alternatively (or possibly as well as) would it be possible to make it so that the list always scrolls, but there's a threshold for determining whether it was a click or a scroll? For example, if the list is scrolled 5 pixels, it was a click, but if it was scrolled 50 pixels then it was a scroll. I think that would make it more like the native sense controls, but that's obviously just my opinion.

What do you think?
[Windows Mobile Software Development] Skadork:
I noticed that scrolling wouldn't work very well if I put all the components in the designer code. It would only work well when put like the demo and in the page load method....

Also, can you see about making controls like the textbox bindable? It would really help out development of data driven programs.
[Windows Mobile Software Development] JacE25:
Hi,

does anybody know whether it is possible to use in the nested SensePanelMoreItem SIP listener? If so, how i have to do?

I built a tab-like navigation, where the last tab contains 2 Sensepaneltextboxes. Now I would like that the SIP pops up when one of these elements gets Focus.

The only thing I can do, is that the SIP will open when a textbox of the first page gets focus.
[Windows Mobile Software Development] eboelzner:
So... I have exposed all properties of the scroll process... velocity, acceleration, springback, minimum movement, and thread speed...

By doing so, I have come VERY close to duplicating the way HTC lists scroll in touch, movement, list fluidness, and bounce back...

I think you guys will like this feel now!!!

I will release a pre-release of v1.3 later today for testing since there have been major changes, fixes, and additions to the SDK... I would like some volunteers for testing...

Ed
[Windows Mobile Software Development] ng-gdata:
Is it possible that OnClick does not work on the SensePanelCheckBoxItem?

edit: will try it asap. has the designtime been fixed?
[Windows Mobile Software Development] TeDeV:
count me in for the testing.
[Windows Mobile Software Development] cubush:
count me in for the testing too
[Windows Mobile Software Development] Wareczek:
I would love to take a look new version :)
[Windows Mobile Software Development] wesch00:
I will also test it, especially the calander controls.
[Windows Mobile Software Development] alto:
Another nice to have option will be the option to control the SensePanelMoreItem right image (the arrow).
[Windows Mobile Software Development] TeDeV:
+1 on that
[Windows Mobile Software Development] Archer:
Wow! That's some nice work! I'm unfortunately away this weekend so won't get chance to play, but I'll definitely be having a go next week.

Cheers Ed.
[Windows Mobile Software Development] TeDeV:
can we have a picturebox in the sense list?
[Windows Mobile Software Development] eboelzner:
I agree!! This will be included in v1.4... thanks!
[Windows Mobile Software Development] eboelzner:
Sounds interesting... how do you see this working... just putting a thumbnail into the panel item and expanding the size to a new pane wwhen clicked?
[Windows Mobile Software Development] eboelzner:
New release...

Version 1.3 is up... hope this addresses most of your issues, needs and wants!!!

Thanks for the feedback, encouragement, and ideas!!!

Have a great weekend to all!!
[Windows Mobile Software Development] eboelzner:
A special thanks to you for your datebox example... it included some excellent code to draw the individual days... very nice indeed!!!

Thanks! Ed
[Windows Mobile Software Development] eboelzner:
I think I will use your request to develop an example of writing your own panel item... this will fullfill your needs and others that want to author their own panel items...
[Windows Mobile Software Development] eboelzner:
This is an issue with the underlying OS... if you call the SIP init code before all textboxes have been created, you miss being included...

But, if you call the SIP code a second time, the OS crashes HARD!!!

I am currently working on this issue!!! Hopefully next version!
[Windows Mobile Software Development] eboelzner:
Do you have a small sample of your code to send me... I cannot reproduce this locally...
[Windows Mobile Software Development] legrorelou:
yeah !

testing it now ! thanks eboelzner.
[Windows Mobile Software Development] Wareczek:
About SensePanelDateTimeItem:

1. I need ability to choose only date, or time. Maybe some property to hide them ?

2. In Poland we have 24h time system. What you think about option to take time 0-24 hours without PM/AM ?
[Windows Mobile Software Development] Sl4sher:
I still can't seem to remove an item from a SenseList, though I can make them invisible which is real nice. RemoveItem seems to do nothing, and disposing the item causes a nullrefereceexception.

Also sensepanelitems still allocate the same amount of space for primary text and for secondary text, so you get a lot of blank space above primarytext when setting height. Also secondary text still doesn't wrap when primary text isn't set.

I haven't tried the time controls but it sounds like time spans aren't in this version, any chance of one getting made? A 24-hour clock like ware wanted would serve the same purpose I think.

It would also be cool if I could add line breaks to button text.

Please let me know if I'm doing something wrong.
[Windows Mobile Software Development] ng-gdata:
Yea, the option to localize the messageboxbuttons, etc. would be great.

edit: Out Of Memory exception is still occuring.
[Windows Mobile Software Development] czbenson:
good stuff,thx .
[Windows Mobile Software Development] TeDeV:
well for start, how about an item where you can set a picturebox and also set the X,Y you want the picturebox to be inside the item and of course the size. (of course it needs event handlers).

after that, the control needs to become better, so that we can have Primary Text, Secondary Text where we want them inside that control item with the picturebox.
[Windows Mobile Software Development] Reaper:
Thank you very much!. That would be great.
[Windows Mobile Software Development] eboelzner:
Can you send me a sample code that shows the exception? Thanks...
[Windows Mobile Software Development] eboelzner:
I will check the RemoveItem... are you removing by Name, Index, or Object Ref???

24 hr clock / and 24 hr support... Agreed! next release... sorry! Should have thought about that!

As far as the text on the panel, I thought it was positioning and wrapping ok... I will take another look.

I am going to write a custom panel item and publish the code to show how... I intend to incorporate your text panel requests...
[Windows Mobile Software Development] Sl4sher:
I tried removing by all three, none seemed to work.

Thanks a lot dude!
[Windows Mobile Software Development] eboelzner:
General Request...

I have a general request...

Since I have access to a host of WWE (QVGA, VGA, WVGA) devices, this allows me to code for all the resolutions...

BUT... I only have US English OS... can some of you post some screen shots of the HTC custom controls, UI, etc. that shows the 24hr input, and other different UI's from your OS language?

This would assist me in adding your language support...

Thanks,

Ed