yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Software Development] wesch00:
Hi Ed,

I tried today to reduce my app to the error I posted yesterday.

It was not that easy as expected. The problem seems nothing have to do only with setting the height in OnResize.

In my app I have a CommonSenseForm all forms deriving from. In That CommonSenseForm I add the SenseHeaderControl and the SenseListControl having them both on every form. Only when I do this, the problem occurs. Without deriving from that form it works as expected.

I have added the solution to that post, helping you to find out what the issue is.

After I found out that this problem occurs only with my common form, I remebered another problem I have. Openeing my forms several times (6-8) I have an out of memory exception I cannot assign to any of my code. Is it possible that my design can cause such errors? I will try this somewhen.
[Windows Mobile Software Development] greenhacks:
I hope author reads this message also and see if it can be fixed. thanks.
[Windows Mobile Software Development] meltwater:
Hi I think I've got a problem with the SensePanelMoreItem...

1. Am I doing something wrong or is ClickEventHandler not working for SensePanelMoreItem??

If I add an event handler for OnClick:

senseSubPageAddApp.OnClick += new SensePanelMoreItem.ClickEventHandler(senseSubPageAddApp_OnClick);

The function:

private void senseSubPageAddApp_OnClick(object Sender)

Never gets called when it is selected.

However this one does, so hopefully I can call it indirectly instead.

void OnShowItemChildren(SenseListControl.ISenseListItem Sender)
{
//Check the sender
if (Sender.Equals(senseSubPageAddApp))
{
senseSubPageAddApp_OnClick(Sender);
}

Edit: Yep, it works by calling it indirectly instead.

2. Does RemoveAt(int index) work? Or again am I doing it wrong?

Another issue, when trying to remove a specific item from a combo box I get exception:

Error removing SenseList element! [NullReferenceException]

Using the code (the list is populated):

comboSel.Items.RemoveAt(comboSel.SelectedIndex);

Tried the following too, with the same result:

comboSel.Items.Remove(comboSel.SelectedItem);

Any help on this would be appreciated!
[Windows Mobile Software Development] leen15:
Hi, can somebody tell me how i can have a Right ContextMenu for SenseTextBoxItem as in the example of sdk? :confused:
[Windows Mobile Software Development] eboelzner:
The panel items are not created with the VS toolbox. The toolbox controls are UI controls... not SenseListPanelItems!

All SenseListPanelItems are created via code as in the sample app provided in the d/l...
[Windows Mobile Software Development] eboelzner:
Fixed in v1.38
[Windows Mobile Software Development] eboelzner:
Fixed in v1.38...
[Windows Mobile Software Development] eboelzner:
You must make the call to invalidate the list from your Height "Set" property...
[Windows Mobile Software Development] eboelzner:
??? Input mode ??? Drawing a blank here...
[Windows Mobile Software Development] eboelzner:
Is it the Textbox Control or PanelItem?
[Windows Mobile Software Development] eboelzner:
The general rule for panel items that have the property "ProcessEntireButton" follow these rules...

if (ProcessEntireButton == true OR mouse.down.x >= panel control item.left)

panel control item = (more item arrow, checkbox, radio, on/off image, etc)

SensePanelMoreItem fires SenseList event "BeforeShowItemChildrenHandler" then "ShowItemChildrenHandler" if not cancelled in the "Before" event

SensePanel OnOff, Checkbox, Radio Item fires event "OnStatusChanged"

if (ProcessEntireButton == false AND mouse.down.x < panel control item)

all panel items fire click event

Hope this helps you understand the nature of the "ProcessEntireButton" property... this mimics HTC's interaction as I have seen it.
[Windows Mobile Software Development] eboelzner:
Take a look at the sample code...

// enable Tap n' Hold & auto SIP for SensePanelTextboxItem(s)
SIP.Enable(this.senseListCtrl.Handle);
this.sip.EnabledChanged += new EventHandler(sip_EnabledChanged);
[Windows Mobile Software Development] greenhacks:
It is Textbox for sure.
[Windows Mobile Software Development] greenhacks:
It is textbox control.
[Windows Mobile Software Development] eboelzner:
What I wanted to know was... Is the textbox you are working with the stand-alone SenseTextboxControl or SensePanelTextboxItem ?

Ok... got it... will take a look.
[Windows Mobile Software Development] leen15:
Sorry but i don't find this code in your example.. :confused:

what sip_EnabledChanged do?

Thanks and sorry for my noobie questions! :D
[Windows Mobile Software Development] eboelzner:
It is at the end of the form-load event...

sip_EnabledChanged is the captured event for the SIP control on the form... Are you familiar with MS's SIP control and how to add it? If not... hi-lite the control and hit F1... read tutorial from MS...
[Windows Mobile Software Development] eboelzner:
Fixed in v1.38...

Be advised though... the minimum width VGA/QVGA is 20/10 because at that width, essentially the actual textbox width is 0 pixels!
[Windows Mobile Software Development] Nightstorm99:
Hello!

Can I change the backcolor from the TextboxItem?

Thanks
[Windows Mobile Software Development] leen15:
thank you, i'll try it :)
[Windows Mobile Software Development] shinyzhu:
Hi, eboelzner. I found that the two labels of an OnOffControl display both "Off" in Chinese ROM.

Please check the snapshot:

http://www.flickr.com/photos/shinyzhu/4667608363/

Anyway, Thanks a lot :)
[Windows Mobile Software Development] greenhacks:
Sorry, yes it is stadealone SenseTextboxControl.

Just SenseTextboxControl on the default form, nothing else behind it.
[Windows Mobile Software Development] cnzqy1:
I had reported this and the correct one for twice but no reply:(
[Windows Mobile Software Development] greenhacks:
Thats great. now the question is when you releasing v1.38 :)
[Windows Mobile Software Development] meltwater:
Superb! Sounds like a lot sorted out in the next version, as always excellent work (response from sense SDK screens have been very positive on my dev thread BTW).

Thanks for the tip about "BeforeShowItemChildrenHandler", that is probably the point I want to hit (else you see the data I'm changing behind the scenes as it transfers).
[Windows Mobile Software Development] greenhacks:
One more issue i had:

SenseTextboxControl has TextChanged Event, but i do not see it for SensePanelTextboxItem.

Am i doing something wrong? as i cannot find such thing.

i need to do something when a particular text is being changed inside SensePanelTextboxItem.

Let me know if you can help me.

thanks a lot.
[Windows Mobile Software Development] meltwater:
It's there...because I'm using it.

private SensePanelTextboxItem textMyStatusRegExe;
...
textMyStatusRegExe.TextChanged += new EventHandler(textMyStatusRegExe_TextChanged);
...
private void textMyStatusRegExe_TextChanged(object sender, EventArgs e)
{

It's just a normal EventHandler though.

@eboelzner

Are we able to create pages similar to you about box?

I would like to have a similar about box for my app (with a link to the sense sdk one inside of course), is that possible?
[Windows Mobile Software Development] JacE25:
I mean something like only numbers, so that the SIP shows only numbers. Know what i mean? I have some Sensepaneltextboxitems which should contain numbers. its easier for the user to enter numbers, if the sip directly shows numbers.
[Windows Mobile Software Development] greenhacks:
Hey thanks, i can try that and check if that works.

Thanks for quick response and helping with sample code.
[Windows Mobile Software Development] eboelzner:
Yes... I will add an example in the next release...
[Windows Mobile Software Development] greenhacks:
Not sure what wrong i am doing, but in C# i see .TextChanged for SensePanelTextboxItem but in VB.Net i do not see that.

not sure if i am missing anything. any suggestions?
[Windows Mobile Software Development] eboelzner:
I will take a look to see how quickly I can mod the SensePanelTexboxItem into a SensePanelMaskedEditItem ...
[Windows Mobile Software Development] eboelzner:
Later this evening or early tomorrow morning...
[Windows Mobile Software Development] Nightstorm99:
Hello!

In Vb.NET:

Dim ItemPreis_1 As SensePanelTextboxItem

AddHandler ItemPreis_1.TextChanged, AddressOF ItemPreis_1_TextChanged

Private Sub ItemPreis_1_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs)

.......

End Sub
[Windows Mobile Software Development] greenhacks:
Cool, yes now it shows up. thanks for sample code and quick reply.
[Windows Mobile Software Development] Nightstorm99:
Or this:

Dim WithEvents ItemPreis_1 As New SensePanelTextboxItem

Private Sub ItemPreis_1_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles ItemPreis_1.TextChanged

.......

End Sub
[Windows Mobile Software Development] greenhacks:
Sorry for being a pain, but does anyone know how to give a SensePanelTextboxItem a fix width in SenseListControl.

When i add a SensePanelTextboxItem, it automatically kind of becomes of full width.

I want to place 2 textbox next to each other. any ideas?

i tried to add property as:

sensepnlTextbox1.Width = 200

but that does not work.
[Windows Mobile Software Development] greenhacks:
The first one you gave worked like a charm, will also try withevents one.

thanks.
[Windows Mobile Software Development] Nightstorm99:
@eboelzner

Hello!

I think we should provide the sample project in VB.NET?

please read:

http://xdaforums.com/showpost.php?p=6683224&postcount=617

Greets
[Windows Mobile Software Development] Nightstorm99:
I have the same problem.
[Windows Mobile Software Development] greenhacks:
That would be great.
[Windows Mobile Software Development] greenhacks:
Ok, atleast i am not the one with this issues.

hope @eboelzner can help us to fix this issue too in next release.
[Windows Mobile Software Development] greenhacks:
I think none of the controls we can place next to each other when in senselistcontrol.

I wanted to place 3 radio control next to each other, but they show up one below the other with full screen width. the Width property just does not work i guess unless i am doing it the wrong way.

Same goes with Command button. i want OK and Cancel button next to each other in 1 row, but they end up in 2 different rows one below the other.

This is sample code:

Dim opt1 = New StedySoft.SenseSDK.SensePanelRadioItem

opt1 = New StedySoft.SenseSDK.SensePanelRadioItem("opt1")

opt1.Enabled = True

opt1.PrimaryText = "A"

opt1.Width = 100

Dim opt2 = New StedySoft.SenseSDK.SensePanelRadioItem

opt2 = New StedySoft.SenseSDK.SensePanelRadioItem("opt2")

opt2.Enabled = True

opt2.PrimaryText = "B"

opt2.Width = 100

senseListCtrl.AddItem(opt1)

senseListCtrl.AddItem(opt2)
[Windows Mobile Software Development] greenhacks:
In HTC textbox, when it receives a focus, its border changes it color to little dark.

Not sure if you want to do that also, that when a textbox receives a focus, it changes its border color to what we set in property.

just a suggestion.
[Windows Mobile Software Development] mike3000c:
As i see, all panelItem is occur one row. order by you add in the controllist.

It is like a queue or stack.
[Windows Mobile Software Development] eboelzner:
That is correct!!! What I did was to re-create most of the panel items found in HTC's UI... and have created a bunch of custom panels... these "custom" panel requests will have to be built by you guys for now as I don't have a boat load of time to build custom panels...

I will include a couple of custom panels in the next release so that you can work from them to design and build your own... I will help you fine tune them since I know the list control well...

Ed
[Windows Mobile Software Development] greenhacks:
I think i will need help from some sample for this.

i will wait for next release and hope it has some example on how to get multiple controls on same row.

thanks.
[Windows Mobile Software Development] sergiorus:
Here is a list of programs based on SenseSDK by eboelzner

MyListManager by mylostblog

SenseSlider .NET CF Control by LunaticShade

TrophyToGo - PSN-Trophy-Viewer by KUV1977

Mp3 Tag Editor by virgilp

HTC Tasks by ng-gdata

SIP by Aleksew1991

Google Visual Voicemail by Sl4sher

SenTi by LucasR93

Mobile TV by artn3r

WoL Everywhere by LichtiMC

Flip2Mute by thisisatest3

LeoExtendedNotifications by NetRipper

LateReader by vizier

Private Message Filter by mohitsapru

CHTEditor

mobileConnections - "Deutsche Bahn" App

SenseTasks

Cloud SMS Backup

pTasks (task editor only)

HTC Menu Enhancement Loader

DNetworkTools

Sorry I'M Late

KD-Font

Facebook Tab

XDA_UC_NET

Native SMSoIP

Meditation Timer

Mobile Shopping List

Salat(Prayer) Reminder - SMS

Profile Switch for Phone, Wifi, Bluetooth and Data

Mobile Finance

Windows Mobile SenseTimeTracker

SmartBoot

dV2t Translator

Mobile Currency Converter

eboelzner

Add this list to your second post and update when will appear new applications
[Windows Mobile Software Development] LucasR93:
I want to report a bug one of my users of SenTi reported:

When using a calendar control the arrows left and right are showing in the false direction. The function is okay (right means next month, left former month) but the arrows should be turned 180° ;)
[Windows Mobile Software Development] greenhacks:
Can someone help me to convert this to VB.net please?

i am having hard time to convert it.

private IImage _getIImageFromResource(string resource) {

IImage iimg;

using (MemoryStream strm = (MemoryStream)Assembly.GetExecutingAssembly().GetManifestResourceStream("SenseSDKDemo.Resources." + resource + ".png")) {

(ImagingFactory.GetImaging()).CreateImageFromBuffer(strm.GetBuffer(), (uint)strm.Length, BufferDisposalFlag.BufferDisposalFlagNone, out iimg);

}

return iimg;

}

I tried this online conversion utility, http://www.developerfusion.com/tools/convert/csharp-to-vb/ but did not work and gave error to me.

I tried to convert myself but i get NullReferenceException

Private Function _getIImageFromResource(ByVal resource As String) As IImage

Dim iimg As IImage

Using strm As MemoryStream = DirectCast(Assembly.GetExecutingAssembly().GetManifestResourceStream("SenseSDKDemo.Resources." & resource & ".png"), MemoryStream)

ImagingFactory.GetImaging().CreateImageFromBuffer(strm.GetBuffer(), CUInt(strm.Length), BufferDisposalFlag.BufferDisposalFlagNone, iimg)

End Using

Return iimg

End Function

Thanks.
[Windows Mobile Software Development] mike3000c:
hi, your syntax seems OK, i think that the reason maybe you can't add the resource into the project. please notice that when you add them, you must set them properties to embed resource.

hope it will work.
[Windows Mobile Software Development] greenhacks:
Thanks for quick response.

Yes that is something i missed to do, will try out later, but i now think, after changing that property to embed resource, it will work.

For now i used LoadIImageFromFile, i would prefer this more so that other people can skin the application, rather then embeding the file in app itself.

thank you so much for your help.
[Windows Mobile Software Development] mike3000c:
you can from file or database to store the image, it is not a problem for do it with this SDK. For now I use this SDK and SQLite to develop my app at the last stage fine tuning. I maybe will embed some icon as reason is I don't want normal user modify it.
[Windows Mobile Software Development] ebernazz2:
Not sure I understand the end result you are after but in VB.NET just add an IMAGELIST to your project and load the images in there at design time and its easy to get a hold of them during runtime.

Eric
[Windows Mobile Software Development] eboelzner:
SenseSDK v1.38

New version... v1.38!

New control(s), multi-line textbox, etc... And bug fixes stated in the thread...

Sample panel item will follow... (check second post for updates)

Ed
[Windows Mobile Software Development] meltwater:
Excellent! Can confirm slotted in the new dll and items are deleted from comboboxes fine. Will try out the mutli-line text box tomorrow!
[Windows Mobile Software Development] Roccc:
Progress bar

Thanks Ed for this new version :)

I have in mind a new control: a progress bar with the same design that SenseMessageBox. Maybe is it already planned?
[Windows Mobile Software Development] Roccc:
OutOfMemoryException

Hello,

I confirm this bug on the 1.38
[Windows Mobile Software Development] Sl4sher:
Sliding back from nested moreitems works again, thanks!

I'd like to have multi-line text and images inside of the sensebuttoncontrol, would that be possible?
[Windows Mobile Software Development] greenhacks:
I wish i could apply LayoutStyle to SensePanelComboItem.

I wanted to save some space on the screen by moving the LabelText next to SensePanelComboItem (to apply horizontal style like TextBox)

Not sure if we can already do that.
[Windows Mobile Software Development] greenhacks:
I wish you include a small example on how i can place controls next to each other. Most important i want is to place 5 textbox control next to each other with width of 37 each inside senselistcontrol.

Thanks.
[Windows Mobile Software Development] leen15:
Hi, i've a question:

I have a senselistcontrol with some SensePanelMoreItem, Primary text and all children for each Item derived from an Array.

All children have the same name for every propriety, and before i go back from children to senselistcontrol i have to compare with the array if the children of that index are changed (for update the array).

My problem is that the children in the moreItem is not valorize with values of the item that i've selected, but have values of the last SensePanelMoreItem that i put when i create the initial senselistcontrol.

example:

Array Test have:

Name

data1

data2

data3

i populate the senselistcontrol with While for the Array Test:

i -> Index of sensePanelMoreItem

Name -> PrimaryText of the sensePanelMoreItem

data1, data2, data3 -> children of sensePanelMoreItem in textBoxItems

When i select an item from senselistcontrol i see the right children in the textbox, but if i verify that TextBoxItems, they have always the last values that i insert when i populate the last sensePanelMoreItem of the senselistcontrol.

is there a method for have the right children if i have the Index of SensePanelMoreItem that i've selected ? :confused:

Thanks and sorry for the exposition but i don't have the code now and i a noobie! :D
[Windows Mobile Software Development] wesch00:
I also posted here a similar problem. I'm not openeing the second/other form from a panel item but from a menu item. All my forms have the SenseListControl on it and after some open/close actions ther is also the OutOfMemoryException. Until now I couldn't see any reason in my app. So if some other guys here have the same issue, I think it is wihtin the framework.
[Windows Mobile Software Development] Ciccius:
Hi,

someone has planned the HVGA libs? :)

Ciccius
[Windows Mobile Software Development] greenhacks:
I think qvga apps should work on them

Have you tried any?
[Windows Mobile Software Development] PhilMorris:
In a SenseListControl, I have one SensePanelMoreItem with 2 children, one SensePanelItem and one SensePanelComboItem.

Can sb please tell me how to change the SecondaryText of the SensePanelItem Child by code ?

I mean without redrawing the SenseListControl.

I am writing in VB.NET.

Thanks anyway...
[Windows Mobile Software Development] meltwater:
Hi,

Having problems getting the SIP tap n' hold bit working, tried copying it from the example code but doesn't seem to work when I try it. Never used the SIP before so I expect I'm missing something simple.

1. Added InputPanel called "sip" to form in designer.

2. On my "load" event (after all text boxes are created):

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

where, senseList is my list.

The sip_EnabledChanged is never called. All my text box panel items are within sub-pages (MoreItems) so could this be the problem?

Update: Just tested in a normal list (i.e. in the parent senseList and it works). Not a major problem anyway for my use (was an added bonus).

Ok can see this is sort of known/related, sorry I missed it.

Just waiting for the sample About/Panel Item example and the Sense SDK side of things will be complete for the facebook tab release. Still got other bits to complete first anyway so plenty of time.
[Windows Mobile Software Development] JacE25:
Still having the same problem
[Windows Mobile Software Development] greenhacks:
The time you added SensePanelItem in SensePanelMoreItem, thats the place itself you need to code.

Dim itm_PanelItem = New StedySoft.SenseSDK.SensePanelItem("itm_PanelItem")

itm_PanelItem.SecondaryText = "Secondary Text"

itmMore.Children.Add(itm_PanelItem)

Let me know if that helps.
[Windows Mobile Software Development] PhilMorris:
Thanks for helping, but I need to change SecondaryText after adding SenseListControl without redrawing it.

I was trying to write sth like this (as per your example) :

SenseListControl.itmMore.itm_Panel.SecondaryText = "Secondary Text"

but I know it is not working.

Sth similar maybe...

Thanks anyway...
[Windows Mobile Software Development] greenhacks:
the example which i gave already has senselistcontrol added.

If you can explain what you trying to do, maybe i can get you better example.
[Windows Mobile Software Development] wesch00:
Ed, could you confirm my issue with the height set at load event? I provided a sample illustrating the problem some postings before. Didn't hear anything on it, I tested it today with 1.38, it is still there.
[Windows Mobile Software Development] wesch00:
I've had a look at the SensePanelMaskedEditItem. No idea, what SSN and Zip format is. But I have sime remarks to the Phone mask type.

You provided it with brackets for the "prefix" and a dash separated number. This format unfortunatly is not phone number conform. Usually a phone number is defined in the MSISDN (Mobile Station Integrated Services Digital Number) format. That consists of a Country Code (CC), as National Destination Code (NDC) and a Subscriber Number (SN).

The CC can be omitted if it is a call within the same country. In you mask there is no place for CC. To otpically distinguish the CC from the NDC some countries prefix it with a double "0", other with three "0" or even with other combinations. Thats why very often mobile phones also accept a "+" sign.

The NDC is usually provider dependent or for fixed line calls the code of a city or district. This NDC is opticallly mostly surrounded by brackets "(--)", as you did it for the mask. And you provided only 3 digits for the NDC. There are NDCs up tp 5 digits in germany. Mobile providers only have 3.

The SN can, but must not divided by a dash ("-"). Also the number of digits in SN can vary.

I will not critisize you implementation, I know it is very difficult to forsee al these cases. I did it for another implementaion by my own. In my opinion it cannot be handled with a mask.

Not sure if the custom mask type is that flexible to support a variable number of digits within fixed characters, i.e. for the NDC. In my opinion that fixed phone mask type is not very usefull, especially in other countries.
[Windows Mobile Software Development] leen15:
Hi! i would know if it's possibile to dock an item (for me a multiline TextBox) at the bottom of the senselist.

Another stupid question, how can i change the color of textbox? :confused:

Is there a similar ForeColor Propriety for SensePanelTextboxItem ?

Thanks.