yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Software Development] Reaper:
It might not be exactly what you had in mind, but the secondary text is multiline kinda, you just have to increase the height of the panelitem to match the number of lines you want to display. I did something similiar for my own application.

You count how many characters can be in 1 line of text in the panel item and then increase the height everytime you reach the max for a line. Only drawback is that it is only "reliable" if you application is for 1 resolution only. Because on each resolution the number of characters in a line of text will differ.
[Windows Mobile Software Development] meltwater:
Is that a no too? ;)

I fully understand, finding the custom controls a nightmare to do myself and I know mine are done badly so to do them right...well. Keep up the good work.
[Windows Mobile Software Development] Sl4sher:
I can't swipe out of a nested morepanelitem. (ie: list->moreitem->moreitem).

I can swipe back from the first moreitem but not the second one.

This used to work, did it break in 1.37?

Love the new text alignment btw.
[Windows Mobile Software Development] hanoi_toulouse:
please let me know, is there any way to change backcolor of all controls from lightgrey to white or another color?.thanks.
[Windows Mobile Software Development] brandi:
Not yet besides the background...

I have found a bug in the TimeControl. It is pretty sad btw. that you cannot add it to a normal WinMo Form, but only to a listcontrol, but I was able to handle that problem.

But if you open the TimeSelector, and you take one of the numbers and scroll to the maximum, and then take your finger to the top and scroll as far as you can (so all numbers disappear) the program will crash completely without any error msg (have not traced it on com1 console so far)...

Thanks for this brilliant work! Greetz
[Windows Mobile Software Development] hanoi_toulouse:
how could you make the SensePanelItem with multi Lines ?i can have only 1 line per control :confused: :confused:

http://xdaforums.com/showthread.php?t=648906&page=47
[Windows Mobile Software Development] e.frankie10:
SensePanelItem

hi,

I'm using the sense SDK and seems to be very powerfull!

Just a little comment on SensePanelItem: I need to use it as a 'label' within a menu but I'm not able to horizontally align the text. Is it possible?

thanks for your job! :D
[Windows Mobile Software Development] eboelzner:
I am working on a couple of custom panel items... not only will i release the code, but I am going to start a user created list on the first page so users can contribute, and learn!

Most if not all the API is available to build a custom panel... you will see when I release the next version with custom panel(s)...
[Windows Mobile Software Development] eboelzner:
I will take a look at that... thanks for the feedback!
[Windows Mobile Software Development] eboelzner:
I will see whats up with that... do you get any error... or can you get back from the second one in code?
[Windows Mobile Software Development] eboelzner:
This SDK was primarily designed to follow the HTC Sense GUI standards... but you can override all colors by setting the SenseColor properties when your app first starts.
[Windows Mobile Software Development] hanoi_toulouse:
panelitem.height was increased much, panelitem.secondary was always shown only one line

i insert \r\n(enter and linefeed) but no different, any idea? :confused::confused::confused:
[Windows Mobile Software Development] meltwater:
duh, I was wondering that too, didn't think of that!

Superb!

I just can't believe how complex it is just to make your own custom list of items using the normal microsoft code. Considering how long windows mobile has been around it's shocking. Hopefully by the time you version is ready I might understand enough to be able to use it!

EDIT: Just a quick question, hope someone can answer it. Can the SensePanelNumericItem display more than two digits? Only need three... Tx in advance.
[Windows Mobile Software Development] Sl4sher:
I didn't know we could go back from code, I've pretty much had to reload the list at that point. If there's a way to cause the slide back in code I'd be fine with implementing it.

Once I enter the second more item I can't swipe back, no error, just the swipe motion doesn't do anything.

Also, if I click a child panelitem, I can slide back as normal.
[Windows Mobile Software Development] greenhacks:
Not sure but is the textbox width restricted to 52?

i need a textbox width to be 37 in size, but i cant do it. however i modifed in code and it resizes but in runtime on device it again becomes 52 in size.

hope you can fix this.

i was still not able to fix the greyed out control in toolbox even though after trying everything mentioned here. but i copied all controls from your sample project and pasted in my vb.net project and they got copied, now i can atleast work on them.

thanks for this controls, and hoping to get solution for textbox size.
[Windows Mobile Software Development] JacE25:
Works, but doesn't really looks good.
[Windows Mobile Software Development] wesch00:
It works only for the control on the panel item, even if it is not displayed correctly. If you switch to full display mode, then it can only handle two digit numbers. I've wrote that alreday to ed, hope he will fix it with 1.4.
[Windows Mobile Software Development] JacE25:
sorry, I didn't noticed it. But the rest of 1.37 seems to work very good
[Windows Mobile Software Development] Stefano_1986_:
Hi,

thank you for this excellent sdk!

Just one question:

can you implement the possibility to change language?

For example:

Yes = Si = Oui = Ja

ps. Sorry but my English is not very good.
[Windows Mobile Software Development] mylostblog:
Same here.. any suggestion??
[Windows Mobile Software Development] JacE25:
This is a known problem, Ed is working on a solution. However,In my view this is not a big problem, particularly as the use of the elements in the demo is shown very clearly, and you can add them by manually without any problems.

Edit:

Found another Bug:

You can click or drag on the SensePanelMoreItem to show the childrens. If this Item is disabled, you can't click it anymore, but dragging is still possible. Hope you know what i mean.
[Windows Mobile Software Development] BassPassion:
I have a solution to this problem. At least this is what worked for me.

The problem is that I couldn't get the Sense SDK UI components to show up in the designer toolbox.

Running the reset command didn't help.

And here's the reason why:

I have both Visual Studio 2010 and Visuald Studio 2008 installed. So if I simple open the Win+R command prompt and ran the suggested command, the Visual Studio 2010 devenv.exe will be executed. Which is of no help.

So if you are in the same situation as me, open a command prompt and Change directory to the location of the Visual Studio 2008 installation.

By default, this would be:

C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE

or on 64bit

C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE

And execute devenv /setup /resetuserdata /selfreg /resetskippkgs

Hope this helps.

/M
[Windows Mobile Software Development] char:
Unfortunately, this proposed solution for disabled items in the VS Tool Box didn't work for me...

ChAr
[Windows Mobile Software Development] joe_coolish:
Yeah, I had the same problem (VS 2010 & 2008) and when I ran the command, it reset my 2010 edition. I ran the command several times, not seeing any difference. The next day I ran VS 2010 for a work project and it asked me which environment I wanted to run (meaning the command had run for VS 2010) I did the same thing you did to force the reset to happen on the 2008 instance, but it didn't work for me either.

It's ok thou. I've been able to do most everything from the code behind :)
[Windows Mobile Software Development] Archer:
Yep - all my issues are gone. It would still be nice to be able to use design mode, but I can live with it like this.

So now I've just got the job of recoding my previous applications. THANKS A LOT lol.

Cheers Ed.
[Windows Mobile Software Development] Livven:
eboelzner... the TSK theme you claimed to have created is actually my theme, with just minor changes :(. Please take that down, you may link to my thread instead!
[Windows Mobile Software Development] af974:
Amazing work.....gratz :)...subscripted.

I didnt understand if this could work with QVGA devices.

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

@ Livven

come on ..you know your themes are the best around XDA and people wants them :)
[Windows Mobile Software Development] eboelzner:
First of all... If you look at my post... I NEVER stated that I created it!!! I just stated that I arrange it... meaning, I collected images, mostly from the TP2 Kitchen forum on PPCG and created a TSK (Windows Mobile Theme) file that used these images... YES... I modded some of the images, but DID NOT CLAIM that I authored them!!!

So... What I will do is state here that It seems that some of the images are from Livvens 6.5.x collection... and thanks for your contribution to the WinMobile community! And, I, did not create, just arranged these images into my personally created Sense TSK file.
[Windows Mobile Software Development] GeirFrimann:
NullReferenceException when adding a SensePanelTextboxItem to a SensePanelMoreItem

Great looking controls! Would be REALLY nice to have designtime support.

Actually there is designtime support, if I manually add the controls in my forms InitializeComponent() method, the controls shows up just fine in designtime.

The only problem seems to that the controls would not show up int the toolbox.

If I right klick on the toolbox and select "Show All", the controls shows, but are greyed out.

I do have a problem trying to add a SensePanelTextboxItem to the SensePanelMoreItem:

NullReferenceException

on StedySoft.SenseSDK.SensePanelTextboxItem.OnHandleCreated()

on StedySoft.SenseSDK.SenseListControl._convertChildItems(List`1 list)

on StedySoft.SenseSDK.SenseListControl._addStackItem()

on StedySoft.SenseSDK.SenseListControl.ShowChildren()

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

on StedySoft.SenseSDK.SensePanelMoreItem._notifyRequestAction(String action)

on StedySoft.SenseSDK.SensePanelMoreItem.OnMouseUp(Int32 x, Int32 y)

on StedySoft.SenseSDK.SenseListControl.OnMouseUp(MouseEventArgs e)

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

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

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

on System.Windows.Forms.Application.Run(Form fm)

on ESMManager.Form1.Main()

Are there any limitations to which controls that can be added?
[Windows Mobile Software Development] sgd2z:
Installed VS2008 SP1 and also did the cmd reset thing. Still get Out of Memory errors in the IDE on the sample and also on my project all the controls are greyed out in the toolbox.
[Windows Mobile Software Development] GeirFrimann:
OutOfMemoryException

I get the OutOfMemoryException, after loading a form with the SenseListControl and two SensePanelTextboxItem items 4 times.

The form is loaded wit the following code:

Dim fDomain As New frmDomainSettings(s)

fDomain.ShowDialog()

fDomain.Dispose()

I have added the following code in the Closing event of the form:

For Each ctrl As Control In Me.Controls

ctrl.Dispose()

Next

Here is the stack:

on Microsoft.AGL.Common.MISC.HandleAr(PAL_ERROR ar)

on System.Drawing.Bitmap._Init(Int32 cx, Int32 cy)

on System.Drawing.Bitmap..ctor(Int32 width, Int32 height)

on StedySoft.SenseSDK.SenseListControl._createGraphicObjects()

on StedySoft.SenseSDK.SenseListControl.OnResize(EventArgs e)

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

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

on Microsoft.AGL.Forms.WL.SetDockAnchor(IntPtr hwnThis, BOOL fSetDockAnchor)

on System.Windows.Forms.Control.ResumeLayout(Boolean performLayout)

on ESMManager.frmMain.InitializeComponent()

on ESMManager.frmMain..ctor()

on ESMManager.Form1.MenuItem4_Click_1(Object sender, EventArgs e)

on System.Windows.Forms.MenuItem.OnClick(EventArgs e)

on System.Windows.Forms.Menu.ProcessMnuProc(Control ctlThis, WM wm, Int32 wParam, Int32 lParam)

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

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

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

on System.Windows.Forms.Application.Run(Form fm)

on ESMManager.Form1.Main()
[Windows Mobile Software Development] Reaper:
hi all,

Would really like to start using this. But having the same problems as everyone when trying to add the control to the toolbox. Going to try it by manually intializing. But can someone tell me what is meant by : "Regardless of your target resolution, the design environment REQUIRES the QVGA resource dll... as all the WYSIWYG images reside there"

Where should i place the SenseSDK.Resources.QVGA.dll and SenseSDK.Resources.VGA.dll files?

Any help is very much appreciated!
[Windows Mobile Software Development] TeDeV:
i can confirm too, that i tried all the ways mentioned, in order to make this work. but it doesn't.

please fix it :)
[Windows Mobile Software Development] Archer:
@all

Guys, the "out of memory" exception occurs when you use the IDE to drop certain controls on a form. This is because you're using .Net 2.0, not 3.5.

The fact that the controls are only available in the toolbok in 2.0 is a different issue, but they

do not

work in 2.0, as per the thread title.

It's a pain to have to hand-code all the controls if you're used to using the IDE to do this normally, but it does work, and with no bugs (that I've seen so far). You just need to remember that they only work in .Net 3.5.

I'm sure Ed will get a version that works within the IDE at some point, but reporting the same issues over and over won't help him, especially if the problem has already been discussed and resolved on the thread.

Keep up the good work Ed - I look forward to future releases. But for now, this is still

THE

best Sense style SDK on here, compatability issues and all!
[Windows Mobile Software Development] btxakita:
Edit: the sdk is very good,keep going,eboelzner!
[Windows Mobile Software Development] Archer:
Not relevant now :)
[Windows Mobile Software Development] btxakita:
Oh I'm very sorry for my post

will get it edited
[Windows Mobile Software Development] Archer:
Heh - that's okay mate. It's exciting stuff ;)
[Windows Mobile Software Development] Reaper:
Anyone know where to place the SenseSDK.Resources.QVGA.dll and SenseSDK.Resources.VGA.dll files?

Should they be added as references to the project?
[Windows Mobile Software Development] Archer:
You don't need them to code with the controls (just the SenseSDK.dll), but you do need them at runtime. If you add them as a reference then they'll automatically get copied into the bin\release or debug folder when you build anyway.

I think you only need the QVGA one if you're only developing for QVGA/WQVGA devices, but you need both if you want to include VGA/WVGA. Not sure about this, but I've been including both anyway as I want future apps to be available on all resolutions.
[Windows Mobile Software Development] Reaper:
Thank you very much for the information, going to try to get it working now.
[Windows Mobile Software Development] Archer:
You're welcome mate. Have fun ;)
[Windows Mobile Software Development] sgd2z:
You get out of memory errors even when using .net 3.5 in the IDE. In fact you get them even in the sample application.

I also got a null reference error in the sample app while trying to type in the text box.
[Windows Mobile Software Development] Archer:
You can't add the controls to a form in .Net 3.5 so how can you say that??

Anyway, all I'm trying to explain is that you need to code the controls manually, in a .Net 3.5 app, and then it works fine.
[Windows Mobile Software Development] TeDeV:
will you guys ever stop mentioning the same thing over and over about the toolbar?

IT IS

NOT

POSSIBLE TO HAVE THE CONTROLS IN THE TOOLBAR YET! deal with it.

if you don't know how to hard code a control, then learn. the sample is really simple and easy.

as for a request. i really want a numericbox with more numbers and decimals.
[Windows Mobile Software Development] meltwater:
I only get numbers 0-99 on mine. Oh well happy to wait for that (the values I tend to use for the setting in question is 10, but wanted a wider range for others.

All looks excellent for a settings page.
[Windows Mobile Software Development] JacE25:
The numeric item in the picture i've posted is filled after some calculations, it contains the area of a room, before the calculation starts you give the length and the width of the room. If length and/or width are too big, you will get a to big value for the area and the panel looks as in the picture ;)

agree, or even the possibility to make own numericboxes. You could fill it with an array of strings(displayed on the numeric wheel) and values(values behind the Strings)
[Windows Mobile Software Development] legrorelou:
take it easy man. :cool: people are trying to get a solution to their problems, they share infos. nothing is wrong with that. don't feel offended.

btw capital letters is evil. ;)
[Windows Mobile Software Development] LucasR93:
I have a question: In my little App I used a SenseNumericControl. I want to set the value by the programm, but the value doesn't change.
[Windows Mobile Software Development] TeDeV:
i may sound bad, but this question has been answered more than 20 times in this post. people never read and never will.

take for example ebernazz2's post. he spent time to write his post and help some people in here, but still in a day or so, we will have a new post saying..

"i followed the instructions but no toolbox items! wtf! help me!!!"
[Windows Mobile Software Development] eboelzner:
Ok.........

Since the vast majority of LITTLE bugs have been addressed, I begin to address the LARGER issues and requests... This is as I see it...

1) The dev environment toolbox issue

2) The multi-line textbox

3) The larger/expanding numeric input control(s)

4) Sample "custom" list panel(s)

5) SDK documentation - to override default fonts/sizes/colors/etc...

So... v1.4 will be released soon, I don't know what will be included from the above list, but rather concentrate on getting everything currently included... correct and bug free!!!

Thanks for all the feedback and kind words... hope the SDK is helping/empowering your mobile development!

Regards,

Ed
[Windows Mobile Software Development] joe_coolish:
That sounds amazing! Is there anything we as a community can do to help? I'm sure that the majority of the docs can be written by the more experienced users. If there is anything we can do to help you (since you've helped all of us so much already) I'm sure we'd love to do so!
[Windows Mobile Software Development] wesch00:
Nice to read, that you will try to fix the "large" issues.

Unfortunatly I have a new one, don't know, if it is a large or small one, from my opinion it won't be that easy to fix.

Here we go.

I wrote my own SensePanelItem, implementing the SenseListControl.ISenseListItem interface. I assume it is the right way to write own panel items. That interface has several methods and properties to be defined. One of them is the Height property, further there is the OnResize method. I did set the Height of the item in the OnResize method to the required value, the initial value is much smaller (0 or 1). It seems, that the upper value for the scrolling limitof the SenseListControl is determined only when adding the item, further changes of the height are no more considered. Thus the items do not scroll back when the upper limit is exceeded.

The constructor is the following

public SaldoReportDisplayItem()
{
Height = 1;
}

and the OnResize looks like

public override void OnResize()
{
Height = (categoryTotals.Count + 1) * 25;
}

I have added a screenshot, hope it illustrates the problem. The first item displayed in the screenshot is not the first item. You can recognize this that the first line is displayed only half. I would assume the items should scroll down to fit in the screen.

A workarround is to set the initial Height to a large value, i.e., 1000 (larger then the screen). Unfortunatly in that case the scrollbar position does not match to the scroll position.
[Windows Mobile Software Development] eboelzner:
Here is the "Height property" code in my panel item...

public int Height {
get { return this._height; }
set {
if (value != this._height) {
this._height = value;
[B]this._notifyRequestAction("INVALIDATE");[/B]
}
}
}

the bold item call this internal Panel item method...

private void _notifyRequestAction(string action) {
SenseListControl.RequestActionHandler myEvent = this.RequestAction;
if (myEvent != null) {
myEvent(this, new SenseListControl.RequestActionEventArgs(action));
}
}

which tells the list to invalidate the panel items ClientRectangle...

Here is the declaration for the panel item to create the event sink...

public event SenseListControl.RequestActionHandler RequestAction;

Passing the string "INVALIDATE" to the list control from a panel item will force a re-draw for that panel item's ClientRectangle only...

Passing the string "INVALIDATE_VISIBILITY" to the list control from a panel item will force a re-draw for that panel item's ClientRectangle only... but force the list control to re-calc the "TOTAL" potential list size...

Passing the string "INVALIDATE_WAIT" to the list control from a panel item will force a re-draw for that panel item's ClientRectangle only... and pause the list control's thread to allow the panels time to calculate re-sizing info...

Now... I pass this info to you with the following disclaimer... other than "INVALIDATE", your are messing with threading in the internal list... so use them wisely!!! LOL

I will be releasing a sample panel item to show all of this... let me know if you need more before then...

Ed
[Windows Mobile Software Development] meltwater:
Thanks for your excellent work, just working on transferring my settings page over to Sense SDK (the interface is done, just transferring the background code over now, love the sensePanelMoreItems such a smooth way to organise things).

The transition between sense and non-sense will be very difficult to spot hopefully.
[Windows Mobile Software Development] Wareczek:
So it's not the time to Sense TabPanel ?
[Windows Mobile Software Development] wesch00:
Ed, thanks for your fast answer. I don't getting it.

Since I do not inherit my panel from one of yours, I can not access the Height property you implemented. I wrote my own class implementing only the interace SenseListControl.ISenseListItem. There I have to implement the Height by my own, since it it required by the interface. This property is called from the SenseListControl somehow. Thus I'm not able to invoke the RequestAction handler. Am I wrong?

Let's wait for a sample, may be I get my fault then. Tomorrow I'll send you a sample implementation of my item, may this helps to clarify.
[Windows Mobile Software Development] cnzqy1:
Hello, Ed, please update the CultureInfo:

zh-CN/zh-CHS:

On=开
[Windows Mobile Software Development] JacE25:
Hi Ed,

are there any updates towards the SIP-Problems in childrenitems?

edit:

Is it possible to set the input mode for a sensepaneltextboxitem?

Thanks for your help

Edit edit:

Found another bug

if you define a maximum value for a sensepanelnumericitem it only works on the small item, if you click on it, so that you get the big item, the maximum value didnt work.

Tried with 1.37

If the primary or secondary text is too big to fit the sensepanelnumericitem, the item didnt adjust its size, like the other Items