yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Software Development] BarrySumpter:
Over the last three weeks I've been reserching ways to develop a personal app for my HDC HD2.

What I've found is that alot of the data entry is very pretty but very cumbersom as well.

So I've decided to change the way I enter data, etc.

I've posted numerous times looking for info.

But have had to be satisfied with vb.net and Visual Studio 2008 Pro.

I'm hoping I'll be able to use your SDK for input rather than VS2008Pro controls.

I've got a basic app running exactly how I want it so far.

And was planning on starting the data entry controls today.

If anyone has any advice I'd sure be interested in how to get started using this SDK.

Really looking forward to giveing this SDK a go.

All my best.

----

Downloaded SenseSDK.v1.39

Reading the .netCF 3.5 VS2008 fix.txt

The path

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

should be -------------------------------------------------------------------No space

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

I tried to post with the space removed but this forum software is adding the space in the line directly above for some reason.

Which may be the source of the space in the .txt file.
[Windows Mobile Software Development] BarrySumpter:
I think I'll stop here.

Anyone have a step-by-step procedure for setting up a tab with stedysoft controls.

If someone will point me in the right direction

I'll build a step-by-step word doco with snaps.

And offer it here for easyier startup.

tia

----

nope, my bad I think.

Looking at the about screen in VS2008Pro.

I saw SP1 not realizing it was for the .net framework 3.51 sp1

Downloading and Installing VS2208Pro SP1 now.

--

nope. still not working.

I'll have to push on and hope someone will post regardig how they've actually go this working.

Too hard for now. And not enought time to experiment.

Don't understand why no install or proper instructions on how to don't already exist in first post.

Especially with so many already using it.

Probably just me wanting to get things done.

And spend less time fumbling about.

I'll check back later.
[Windows Mobile Software Development] divinglog:
Can someone help me with creating my own custom SensePanelMoreItem. I have successfully created a normal custom panel inherited from SensePanelBase, but I'm not able to draw the more arrow and that it shows the children when I tap my custom panel. Inheriting from SensePanelMoreItem is also not working. Thank you!
[Windows Mobile Software Development] kliptik:
Nice work!!!

Ok so I've ben reading, and I've made it through the page 60 so far... Has it been solved on how to use the controls in the toolbox within a .net3.5 project yet? I can see the controls in my new tab if I select "Show All", but they are grayed out...

I'm hoping to have a solution besides manually coding or copy/pasting them into my forms...

TIA and again, great work!!!

EDIT* Read the whole thread...
[Windows Mobile Software Development] BarrySumpter:
Hi kliptic,

You've gotten further than I have.

I could NOT get the tab to show the contents at all.

Please see my post directly about yours.

Any step-be-step instructions from anyone would be great.

I intend to create a step-by-step word doc with snaps if I can work it out.

Hi all,

I've made heaps of progress in developing the layout for my data entry techniques.

I've ran into an issue when I what to force my app to landscape only.

I have to use a 3rd party app "Rotate Screen" by hand to force into landscape.

Can anyone point me to the proper command to use these controls inside VStudio?

I also want to control the keyboard popup.

Force keyboard popup.

Force keyboard close.

Force keyboard numeric input.

etc.

Any help would be greatly appreciated.

Can anyone point me to the proper command to use these controls in this manner inside vSudio?

tia
[Windows Mobile Software Development] kliptik:
OK so I read through the entire thread and there's no current way to set up the Toolbox properly. The controls are still grayed out in .netcf 3.5. So it looks lie they all have to be coded manually, or copied/pasted from the sample app.

That being said, the controls should still function properly if copied from the sample app right? I would think so since I'll have the reference included for the current .dll...

Thanks for all of the hard work!!! Any new ETA on the SDK installer for VS2008?
[Windows Mobile Software Development] BarrySumpter:
Yeah, OK.

That sounds easy enough.

Perhaps thats why the sample app was created.

I fell the first post should be updated to reflect this.

As in:

Visual Studio 2008 Profressional developers:

DON'T try to add these as a Tool tab - I doesn't work.

Just have two VS2008Pro development environments open.

The first with the sample app that contains ALL the components.

The second with your app.

And copy the controld from the first environment to the second.

---

Nope:

OK after taking a break the controls are now there in myTab.

Don't know what I did. They are just there.

Completely missed a full day of research on these components.

---

Can anyone decipher this:

"Regardless of your target resolution, the design environment REQUIRES the QVGA resource dll... as all the WYSIWYG images reside there."

Can anyone even reply to any of my post so I can be sure my posts are apprearing in this thead?
[Windows Mobile Software Development] IzaacJ:
That means that the SenseSDK.Resources.QVGA MUST be located in the DesignerMetaData folder to be able to get the controls in the Designer, which for the moment doesn't work so I guess it doesn't do much difference right now.

WYSIWYG = What You See Is What You Get
[Windows Mobile Software Development] BarrySumpter:
Thanks for the reply.

If anyone is interested here is my doco:

Installing StedySoft Sense Controls for use with Visual Studio 2008 Professional.zip - 1+ meg - Last updated: 2010 06 12 12:40
[Windows Mobile Software Development] ng-gdata:
I'm not sure whether this has been requested, yet, but maybe you can add the red X as alternative image for the SensePanelCheckBoxControl, as it is used when deleting cities from the weather tab for example.
[Windows Mobile Software Development] bandanner:
Custom Panel Controls

Hi

I hope anybody who has some experience with creating custom panels can answer my question. That would be great :D

My question:

As far as i understood you have to draw anything you want to have on your custom panel by hand. Is there any way to place the existing sense-controls on your panel, or do i really have to make every button by myself? :confused:

Thanks :)
[Windows Mobile Software Development] rublopez:
Util form for converting standard forms into Sense SDK look&feel

Hello,

I am developing a form (SenseForm) which will allow convert an old form with standard controls into Sense SDK look&feel. You only must create a form derived from SenseForm and into the constructor to call to UpdateListControls() method. Then all the standard controls (TextBox, CheckBox, ComboBox, etc.) that the form contains will be converted to sense list items. So, you can easily and quickly convert existing forms into Sense SDK look&feel with no effort. When the content of a control is changed the associated sense item will be modified transperently, and vice versa.

The form is not terminated still, but soon I will publish it here for the interested people.
[Windows Mobile Software Development] IzaacJ:
SensePanelSMSLabel

This is a SensePanelLabelItem that I've modified for usage with SmsMessage objects.

Its written in VB.Net. Hopefully someone might have some usage of it :)
[Windows Mobile Software Development] BarrySumpter:
Hi all,

I'm getting this VB SenseSDKDemo location is not trusted error.

If I could get some help I'll update my SenseSDKDemo install doco and repost.

Can anyone else open the VB SenseSDKDemo projoect without errors?

If so, am I suppoesed to move the project to a different folder somewhere?

I know we were supposed to have solved this .dll hell issue but VS makes things so complicated.

tia
[Windows Mobile Software Development] BarrySumpter:
I'm also getting the following error on 5 different controls.

I am NOT using .net 2.

I am using .net 3.5 only.

Any help will be reflected in my setup doco.

The VB app will still execute in design mode.

But no info on how to build and run on my HTC HD2.
[Windows Mobile Software Development] leen15:
Do you find a solution for wrap again when the device go in landscape? :)
[Windows Mobile Software Development] IzaacJ:
No but it shouldn't be so hard to implement. Can do it tomorrow as I'm about to go to bed :P
[Windows Mobile Software Development] leen15:
Nice! i modded your function to my c# project and work nice, but i'm trying to find a solution for wrap in different resolution and landscape, with no good results! :D
[Windows Mobile Software Development] kliptik:
Thanks for the write-up!!! Looking at your screenshots, it still looks as though the controls are grayed out and unusable by drag-and-drop. Is this correct?
[Windows Mobile Software Development] Archer:
The thing that immediately jumps out at me is that you need to add this...

Imports StedySoft.SenseSDK
[Windows Mobile Software Development] greenhacks:
Looks like he has not added StedySoft.SenseSDK.dll as reference.
[Windows Mobile Software Development] Archer:
Of course - that as well. I was obviously distracted by having to type 'Imports' instead of 'using' ;)
[Windows Mobile Software Development] TeDeV:
how do i create one? i don't get it. i have included it, in the project, i have initialized one, but it doesn't appear.

this is something i tried

Dim smsPanel As New SensePanelSMSLabel

smsPanel.ButtonAnimation = True

smsPanel.Height = 100

smsPanel.Width = 100

smsPanel.Name = "testSms"

smsPanel.ClientRectangle = New Rectangle(100, 100, 100, 100)

Me.senseListCtrl.AddItem(smsPanel)
[Windows Mobile Software Development] ebernazz2:
Don't need the Imports but you do need to add the sense sdk as a reference. Go to Project - Add Referenece - Browse - (find the stedysoft.sensesdk.dll) and click on it and allof your errors will go away.

Eric
[Windows Mobile Software Development] IzaacJ:
You have to put an SmsMessage object in the smsPanel.SMS property I guess >_<'' Haven't tried it without one :P
[Windows Mobile Software Development] BarrySumpter:
LOL.

I was very dissapointed I couldn't get this working last night.

Spent too many hours getting access to the components in the IDE

(even though still not accessible thru the tool bar)

and writting install instructions so others wouldn't have to spend

hours and hours trial and erroring and reading thru 80+ pages.

I was continually using the Run command that resets the IDE.

To test and retest my procedures.

And forgot to read and execute my own instructions before testing my first SenseSDK app.

Now that's just so ironicly funny to me.

LOL.

Was going to start again on following my own instrctions this morning.

But was vey please to find a number of posts assisting.

Thanks Very very much gentlemen. Really appreciated.

I'm humbled by your patience and reserve.
[Windows Mobile Software Development] kliptik:
Lol! It happens to the best of us! Thanks for your time and effort on the write-up!

EDIT* You might PM the OP and see if he can attach your write-up to Post #1 or #2... that way ppl dont have to look all the way to page 80(ish) to find it.
[Windows Mobile Software Development] BarrySumpter:
Thanks for that suggestion.

Will do as soon as I sort the instruction for the first SenseSDK app.

I considered it but wanted to keep the doco under my update control to enhance as I learn.

Perhaps I'll ask if he would be interested in just hyperlinking to the post instead.

If anyone has any suggestions on simple first time app using 1 specific control at a time please post and I'd be happy to add it.

I've found a simple SSce app that I want to add for accessing databases using standard VS2008 controls.

Then add another SSce app using appropriate SenseSDK controls.

etc.

At one time I was supporting 3rd party VB6 controls.

I'd always ask developers who submitted querys about coding issues

and who contributed code snippits

to cotribute full project zip file

no matter the size of the query code snippet

so we could have a really solid base to learn AND SHARE from.

What I found was the faster I could get developers up n running,

the more help, feedback, and support we could rely on.
[Windows Mobile Software Development] eboelzner:
Under development now... thanks!
[Windows Mobile Software Development] eboelzner:
I am going to review, update, then post to #1...

Thanks a million for the effort and document... I will not forget!

Ed
[Windows Mobile Software Development] eboelzner:
Remember... the list panel items are not in the toolbox... they always need to be added via code. The toolbox items [except for the SenseList and Header] are the actual form controls that are stand alone, not panel items!
[Windows Mobile Software Development] eboelzner:
Nope... DesignerMetaData does not have a reference to the QVGA assembly... it just has MetaData for the controls [defaults, properties, methods, etc]
[Windows Mobile Software Development] eboelzner:
This is the usual on Vista/Windows7. If you open a project under the USERS folder, etc. just ignore, or copy your source folder out of a Windows secure folder. [USERS, WINDOWS, ETC]
[Windows Mobile Software Development] Tumys:
Hello eboelzner,

I would also like to contribute some ideas.

ng-gdata's idea with the red checkbox images would be great!

To be able to mimic some HTC forms, it would be cool if the space for LabelText of SensePanelTextBoxItem and SensePanelDateTimeItem could be collapsed it the text is empty. Right now, it leaves an empty space.

A label text is not always necessary, for example, if placing under a divider item which has the description, or when a prior control describes the purpose of the following control.

On rare and random occasions, I receive a ComException while scrolling through the ListPanel, or when I come close to the end of the ListPanel. Sometimes it's the first time the list is populated. If not, I can always reproduce it by keeping repopulating a longer list, and eventually, it will crash. It's similar to this.

This is my exception info.

It's not that of a problem, as I restart the application automatically on crash.

Did I do something wrong? Has it to do with disposing items? If I clear a SenseListPanel, do I need to somehow dispose all the children items (they don't have Dispose()), much like the SensePanelList itself?

These are just suggestions. The SDK is amazing as it is now.

For all who want better HVGA compatibility as well: I found out that increasing all the font sizes by a ratio of 1.2 via DrawingCE.SenseFontSizes, and increasing the height of text and input SensePanelItems by a ratio of 1.6 works well. Of course, only do that if you detect a HVGA device. Dialogs are still too small, but overall the controls are finger-friendly then.

Thanks a lot,

Tumys
[Windows Mobile Software Development] JacE25:
Hello,

could somebody help me with the IImage?

I've never used it before, if i need Thumbnails, i used the Resources-Editor in VS2008, an load the image as example like:

logo.Thumbnail = (System.Drawing.Image)(WaermeApp.Properties.Resources.logo);

So now i want to make an own SenseAboutBox.

In Ed's example there is an IImage loaded with

IImage iimg = SenseAPIs.SenseImage.GetIImageFromResource("about");

But i dont find this about(.png?) anywhere. It would be nice if somebody give me an example with some random Picture, which is located as example in /Resources/logo.png

Thank you very much :)
[Windows Mobile Software Development] leen15:
I thing that "about.png" is yet embedded in dll.

You can see the example in normal Thumbnail.

the function that get Image from Resource apply yet + ".png".

You have to pass "logo" and set the propriety of the resource you use on "embedded".

This is my About:

IImage iimg = getIImageFromResource("LogoJack");

static IImage getIImageFromResource(string resource)
{
IImage iimg;
using (MemoryStream strm = (MemoryStream)Assembly.GetExecutingAssembly().GetManifestResourceStream("JackSMS.Resources." + resource + ".png"))
{
(ImagingFactory.GetImaging()).CreateImageFromBuffer(strm.GetBuffer(), (uint)strm.Length, BufferDisposalFlag.BufferDisposalFlagNone, out iimg);
}
return iimg;
}
[Windows Mobile Software Development] Nightstorm99:
Hello!

pm!

Greets
[Windows Mobile Software Development] JacE25:
Nightstorm99 and Leen15, thank you very much :) It works now
[Windows Mobile Software Development] ChaimJ:
media player

sorry wrong thread..
[Windows Mobile Software Development] meltwater:
Hi Guys,

Any update on the panel item numerical control, need three digits rather than two? Not too serious but would be handy to have at some point.

Thanks
[Windows Mobile Software Development] wesch00:
@eboelzer

I think I have a new issue. As I wrote before, I do not use the SensePanelBase class for my own items but a class implementing the SenseListControl.ISenseListItem interface.

This works for me very well.

Now I chnaged my app mo more using more then one Form with iths own SenseListContol. I switched to use the SenseSlider.

This implies to have only obe form. Do be able to display different content on the SenseSlider panels

I clear the SenseListControl everytime a new panel is activated and fill the list control with the appropriate items.

What I figured out now, when adding items to the SenseListControl the first time,

the OnResize event is fired for every item inserted.

But after I do a clear on the list control and add the items again (the same ones or other ones) the OnResize event is no more fired.

Can that plz improved?
[Windows Mobile Software Development] JacE25:
i have some issues with the iimage.

Today i've changed my code from using Thumbnail towards using IThumbnail

First it seems to works quite as nice as with normal thumbnails, but when you move through my menu you get randomly an unspecified error. Something with the COM Object. I use a lot of Sensepanelmore Item to make a tab like navigation, and nearly every sensepanelmoreitem has a thumbnail.

I got this error every time I came back to the first menu, sometimes even without describable context.

Unfortunately I have already changed back to normal Thumbnails and forgotten to make screenshots from the error. With normal thumbnails it works still great.

Where is the main difference between normal Thumbnails and IThumbnails?

I have tried to change to the IThumbnails because I thought that ED possible built in a scaling-function, which automatically takes care of different resolutions.
[Windows Mobile Software Development] KUV1977:
I have switched to normal Images for the same reason: seemingly random crashes i couldn't fix. I would love to use IImages though since the transparency is just so much better...
[Windows Mobile Software Development] kliptik:
Yeah that took me a few to figure out, but by looking through code of the sample app it all made sense (<--- no pun intended).

Thanks again for the awesome work!!!
[Windows Mobile Software Development] ebernazz2:
Just curious why you PM an answer asked on a public forum where people share to learn?

Anyway after reading through much of the questions I thought I would take Ed's SamplePanelItem and make a custom panel item with an image in the center and text on either side of the image to show how one goes about making their own panel items. Its very basic but should get some of you going.

Eric
[Windows Mobile Software Development] Tumys:
Ah ... so the IImages are the reason for the ComExceptions! I only used IThumbnail, so I couldn't figure out what the reason was.

Good to know!
[Windows Mobile Software Development] JacE25:
Cause we both speak german, and sometimes its easier to explain some problem in the native speak.

He only gives me an code example and the hint, that i have to set the property of the images to embedded resource.
[Windows Mobile Software Development] ebernazz2:
Ahhh - now that makes total sense. See I never thought of that. You have opened my eyes and I thank you.
[Windows Mobile Software Development] kliptik:
Thank you! The project Im working on now is going to need something similar to this!

Side note: XDA really needs a "THANKS" button...
[Windows Mobile Software Development] wesch00:
In allmost all panel items the methods, properties and events are public, but not virtual. So it is impossible to inherit i.e. from SensePanelCheckboxItem and enhance it. I nees some actions in case the item gets the focus. But OnGotFocus is never called when I inherit from that class.

Can this plz be added? It wpuld be easy to imlement and gives us developers a lot of possibilities.
[Windows Mobile Software Development] meltwater:
Also I do not get the cut/copy/paste context for a SensePanelTextboxItem when it is within a SensePanelMoreItem, which would be useful.
[Windows Mobile Software Development] Tumys:
This blog post might be interesting for SenseSDK (also notice the comments)

http://www.mobilepractices.com/2007/12/multi-line-graphicsmeasurestring.html

http://www.mobilepractices.com/2008/01/making-multiline-measurestring-work.html

It describes how to measure the height of a (multiline) string. With it, either the existing SenseSDK panelitems could be updated, or custom ones created so that the height of the panelitems resizes automatically according to its content and font size.

For future versions of SenseSDK it could also be interesting to be able to change the font style such as font color and font weight per control.
[Windows Mobile Software Development] computerjunkie:
That's what I have been using and it works great. The problem is that even though that returns the actual size of the string, when you add a text panel item (or even a custom text panel item) to the list control, it adds a few line breaks after the string.

so your actual string looks like this:

This is what a normal string looks like when drawn outside of a sense list control.
Notice how the size of the control is very well suited to the size of the string.

---------------------
| this is my string |
--------------------

This is what the string looks like when added to a sense list control.
Notice how the extra line breaks after the string.

---------------------
| this is my string |
| |
| |
--------------------

What I propose is a Autosize property that would use the above methods to calculate the size and add it to the list control appropriately.
[Windows Mobile Software Development] Tumys:
It works fine for me in a custom PanelItem.

You probably haven't specified the font, as described in the second blog post. Use my variation of the MeasureString function, which includes a font parameter.

Public Shared Function MeasureString(ByVal gr As Graphics, ByVal font As Font, ByVal text As String, ByVal rect As Rectangle) As Size

Dim result As Size = Size.Empty
Dim controlFont As IntPtr = font.ToHfont()
Dim hDC = gr.GetHdc
Dim originalObject As IntPtr = SelectObject(hDC, controlFont)

Dim bounds As New Rect(rect)

Dim flags As Integer = DT_CALCRECT Or DT_WORDBREAK

DrawText(hDC, text, text.Length, bounds, flags)
gr.ReleaseHdc(hDC)
result = New Size(bounds.Right - bounds.Left, bounds.Bottom - bounds.Top)

'Release resources
SelectObject(hDC, originalObject)
DeleteObject(controlFont)

Return result

End Function
[Windows Mobile Software Development] computerjunkie:
I'll try that out. But I dont think that is the problem. The size that is returned is correct but when I add it to the Sense List Control, it adds the extra line breaks. When I draw the string outside of the list control, it draws just fine without the extra line breaks.
[Windows Mobile Software Development] eboelzner:
The problem you are having is that the Panel Items have a default height... see the SenseSDK [SensePanels enum] values.

Once you get the string height... set the panel.Height property and you should be all set.