yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Software Development] VPAFan:
MessageBox to big

Hi eboelzner,

there is an issue with the MessageBox.

Sense.SenseMessageBox.Show("Message aaa bbb ccc ddd eee fff Line 2 Message aaa bbb ccc ddd eee Line 3", "Caption aaa bbb ccc ddd", Sense.SenseMessageBox.SenseMessageBoxButtons.OK);

this Code see picture_1.

Sense.SenseMessageBox.Show("Message aaa bbb ccc ddd eee fff\r\nLine 2 Message aaa bbb ccc ddd eee\r\nLine 3", "Caption aaa bbb ccc ddd", Sense.SenseMessageBox.SenseMessageBoxButtons.OK);

this Code see picture_2.

I want to have some linebreaks without such a big box.

greetz
[Windows Mobile Software Development] meltwater:
Just having a browse around, and saw this!

Looks very nice, good work.

I may attempt to use this later on with the facebook tab or whatever tab stuff I move on to. At the moment, my windows mobile app skills are limited (learning at the moment), but would be interesting to see if anyone noticed the transition from sense to win mob and back again...keep it up!
[Windows Mobile Software Development] TeDeV:
any news on the designer problem? i am a visual type of guy.
[Windows Mobile Software Development] Wareczek:
I've discovered two bugs in this SDK. Please check example sources:

1. Dispose method not working properly on SenseTextboxControl. Same situation as there.

SmartDeviceProject1-textbox.zip (open > back > close program)

2. Clear method clears items in SensePanelComboItem but there is problem with drawing them (there are still in this list).

SmartDeviceProject1-droplist.zip (open > back > open)
[Windows Mobile Software Development] wesch00:
@2 I recognised the same problem. What I do as a work arround, I separated instantiating the panel items from adding them to the SenseListControl. So I di instantiate them only once, but when I want to update the items of the combo, I clear the SenseListControl at all, build up the items for the combos and adding all items again into the SenseListControl.

This works as long as the issue is there.
[Windows Mobile Software Development] wesch00:
Here is my first approach for a DateTimePanelItem.

The panel item has two buttons showing the date and the time (the lowest item in the first image). Currently it shows only the date.

When the according button is pressed, a full form dialog opens enabling to enter the date or time.

Currently I have adopted the date selecting control from manila. Some minor text is still missing (the weekdays) and the font does't match manila. But it works allready as the real control.

@eboelzner, if you want to integrate it into the SDK, pm me. It needs some finishing only.
[Windows Mobile Software Development] Skadork:
That's glorious! My next project will be needing something like that!
[Windows Mobile Software Development] meltwater:
Sorry but I think I need some noob help. Totally new to adding SDKs and I am getting the following error when I drag an item from the toolbox.

Warning	1	The referenced component 'System.Core' could not be found.

I've put all the files from "Release Libraries" into the following dir (at first just tried "StedySoft.SenseSDK.PocketPC.asmmeta.dll":

C:\Program Files\Microsoft.NET\SDK\CompactFramework\v3.5\WindowsCE\DesignerMetadata

I then added the tab in the toolbox and browsed to StedySoft.SenseSDK.dll and the tools appear when I open a form. When I drag an item from the toolbox onto a form, I get the above error and the item doesn't appear on the form...

I even tried the reset command and tried again:

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

Sorry I'm new to this so not sure what the error means so difficult to find a solution. Thanks in advance and sorry if I've missed something obvious.

Edit: Noticed my project was CFW2.0 changing this and trying again...ok, so the items appear in the ToolBox for Compact Framework 2.0 but not 3.5...sorry at a loss now.
[Windows Mobile Software Development] ng-gdata:
same here. I simply get an empty rectangle...
[Windows Mobile Software Development] Skadork:
Its a known issue and I believe is being looked at by OP
[Windows Mobile Software Development] Wyatt:
Hi, i've been playing arround with the SDK, is there anyway to wrap a text that is too long to fit on an Item ?
[Windows Mobile Software Development] meltwater:
Thanks, had loads of problems getting the normal SDKs installed originally so I understand how picky visual studio is. Will look forward to using it when I can, excellent work.
[Windows Mobile Software Development] sorien:
@eboelzner any plans to release this sdk as open source?, there are several similar sdk's and and every have props and corns. I don't want to be rude in any way but this community need just one but strong sdk and open sources could help your sdk to become strongest, bugless and full featured in short time.

2 way licensing "Commercial License" and "Open Source License" could even help you to earn some money.

my english is not so good but I hope you know what i mean.
[Windows Mobile Software Development] Sl4sher:
Is this possible in VB.net? I just get unprintable characters for the line breaks.

Edit: NWM, this works but as was mentioned before, both primary text and secondary text must be set. Also, it appears secondary text can only occupy the bottom half of the panelItem no matter the height, ie. if the height is 50 it looks like primary text takes up 25pixels and secondary text starts at the 25th.
[Windows Mobile Software Development] encore27:
Hey eboelzner,

thanks for your hard work with this project.

I've read all the thread but I didn't get the solution for my problem.

I followed all passages to integrate (moved the files in the right folders) the SDK with VS2008, but when I try to add the components in the toolbox browsing to "StedySoft.SenseSDK.dll" it will add them in the toolbox's option in which I can enable them, but when I click OK in the whole toolbox the SenseSDK controls aren't present (either adding a new tab).

Moreover I can open Demo project, viewing actually the form with controls you prepared but again not selectable in the toolbox.

Info on the system: Win7 32bit, VS2008 SP1 with .net framework 3.5 SP1.

P.S. I already tried to reset to default settings with the command line that you provided.

Thanks in advance.

Enrico.
[Windows Mobile Software Development] meltwater:
I wonder if you have the issue as me, the tools appear in a .NET 2 framework project (but of course not much use), but would be interesting to confirm if it's the same for you.
[Windows Mobile Software Development] encore27:
Yes meltwater,

I can confirm that creating a new .NET CF 2.0 project the tools appeared...

I tried in so many ways to fix it with .NET 3.5 but I'm still finding the solution.
[Windows Mobile Software Development] TeDeV:
nice library, four things that i really miss are

1) Name property. (omg where is my name property? i don't want to use tag. Tag is for information people want to keep on a control without showing to the user)

2) Visible property. i want to hide some controls in the sense list, and i can't do it! don't tell me to remove them. i want there right there but not visible.

3) Design mode.... (yes i know that u r looking for a solution there. i am just saying it :-) )

4) i want to be able to add a SenseButton in the SenseList.

question.....

is it possible to have a numericbox with more than 2 digits? (99)
[Windows Mobile Software Development] TeDeV:
can someone help me over this please...

i created an application using this SDK, which uses some dynamically created SenseItems (in a SenseList)which they have sublists with subitems inside them.

the problem is that these subitems, don't have a .parent property, so that they can return me to which SenseItem it belongs.

to make myself more clear...

1)We have a SenseList.

2)In the SenseList we have many SensePanelMoreItems (created dynamically)

3)In those we have many items of different types (which the user edits in order to update back the sql server)

the problem....

i have no idea, how to find out which items, belong to the specific SensePanelMoreItem that the user has chosen, since the items inside this control don't have a .parent property.

there is an .index property, which is just useless.

thanks in advance
[Windows Mobile Software Development] Archer:
I understand what you're saying, but I don't understand why you need to know the parent control. Surely if you've hard-coded the controls then you know what the parent control is.

Also, why do you need to know?
[Windows Mobile Software Development] TeDeV:
in the sublist, i have

1) two NumericItems

2) 1 TextboxItem

3) two OnOffItems

4) 1 PanelItem

i am using the PanelItem as a "Save" button. how would i know, the values of the other items inside the sublist?

and i can't know which is the parent control, since the MoreItems are created dynamically, for each row i read from my sql data reader
[Windows Mobile Software Development] Archer:
I think the main problem here comes from the fact that you're creating things dynamically, so you can't declare them as global (to the class). Using a global array will solve that problem.

Keep an array of the moreitems that you create and then in the list control OnShowItemChildren event, compare the sender to each of them so you can tell from that what page you are on.

I imagine it will still be messy after that, but at least it will work.

(Also, don't forget that the moreitems have a Children property).
[Windows Mobile Software Development] TeDeV:
moreItems have children property, but i want a .parent property :)

i have thought of what u said about keeping thing in global variable, but i am not going to do that. the code will be a joke...

i will need loops, for every single item, until i find what i want (if the list is big, then it is going to take forever). then if i find the item i want using the .tag property (give me back my .name property!), i need to find the values of each control in there (this is not a hard part, but finding them through the list is hard) and then perform my query.

as you understand, this is a no-go solution :-). it needs to get fixed asap.

eboelzner, please add those 2 properties plz.

1) .Name

2) .parent

to make clear why i need .parent for....

when i will press the SensePanelItem, i will get the parent's "index", and then use that "index", to find what children this item has inside. the i will collect data from those subitems and do my job.
[Windows Mobile Software Development] Archer:
But if you do what I suggested then you will always know what moreitem you last went into, and then you can use the children of that control to get values. I guess I'm just not understanding your problem because that seems pretty straight forward to me.

Hope you get it sorted mate :)

Edit:

Actually, you only need 1 global variable, and you set that to the sender in the OnShowItemChildren event. Then set it to null in OnShowItemParent (I think that's what the events are called).
[Windows Mobile Software Development] meltwater:
I've also found this occurs with another SDK (Facebook.Compact.dll) which means it's probably specific to my install of CFW .Net 3.5 & VS2008. Good news for this SDK, but bad for me!

Any solutions would be welcome, bit lost with this.
[Windows Mobile Software Development] Archer:
It's a problem with the SDK build. For some reason the controls show up on a .Net 2.0 project, but they're only compatible with .Net 3.5 - it's not your setup that's the problem.

I've succesfully used this SDK in one of my current apps, and I'm working on another one. I just couldn't use the toolbox so had to code all the controls manually.
[Windows Mobile Software Development] meltwater:
Ok, that's good to know. Unfortunately very new to it, so will keep trying.

I've found I can use the Facebook.Compact.dll only on a .Net 2.0 project, can't you use .Net 2.0 controls on a .Net 3.5 project?

I know not directly relevant but trying to work out what you can/can't do and what is MS VS2008 issues (I initially had issues with the toolbox for all mobile projects - until I uninstalled everything and started again).

Edit for Solution: - I've updated here since it's only of interest to noobs like me

I now understand the posts about the "Page Designer", this is why the tools don't appear, since the designer code isn't right. The SDK is used manually (from what I can guess using the following steps):

1. Add the metadata assembly (StedySoft.SenseSDK.PocketPC.asmmeta.dll) to the "designer metadata" directory (as post#1).

2. Add "StedySoft.SenseSDK.dll" to your project "References".

3. Add the object to your window form class:

namespace FacebookUtil
{
partial class SettingsPage
{
...
private StedySoft.SenseSDK.SenseCheckboxControl mySenseCheck;
...
}
}

4. Then within your windows forms InitializeComponent(), create an instance of the control, define properties and tie to the form (or in this case, to a tab page tabUpdateTimer):

private void InitializeComponent()
{
...
this.mySenseCheck = new StedySoft.SenseSDK.SenseCheckboxControl();
...
//
//Add sense check
//
this.mySenseCheck.Location = new System.Drawing.Point(7, 100);
this.mySenseCheck.Name = "mySenseCheck";
this.mySenseCheck.Text = "Sense CheckBox";
....
this.tabUpdateTimer.Controls.Add(this.mySenseCheck);

Sorry if it's been mentioned before but my search didn't find anything and post #1 is misleading for noobs like me.

Is it possible to turn off the forms designer after you've used it (don't want my edits to be replaced by VS).

Thanks johncmolyneux, for the hint that it's not my install, saved a lot of time chasing ghosts!
[Windows Mobile Software Development] TeDeV:
i can't get the index from the moreItem list. i want the moreItem to have ProcessEntireButton = True.

if i set it to False and then add an event handler to the item. i can't add a code to display the sublist!!! there is no event!

this is my code for this...

CurrentItemIndex = TryCast(Sender, SensePanelMoreItem).Index

TryCast(Sender, SensePanelMoreItem).ProcessEntireButton = True
[Windows Mobile Software Development] Archer:
I don't see why you want to use an index. If you have a globally declared object type variable and then create an event handler for the list control OnShowItemChildren - that has a sender, then you can set the global variable to sender.

Then you can use (Sender as SensePanelMoreItem).Children to parse the child controls.
[Windows Mobile Software Development] TeDeV:
ok thank you so much. i didn't know about the OnShowItemChildren.

i guess it is going to be easy for me now :)
[Windows Mobile Software Development] Sl4sher:
Depending how many levels you want to go up, the senselist itself has a FocusedItem property which is the button you click and a ParentFocusedItem which would be the parent sensepanelmoreitem containing your button. If you need to backup more levels you'll need to use an array to hold your structure as johncmolyneux suggests.
[Windows Mobile Software Development] mkbm:
Hi,

this is a very nice SDK.

But i have still a very simple question.

How can I get the Values of some Children Items.

I have a MoreItem with Textboxes and Comboboxes.

Now when I hit more I want to edit these Values and when I click on back I want to save the values in a file. But I don´t know how I can get it.

Sorry for this question.
[Windows Mobile Software Development] Archer:
We were just discussing this, only a few posts before yours.
[Windows Mobile Software Development] wesch00:
I also do not really understand what you want to do. But I was running in a similar problem. For me it would also be nice to have something like the parent.

But I can tell you a solution. When you fill the MoreItem, add the controls you add to a second list. So you have the knowledge of the items in that panel.

Further I considered a behaviour you should also know. It is not obvious to implement it like that, but here it is. If the "base" SenseListControl contains SensePanelMoreItem and this item is selected, then the new opened list is referenced by the old one which formerly refernced the base list. So, if you clear or insert some items using the "base" refenerence, the changes are done in the currently opened child list. You do not have access to the base list, while the child one is opened. That was very confusing to me.
[Windows Mobile Software Development] Nightstorm99:
Hello!

We can display decimal numbers in the numericbox?

For example: 23.5 !

I try to set temperature values in 0.5 increments.

thanks

greets
[Windows Mobile Software Development] mkbm:
Yes but I didn´t understand how to access the items.

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 = "Tag " + i.ToString();
itmMore.SecondaryText = "Current selection is sub-item #1";
itm = new StedySoft.SenseSDK.SensePanelTextboxItem();
itm.LabelText = "Last Name:";
itm.Tag = "Tag" + i.ToString() + ".FirstName";
itm.Text = "Boelzner";
itm.ShowSeparator = false;
itmMore.Children.Add(itm);
itmMore.OnClick += new SensePanelMoreItem.ClickEventHandler(OnClickGeneric);
this.senseListCtrl.AddItem(itmMore);

This is my Item.

I have one Textbox in this List.

Now I want to save the text from the textbox before closing the list and returning to the base list.

But how can I do this?

This are my two Events:

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

void OnHideItemChildren(SenseListControl.ISenseListItem Sender) {
mnuMenu.Enabled = true;
mnuMenu.Text = "Menu";
mnuExit.Text = "Exit";
}
[Windows Mobile Software Development] wesch00:
You can provide a member variable for your textboxitem.

private SensePanelTextboxItem textBoxItem;

then in the constructor, create the instance of that item and add it to the morepanel.

In OnHideItemChildren then you have access to the item and can get the data.

void OnHideItemChildren(SenseListControl.ISenseListItem Sender) {

mnuMenu.Enabled = true;

mnuMenu.Text = "Menu";

mnuExit.Text = "Exit";

string text = textBoxItem.Text;

}
[Windows Mobile Software Development] TeDeV:
if all you do, is have dynamically created controls, then wesch's solution is no good.

my solution is the following.

(since there is no .Name property) use the tag. for example "TagText"

then use this code...

for each c as SensePanelMoreItem.children

if c.tag = "TagText" then .....

next

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

hope you got the point. if you didn't, u need to study :)
[Windows Mobile Software Development] wesch00:
You're right, if you have more than one TextItem and the number of them is also dynamically, it is not a good idea to use members. If there is a possibility to iterate through the child items, then it should also be possible to use the index instead of a unique name stored in the Tag property. I usually use the Tag to asociate another object with that item so it is allready used.
[Windows Mobile Software Development] TeDeV:
well u can't use the index instead of tag, because you each item has a different index. the problem with that would be that number 7 could be a textbox, or a panel or whatever. so u don't know with what u r dealing with.

using the tag for giving a name, gives u the option to "categorize" your controls, so that you know what kind of control it is, and what kind of information it has inside.

using index, u simply can't do that. correct me if i am wrong plz.
[Windows Mobile Software Development] wesch00:
In my opinon you can use the index. First you add the items by yourself to the list, so you know which item you want access later. You are giving each item a unique name, that name identifies the item. The index is also an id which can identify it.

If you need only to know, if an item is of an appropriate class, then you can do

if (Sender is SensePanelTextBoxItem)

{

string text = ((SensePanelTextBoxItem)Sender).Text;

}

Tag properties are introduced to accociate items with some objects, not for identfying them. Thats why I would look for another way.
[Windows Mobile Software Development] Archer:
The problem here is not the controls and lack of properties (albeit otherwise default properties for .Net controls, so I'm sure they'll be added later ;)). The problem here is that you are creating controls dynamically, and you will

always

run into problems when creating controls dynamically, but expecting to reference them in the same manner as you would when the controls were created in a static manner.

Here's finding the textbox in a more item....

foreach (SenseListControl.ISenseListItem item in moreItem.Children)
{
if (item is SensePanelTextboxItem)
{
// do stuff here
break; // probably
}
}

Now obviously that will only find the first textbox item in the child controls, so if there's more than 1 then you have to think of a way of identifying them. Otherwise, it's that simple.

(I only think I understand what you're asking, so I only think that will help.)
[Windows Mobile Software Development] eboelzner:
Just wanted to update the thread...

I have reviewed the discussions about locating Panel Items... will address it with an acceptable solution. (Bugs also)

*EDIT: I think I will add a NAME property to the panelItem base, and add a GetItemByName method to the items list interface...

ISenseListItem itm = listControl[1];

OR

ISenseListItem itm = listControl["myItemName"];

But wanted to show some of the date/time controls to be released in the next version...
[Windows Mobile Software Development] Wareczek:
Also my bugs?

http://xdaforums.com/showthread.php?p=6253626#post6253626
[Windows Mobile Software Development] eboelzner:
YES!!! These are already fixed in my current dev version! Now you can add/remove items at anytime!!! And "Dispose" methods are honored...

Got you covered!
[Windows Mobile Software Development] alto:
What about using this great SDK in commercial applications?
[Windows Mobile Software Development] wesch00:
@eboelzner

As I saw from the bitmaps of the next to be released version, the date picker doesn't seem to be from my solution, could you at least take some ideas from?

If you provide an indexer for the ListControl, is it possible to also have an Insert method? This I was missing when the items are inserted dynamically. Currently I clear the list and rebuild it again.

Next, I allreday mentioned. I have some own items implemented. I need to mark them somehow as selected (another background). I remember that property during the OnMouseDown event, but I've been not able to force redrawing to show the other background. Will that be solved anyhow.
[Windows Mobile Software Development] Sl4sher:
Awesome dude!

Will there be a time object without am/pm? I'm looking for a time span (like 99:59) for a project I'm working on.
[Windows Mobile Software Development] TeDeV:
nice work. :)

can you please make the numeric box more "numeric friendly". so that i can support decimals and maybe a format if we want? like "1.000,89"

i know that this propably needs some graphics fix or something. because if people want to type in fast that they want for example the above number, it will take ages with the Up and Down button.

keep up the good work
[Windows Mobile Software Development] pallus:
Referencing Wrong version

Here's what I found - the StedySoft.SenseSDK.PocketPC.asmmeta.dll file references v2.0 of .netcf whereas the other dlls reference v 3.5.
[Windows Mobile Software Development] ArtifexAlpha:
Once in awhile I'm getting a COMException when I set the thumbnail image.

I'm using your function to load an embedded image (50x50 png) to an IImage object. When I assign this image to SensePanelItem.IThumbnail, I get an unhandled COMExeception on my Form.ShowDialog call. The exception is "Unspecified error".

When I draw the IImage on a different form, the image draws with no problem, so I know its successfully loaded.

Any ideas where I'm going wrong?

Thanks
[Windows Mobile Software Development] Wareczek:
Is there a way to show ContextMenu after click on SensePanelItem ?