yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Software Development] eboelzner:
Yes... this is the issue using Microsofts IImage com interop wrapper... I works fine, but every so often, it lays an egg... especially with multiple instantiations.

I have tried my best to shield and cache the objects, but the issue is with the com object and memory usage.
[Windows Mobile Software Development] Tumys:
Thanks for the info, eboelzner!
[Windows Mobile Software Development] eboelzner:
It would be better to use the base class or better yet, the panel interface to create your own panel... this is an issue where another layer of indirection will hamper the list rendering speed and subsequently performance... this is why the base panels that I created are sealed.

I am preparing a few panel examples that use the interface, not the base class... this is really the most productive/best performance method.
[Windows Mobile Software Development] eboelzner:
This can be controled two ways... set the myList.BeginUpdate()... and in the onresize, throw away the event if the ClientRectangle has not been set... aka = Rectangle.Empty

Rule of thumb... ANYTIME you modify a property that may invoke the rendering of the list control, wrap Begin and End Update around it... this WILL greatly inhance the perfomance! Especially when loading and unloading items!
[Windows Mobile Software Development] avril23:
:D looks so cool! let me have a try.
[Windows Mobile Software Development] The-Kevster:
I'm using SensePanelBase and it acts like a SensePanelMoreItem in that you can scroll to the right where there are no items. This is the same in the SensePanel sample. Anyway to stop it being able to slide to the right?

Thanks,

Kev
[Windows Mobile Software Development] greenhacks:
Not sure about correct way, but i simply used to add a panelitem to show as a message as "No items exit, click back" so i can inform user about it rather than not able to click on it.

you can try to show a message on clickhandler possibly and then execute:

senselistcontrol.ShowParent(), so that it goes back to sensepanelmoreitem.

but as i said i am not sure about the exact way, never checked if there is any RemoveHandler for handling that in runtime.

if you find it do let us know too.
[Windows Mobile Software Development] alto:
SensePanelMoreItem MoreIImage Error

I used the SensePanelMoreItem MoreIImage to change the more item image, works great but:

On close the MoreItems screen and return to parent by calling: this.senseListCtrl.ShowParent()

I get this error:

A first chance exception of type 'System.Runtime.InteropServices.InvalidComObjectException' occurred in StedySoft.SenseSDK.dll

0x80131527

at Microsoft.Drawing.GraphicsExtension.DrawImageAlphaChannel(Graphics gx, IImage image, Rectangle dest)

at StedySoft.SenseSDK.DrawingCE.SenseAPIs.SenseImage.Panel.Draw.MoreImage(Graphics g, Rectangle r, Image imgMore, IImage iimgMore, Size sz)

at StedySoft.SenseSDK.SensePanelMoreItem.OnRender(Graphics g)

at StedySoft.SenseSDK.SenseListControl._renderGraphics()

at StedySoft.SenseSDK.SenseListControl._animateRight()

at StedySoft.SenseSDK.SenseListControl.ShowParent()

at testApp.testApp.miDone_Click(Object sender, EventArgs e)

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

at System.Windows.Forms.Menu.ProcessMnuProc(Control ctlThis, WM wm, Int32 w
[Windows Mobile Software Development] elgarv:
OutOfMemoryException

Hi,

First, I want to say this is a very nice library, I wrote my first application with it in few hours.

But the problem is my application runs nicely on various 6.5 emulators but throws an OutOfMemoryException on my HTC Blackstone.

This happens in an More Item page with 2 combo boxes. When I select an item in the first combo it works but when I try to select an item in the second combo the exception is thrown. The exception is thrown by SenseListControl._createGraphicsObject().

What I'm missing ?

Thank you.
[Windows Mobile Software Development] ricodomonkos:
COM Exception

Hey there eboelzner!

First of all, congratulations for this SDK, it's quite cool.

Thank you for contributing this.

I'm in the creation of my first app with it, but encountered a problem,

perhaps with the thumbnails. If I add thumbnails to the items, I got an

Unhandled COM exception

at StedySoft.SenseSDK.SensePanelItem._getImageSize()
at StedySoft.SenseSDK.SensePanelItem.OnRender(Graphics g)
at StedySoft.SenseSDK.SenseListControl._renderGraphics()
at StedySoft.SenseSDK.SenseListControl.OnPaint(PaintEventArgs e)
at System.Windows.Forms.Control.WnProc(WM wm, Int32 wParam, Int32 lParam)
at System.Windows.Forms.Control._InternalWnProc(WM wm, Int32 wParam, Int32 lParam)
at Microsoft.AGL.Forms.EVL.EnterMainLoop(IntPtr hwnMain)
at System.Windows.Forms.Application.Run(Form fm)
at NewsPaperReporter.Program.Main()

Any ideas? If I remove the thumbnails, the problem is gone, but I want to use the thumbnails because it's much more impressive with them :)

I'm using the 1.39 version.

Another question. How can I apply the theme you posted?

Thanks in advance, regards,

Rico from Hungary.
[Windows Mobile Software Development] meltwater:
Hi can anyone answer this.

When I make a sensepanel item visible or hide it triggered by a check box, the screen isn't updated the 1st time but it's fine afterwards. I've tried:

//Handle enable Auto Update

if (checkAutoUpdate.Status == ItemStatus.On)

{

numericUpdateInterval.Visible = true;

}

else

{

numericUpdateInterval.Visible = false;

}

//Force re-draw of display

this.Invalidate();

this.Refresh();

this.Update();

But it still only updates when the panel is moved.

Answer is:

this.senseList.Invalidate();
[Windows Mobile Software Development] KUV1977:
The COM exception with IImages is a common problem. After long trying and searching i couldn't fix it and resorted to Standard Images. Instead of setting an IThumbnail you can set a regular Thumbnail. The transparency will be pretty bad but if you can adjust your images it can be ok. I have not yet had a single COM-exception in the normal images...
[Windows Mobile Software Development] alto:
Thanks for the idea, can you post the code how to load Image instead of the IImage as it's in the sample program?

(sorry, my UI programing capabilities are very bad)
[Windows Mobile Software Development] recrack:
Hi, anyone

Do you have any idea of Font, Image size change ?
[Windows Mobile Software Development] kliptik:
@eboelzner

I wanted to say another HUGE thanks for this awesome SDK!!! I was actually getting ready to start working on an app when I found this, so I've been using it for the past week or so. Very well put together!!! I will PM you a link to my app once I post it (probably next week) so you can show off some more of your awesome UI!!!

One small comment: An Image Box/Panel Item would be AWESOME!!! Something that has SizeMode available like the standard SM control. I tried using the the Thumbnail Image but resizing images at runtime on .NETCF is ridiculously complicated, and does not usually turn ou well...

Thanks again!!!

Kliptik
[Windows Mobile Software Development] KUV1977:
Instead of using

itm.IThumbnail = ...

you can just use

itm.Thumbnail = new Bitmap(PATH + IMAGE); //from file - from resource will also work
[Windows Mobile Software Development] ricodomonkos:
I cannot achieve the same keyboard and SIP as it shown on the first post screenshots.

How can I do that?

And how can I change the theme?

Anyone?

Thanks!
[Windows Mobile Software Development] serfer222:
This is not related to Sense Interface SDK.

This keyboard is EzInput 2.1 - search for it.
[Windows Mobile Software Development] ricodomonkos:
Thanks for the reply! And how can I automatically scroll the list to the active editbox so the keyboard not overlay the editbox? Now its a problem, when I click on an editbox to write it and the keyboard shows up, i can not see the editbox anymore.

Any idea?
[Windows Mobile Software Development] greenhacks:
Even i have this problem, never thought about it till i read this. keyboard overlays my last textbox on the screen.

If i scroll it up, it agains scrolls down and sticks to the bottom.

i guess for a quick workaround, i will add few empty item control at the end, so that i can scroll to the textbox enough that it stays there.
[Windows Mobile Software Development] LORDShadowMan:
Still I cannot get the Controls into the Toolbar....

Any further suggestions?

I installed the SP1

I tried the cmd command.... I cannot get them into the toolbar....
[Windows Mobile Software Development] leen15:
you need to have the same sip_EnabledChanged function as in the demo example. ;)
[Windows Mobile Software Development] greenhacks:
Everyone are codding manually, you should too.

Even though if controls shows up, wont be much helpful, as things like more item panel still has to be created manually in code.
[Windows Mobile Software Development] greenhacks:
Let me try to see if that is what needs to be used.

Thanks for reply.
[Windows Mobile Software Development] leen15:
Somebody can tell me how i can lock the scroll from the last item and not from the first?

another thing, can i set the font of a panel item to "Bold" or something to highlight it?

Thanks! ;)
[Windows Mobile Software Development] KUV1977:
Hey there, I am trying to create a custom item but i am really not knowing what i am doing here. I tried to manipulate the sample provided and i created a new rectangle and drew an image in there. However the rectangle is created at a fixed screen position - which is logical considering my code. How do i attach my newly created rectangle to the item, so that it moves with it...

//new unattached rectangle
Rectangle recOne = new Rectangle(40, 20, 20, 20);

//original line
//if (this._iimage != null) { SenseAPIs.SenseImage.Panel.Draw.ThumbnailIImage(g, this._iimage, this._iimageSize, base.ClientRectangle); }
//new line - draws image fine but not attached
if (this._iimage != null) { SenseAPIs.SenseImage.Panel.Draw.ThumbnailIImage(g, this._iimage, this._iimageSize, recOne); }

My second question would be: How do i add a sense api trackbar to my item (really not as important to me as the first question)

Thank you in advance...
[Windows Mobile Software Development] alto:
Thanks!

Work great.
[Windows Mobile Software Development] greenhacks:
Hello were you able to make tap n hold work on morepanel pages?

I see that you read somewhere as it is know issue, can you tell me where you read it?

i need tap n hold on all textboxes on all pages of moreitems, any other way you know?

thanks.
[Windows Mobile Software Development] LORDShadowMan:
yeah, still the designer is easier than manually code everything, but it works...

well. THANKS anyway.
[Windows Mobile Software Development] meltwater:
Nope I didn't unfortunately, can't find the post I was referring to either,it was vaguely related I think rather than being exactly same. Hopefully it'll be sorted in next release. You can probably implement cut/paste/copy as menu options instead if that's possible with your design.

Am I going mad or was 1.39 supposed to support more than 2 numerical digits on the numerical control (panel item), could do with this really.
[Windows Mobile Software Development] greenhacks:
I too was hoping that few things i suggested would have got fixed in 1.39, but didnt. I wish it was open source, we all could have extended it.

One of the biggest drawback of apps with no code/free is, it gets developed when developer has time and people who use it needs all the patience they can have.

Well lets keep hoping and think that 1.40 will make us smile. Ed looks busy with other things i guess and reason no updates for long time.
[Windows Mobile Software Development] greenhacks:
@meltwater, thanks for your suggestion, that is what i will have to do by creating menus and give such options.

thanks.
[Windows Mobile Software Development] meltwater:
Yep thats understandable, but as I've found with my facebook tab you get attached to the code, you put a lot of work in and want to get it to a certain level before you are happy to let others play with it and take credit etc. I'm sure Ed will open things up when he's happy to. Sometimes you get a particular idea of where and how you want things done, so it's not possible to let others do it either.

It's a huge project, and the little experience I've had with windows mobile graphics & controls, he's done an amazing job to do it with .net. I think he was planning 1.40 as a bigger release so it might be he's working hard on it. 1.39 is very complete, just a few smaller niggles really (unless you want customisation outside of the standard sense look).
[Windows Mobile Software Development] greenhacks:
I totally agree to you.

Also lets hope 1.40 has more updates in it.
[Windows Mobile Software Development] LORDShadowMan:
I searched the in the thread, but didn´t found a post about it:

It seems that the sensePanelTimer has a bug. it it not possible to set it to 23:59. it allways goes back to 22:59.....
[Windows Mobile Software Development] Nightstorm99:
Hello!

@ed and all

How can I use the SensePanelDateTimeItem without SenseListControl?

Thanks
[Windows Mobile Software Development] dhruwal:
Ed, i hope in next release we can change text of onoff control to anything else for e.g. YesNo., then we can use that control meaningfully :), would be great.

thanks
[Windows Mobile Software Development] LORDShadowMan:
try SenseTimeFSControl.

Dont think that it is useable without the sense control....
[Windows Mobile Software Development] msoccer2:
sorry this is probably the noobiest question ever but please can someone help me :confused: . This looks very interesting to me and I would love to use it, but i don't know how to install/ use it. Any help? :confused: :confused:
[Windows Mobile Software Development] AndiCP:
This package is really great! Thank You!

But I have one question, why aren't you including some TripleState Checkboxes and OnOffItems ?

I need them often but you cant find such controls online - not to speak of sense.

(and on overloading these controls i'm having issues with drawing)
[Windows Mobile Software Development] alto:
Invoke problem in SensePanelCombo

I gets a lot of invoke errors with the SensePanelCombo

Its happens most when I activate the same combo few times (usually after the 4th time )

In order to find the problem I checks InvokeRequired before any action I do with his combo but its false all the time and have the exceptions.

Any ideas?

ThreadAbortException

at StedySoft.SenseSDK.DrawingCE.SenseAPIs.SenseImage.Control.Draw.TextboxImage(Graphics g, Rectangle r)

at StedySoft.SenseSDK.SenseTextboxControl.OnPaint(PaintEventArgs e)

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

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

at Microsoft.AGL.Forms.EVL.EnterModalDialog(IntPtr hwnModal)

at System.Windows.Forms.Form.ShowDialog()

at ContactsOrganizer.FormMerge.OnComboSelectedIndexChanged(Object Sender, Int32 Index)

at StedySoft.SenseSDK.SensePanelComboItem._notifyIndexChanged()

at StedySoft.SenseSDK.SensePanelComboItem.set_SelectedText(String value)

at StedySoft.SenseS
[Windows Mobile Software Development] DarkChester:
I have problems using this Sense SDK.

When I open the SenseSDKDemo Project I get many "out of memory" errors (for example the header), so I cannot use all Tools.

Second problem:

I cannot add the Tools in the Toolbox, they are greyed out, I used the fix "cmd /c start /wait devenv /setup /resetuserdata /selfreg /resetskippkgs" but the problem remains.

I am using VS 2008 with CF 3.5
[Windows Mobile Software Development] meltwater:
Hi guys,

Hopefully someone can help (last issue I need to solve). I have a list of PanelItems and I need to allow them to be selected but then keep the item highlighted.

Does anyone know which property to set to highlight an item (I tried the senselist background color but it didn't appear to do anything)?

Hopefully someone knows the answer to this & my app will be ready. Thanks in advance.
[Windows Mobile Software Development] kliptik:
Hey all! Here's an app I wrote using this SDK. In case anyone wants to check it out.

KD-Font

This SDK works excellent!

Kliptik
[Windows Mobile Software Development] greenhacks:
You want to select them by taping on them? and they should get selected?
[Windows Mobile Software Development] alto:
OK, so I worked around most of this issue, I changed a lot of the combo boxes to text fields, but there is still a problem I can't solved with the senseListCtrl:

I have senseListCtrl then on click of one of the items its open new dialog with combos and text fields, if I do any action on this dialog and close it, then after it, when trying to scroll the senseListCtrl I get the annoying System.Threading.ThreadAbortException errors, smapl bellow

An unhandled exception of type 'System.NotSupportedException' occurred in System.Drawing.dll

Additional information: Control.Invoke must be used to interact with controls created on a separate thread.

A first chance exception of type 'System.Threading.ThreadAbortException' occurred in System.Windows.Forms.dll

ThreadAbortException

at System.Windows.Forms.Control.get_Bounds()

at System.Windows.Forms.Control.get_Height()

at StedySoft.SenseSDK.SenseListControl._renderGraphics()

at StedySoft.SenseSDK.SenseListControl.OnPaint(PaintEventArgs e)

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

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

at Microsoft.AGL.Forms.EVL.Yield()

at System.Windows.Forms.Application.DoEvents()

at StedySoft.SenseSDK.SenseListControl._springBack()

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

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

at System.Windows.FormA first chance exception of type 'System.Threading.ThreadAbortException' occurred in ContactsOrganizer.exe

The thread '<No Name>' (0xa3f2bd3e) has exited with code 0 (0x0).
[Windows Mobile Software Development] Nixeus:
Hello my friend,

Thanks a lot for this nice SDK :)

I have the same refresh error :

http://i.imgur.com/b5A5f.png

How solve it ?

thanks a lot,

regards,

Nixeus
[Windows Mobile Software Development] greenhacks:
This should help you.

SensePanelItemEx

http://xdaforums.com/showthread.php?p=7124325#post7124325

Let me know if that is what you wanted.
[Windows Mobile Software Development] greenhacks:
I posted 2 controls which are extended from original controls.

SensePanelNumericItemEx

SensePanelItemEx

has some extra properties.

http://xdaforums.com/showthread.php?t=721865
[Windows Mobile Software Development] DarkChester:
I inserted the buttons, etc. manually - this SDK works great! Thank you alot ;)
[Windows Mobile Software Development] Nixeus:
Hello my friends,

I have a problem with the SDK : When i insert Sense Labels on my form, and when i run my app, i have a refresh problem, the label background is missing.

Have you one idea ?

Thanks a lot,

regards,

Nixeus
[Windows Mobile Software Development] meltwater:
Yep they get selected, but for what I need I need them to be highlighted (i.e. its a selection of a folder in a file list, so need to select to open the folder or select to use (hence need it to stay highlighted)). I've got the two part selection working, it's just visual bit which wasn't right.

Sounds like what I'm after, shall have a go with using them. Many thanks.
[Windows Mobile Software Development] greenhacks:
Do note, that few properties are being added to it and few bugs as well are being fixed.

You should try the property Selected, and also use property called SelectedWithCheckBox for visual presentation. :)
[Windows Mobile Software Development] Nixeus:
Here is a screenshot :

Thanks a lot :)
[Windows Mobile Software Development] Nightstorm99:
Hello,

@greenhacks

Could you even fit a text alignment (left, center, right)?

Thank you
[Windows Mobile Software Development] meltwater:
Yep that works very well, just what I was after. Perfect with the C# version.

Any chance the thumbnail could be supported too :D

Shall work on integrating it for the next version.
[Windows Mobile Software Development] greenhacks:
Thumbnail version updating in post in a minute. Let me know feedback in that thread.
[Windows Mobile Software Development] greenhacks:
Will be considered in next release.

thanks
[Windows Mobile Software Development] Ryan Cordero:
can this sdk be used with i c # from sharpdelevop?
[Windows Mobile Software Development] julian84:
sorry for the stupid question but i saw Sense UI and QVGA in one thread, and i cant stop myself asking what is this for :rolleyes:

thanx for the fast answer
[Windows Mobile Software Development] kliptik:
This if dor developing WM applications with a UI similar to the Sense interface.

For example: http://xdaforums.com/showthread.php?t=718885

I wrote this app using this SDK, so it looks like it's part of Sense, but it's actually not.
[Windows Mobile Software Development] greenhacks:
I do not see any reason on why it would not work.

It is just a differnt IDE for .NetFramework, so this SDK should work.

You need to manually write the code.
[Windows Mobile Software Development] Nixeus:
Here is a screenshot :

Pleeeeeeeeeease my friends :)

Thanks a lot :)
[Windows Mobile Software Development] Nightstorm99:
Code please!
[Windows Mobile Software Development] Nightstorm99:
Everything looks good, but trying times

this.backcolor = DrawingCE.SenseColors.List_Background
[Windows Mobile Software Development] Nixeus:
When i need to paste this code please ?
[Windows Mobile Software Development] Nightstorm99:
under this line:

this.AutoScroll = true;

this.backcolor = DrawingCE.SenseColors.List_Background
[Windows Mobile Software Development] Nixeus:
Thanks a lot,

Can you tell we when "DrawingCE" is include ?

using ?

Thanks a lot !
[Windows Mobile Software Development] Nightstorm99:
use this:

this.backcolor = StedySoft.SenseSDK.DrawingCE.SenseColors.List_Background
[Windows Mobile Software Development] Nixeus:
Thanks a lot,

Saddly, it don't change anything :(

I have try on 2 computers with VS2008 sp1 with .net cf 3.5, and on my HTC LEO, and on the emulator, same problem :(

Edit : In fact, your line change the background color, but there is always the background problem on the labels, only the labels.
[Windows Mobile Software Development] greenhacks:
has been done in new release.

SensePanelItemEx now has alignment property.

Read provided ReadMe on how to use it.
[Windows Mobile Software Development] xlightwaverx:
manilla

Is there anyway to run say HTC Sense itself off of this sdk? Maybe that would have a speed boost on some of our phones.

X
[Windows Mobile Software Development] Nixeus:
Please, anyone could create a new project in VS2008 and just insert a Sense Label, and give me the project ?

It's in order to find the problem on my projet !

Thanks a lot

regards,

Nixeus
[Windows Mobile Software Development] leen15:
One general question..

I've a senseListControl with some CheckBoxItem and a Button to remove the checked items.

How can i loop the item that keep in List after remove for have Primary and Secondary text of each item?:confused:
[Windows Mobile Software Development] Nixeus:
Anybody for my problem ?
[Windows Mobile Software Development] greenhacks:
Why not use the examples which came with v1.39?
[Windows Mobile Software Development] Nixeus:
I juste create a new c# smart device project.

And, on my winform, i pasted a sensLabel. I have made the reference on the dll.

My app build without problem, but i always have this background problem on my label, that's why i would like a little project with just a sense label, in order to search and understood the differences.

Thanks a lot :)
[Windows Mobile Software Development] greenhacks:
@Edward,

Just to inform you, that there is no property called SenseListControl.Item in C#, but is available in VB.Net.

For workaround in C# is by managing the items collection ourself with help of ArrayList of some other collection.

Thanks.