yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Software Development] meltwater:
I think you might be able to catch the event and cancel it from within the following event handler:

this.senseList.OnBeforeShowItemChildren += new SenseListControl.BeforeShowItemChildrenHandler(OnBeforeShowItemChildren);

private void OnBeforeShowItemChildren(SenseListControl.ISenseListItem Sender, ref bool Cancel)

Hopefully that will point you in the right direction (I don't know the exact code).
[Windows Mobile Software Development] adamrob69:
yes, i have the event, but how do you go about cancelling the event
[Windows Mobile Software Development] cyberde:
Maybe by setting Cancel to true? Don't know for sure cause I havn't used Cancel yet.

private void OnBeforeShowItemChildren(SenseListControl.ISenseListItem Sender, ref bool Cancel) {
Cancel = true;
}
[Windows Mobile Software Development] meltwater:
Google some examples, it seems to be something like that.
[Windows Mobile Software Development] wesch00:
Ok, then I do not know what you are doing exactly. My SenseListControl doesn't allow to scroll to right if there are nor SensePanelMoreItems. And even if they are there, it does not "scroll to right" but o left by swiping. It only scrolls, when I press the SensePanelMoreItem. It scrolls thenafter to "left" by swiping

May be I missed something and there is a property in the SenseListControl which switches on the "right/left scrolling".
[Windows Mobile Software Development] adamrob69:
Maybe there is a property but i carnt find it! it also does it in the list example.
[Windows Mobile Software Development] kitarolivier:
Thank you for this nice tool !

I'm developping a DVD/Blu Ray viewer for pocketPC using the Invelos DVD Profiler Database, and I would like to display the DB in a list.

I've a form (C#) with SenseListControl, and I fill it with SensePanelItem (1 for each DVD).

What is the best toplace picture of them in this list ? I know I can use the IThumbimage to place the picture, but when loading the collection it can take a long time to load the dvd cover from jpg, resize it and put it in IThumbimage. Also, I suppose that a large collection can throw an out of memory exception.

So I made an item class based on SensePanelBase, and add it a property 'bmpPath'. I fill this one instead of the IThumb, and at the OnRender(), if (_img) is null, I load the picture. That works better since the collection is loaded more quickly, but when scrolling to 'never displayed rows', it's so slooow (of course, it must load and resisze pictures).

I also tried to make a collection of pictures, remembering time of last use of a picture. If the picture I have to display is not in list, I discard the oldes one (last use is the min), and load the new picture. This works better (I won't get memory exception), but it is still scolling slow when browsing lines where images have to be loaded.

How could I load the images asynchronously ?

Regards,

Olivier
[Windows Mobile Software Development] adamrob69:
Ok i got that working fine, thanks for the help.

However on a different matter. I have my main list, and then i have a child list also. When the child list is drawn i would like to alter the text of a control on the child list. However i am struggling to see how to do it as the obviouse way doesnt seem to work

This is what i got so far:

Dim ListChild As SensePanelMoreItem = Me.listMain.Item("childList")

'define list items
Dim Item1 As SensePanelCheckboxItem = ListMultiple.Children.Item("childItem")

'set property
Item1.PrimaryText = "New Text"

any ideas?
[Windows Mobile Software Development] mSafdel:
Sense SDK is perfect. I use it for an persian WM app. It's not completed yet.

please please please add Text Alignment feature to all SenseSDK controls.

Thanks SenseSDK team

mSafdel
[Windows Mobile Software Development] cyberde:
I gave my app to a friend to test it and he also noticed that the password fields wasn't accepting any other characters beside numbers and special chars.

So there must be something wrong here...
[Windows Mobile Software Development] Nixeus:
Any news about the v1.4 ?
[Windows Mobile Software Development] :
Move Cursor to SenseTextBoxControl

Is there any method I can call to move the cursor / focus to the SenseTextBoxControl?

I tried Focus, Select and SelectAll, all of them do not work.

Please help.

Thanks
[Windows Mobile Software Development] :
Image Button

Anyone has experience drawing a transparent image onto the SenseButtonControl.

I would like to implement an ImageButton control.

Thanks,
[Windows Mobile Software Development] wesch00:
I have no experiance with drawing on a SenseButtonControl in special, but with drawing in common.

The Compactframework doesn't support alpha blending on drawing. If you do not want to use it, you can simply draw a bitmap and define an ImageAttribute. This ImageAttribute allows you to specify a color used as transparant, mostly magenta is used therefor.

If you need to have alpha blending since it is supported in CE, then I recoment to read this blog. Nevertheless I encountered some problems with this approach. Some icons I draw causing an exception if there is a specific number of icons in my app. If I remove one then it works but it doesn't matter which one I remove. And it doesn't throw the exception every time. The more icons I have the more chance the exception is drawn. it seems to be a problem in the coredll.
[Windows Mobile Software Development] meltwater:
Try the "IImage" from "StedySoft.SenseSDK.DrawingCE.SenseAPIs.SenseImage" (part of the SDK), takes some getting used to using but it supports alpha blending and works very well. Greenhack's uses them in the extended controls to great effect.
[Windows Mobile Software Development] Nixeus:
Hello,

I have a little problem with the SenseAPIs.SenseImage.LoadIImageFromFile().

here is my code

IImage iimg = SenseAPIs.SenseImage.LoadIImageFromFile("Coh_center_logo.png");
Graphics g = e.Graphics;
Size sz = SenseAPIs.SenseImage.GetIImageSize(iimg);
g.DrawImageAlphaChannel(iimg, new Rectangle(0,103, sz.Width, sz.Height));
SenseAPIs.SenseImage.ReleaseIImage(iimg);

When i run my apps, i have : "Error loading image resource ! [Null reference exception]"

I have paste my image on the ressource folder, on my application folders,etc...

Nevertheless, if i use the

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

Where "about" is the ressource inlcuded in the demo app

I have no problem.

So i have a problem with the LoadIImageFromFile.

Anyone have an idea please ?

Thanks a lot :)

regards,

Nixeus
[Windows Mobile Software Development] recrack:
Hi all,

I want to modify SenseListControl backcolor and list image.

Do you have any idea?

If i did

void mainform_Load()

{

SenseListControl s_list = new SenseListControl();

//Create list control properties.

s_list.Dock = System.Windows.Forms.DockStyle.Fill;

s_list.IsSecondaryScrollType = false;

s_list.Location = new System.Drawing.Point(0, 200);

s_list.MinimumMovement = 15;

s_list.Name = "s_list";

s_list.ShowScrollIndicator = false;

s_list.TabIndex = 1;

s_list.ThreadSleep = 100;

s_list.TopIndex = 0;

s_list.Velocity = 0.9F;

s_list.Springback = 0.35F;

s_list.BackColor = Color.Yellow; //<-- it doesn`t work!

}
[Windows Mobile Software Development] kliptik:
Has anyone created a progress bar for this SDK? That would be a very nice addition if not...
[Windows Mobile Software Development] Nixeus:
Hello,

Is this project dead , or already in développement ?

I hope that yes :)

Thanks a lot,

Regards,

Nixeus
[Windows Mobile Software Development] doanvanvinhtho:
Hi all,

Please tell me how to remove space of SensePanelButton.LabelText when it is NULL or Empty.

Thanks
[Windows Mobile Software Development] ludo59210:
Hello,

How the SenseListControl.ShowChildren() works ?

I want to display a Children panel automatically.
[Windows Mobile Software Development] pilotdad:
Get status of checkboxes in SensePanelCheckboxItem

I created a child panel with a number of SensePanelCheckboxItems.

How do I obtain the Status of each checkbox item? I can call the following in the Immediate Window -

senseListCtrl._items._itemValues._items[1].SensePanelCheckboxItem.Status

But I can't do this programmatically if I want to use a menu button to verify the status of each item in the list?
[Windows Mobile Software Development] papajohn:
Hi guys,

I 've been using SenseSDK in one of my apps, and some of my users complain that it crashes. After some remote debugging, it seems that an OutOfMemoryException is the cause, fired in a form that contains 2-3 SensePanelComboItems, each with around 150 items. The same form with less items is displayed fine. Also in the emulator and on my HD2, it always works just fine. Of course, I always dispose stuff as Ed suggest in the first post.

Here is a stack trace:

System.OutOfMemoryException: OutOfMemoryException

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

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

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

at StedySoft.SenseSDK.SenseListControl._createGraphicObjects()

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

So, the question is: is this some kind of well known SenseSDK problem? Is there any way out apart from restructuring my forms (with an uncertain result I must say)

Cheers,
[Windows Mobile Software Development] ebernazz2:
Using iimage will do thius.the quality of image is not as good as iimage but much more stable.

Eric
[Windows Mobile Software Development] kliptik:
I'm coming close to a similar issue... I have just over 130 items in a SensePanelMoreItem, and it doesn;t scroll as fluidly as it does with fewer items. I haven't run into any OOM exceptions yet, but I can tell the difference.

Any solutions would be greatly appreciated!
[Windows Mobile Software Development] meltwater:
Yep I've found this is the case, although I still get some issues, but can get a lot more info on the screen.
[Windows Mobile Software Development] MichelDiamond:
we all hope for any solution...

here's mine similar failure message:

CHTS.exe
COMException
Unspecified error

bei StedySoft.SenseSDK.SensePanelMoreItem._getImageSize()
bei StedySoft.SenseSDK.SensePanelMoreItem.OnRender(Graphics g)
bei StedySoft.SenseSDK.SenseListControl._renderGraphics()
bei StedySoft.SenseSDK.SenseListControl.OnPaint(PaintEventArgs e)
bei System.Windows.Forms.Control.WnProc(WM wm, Int32 wParam, Int32 lParam)
bei System.Windows.Forms.Control._InternalWnProc(WM wm, Int32 wParam, Int32 lParam)
bei Microsoft.AGL.Forms.EVL.EnterMainLoop(IntPtr hwnMain)
bei System.Windows.Forms.Application.Run(Form fm)
bei CHTS.Program.Main(String[] args)

it's sometimes if scrolling down in main windows after coming back from children of the more items.

I hope here's still somebody, who also can help us and that the sdk is still under developing.

it's a great piece of software and much devs work with it and very much users uses it.

so it's not a primary interest of having a toolbox, I really only want to have the parts free of the already known bugs.

Also for the flickering while scrolling, if some items are set to visible=false.

It would be cool to know, if we could await an update for it - only a little known-bug-fix. no new functionalities, if ebhoelzer has not much time at the moment for us. simple fix would make use happy (and to know if that will come whenever)
[Windows Mobile Software Development] leen15:
Hi at all!

if i have a SenseMessageBox and press "OK" button only after for example 5-10 minutes, i have this attach error.

Some idea? :confused:

Thanks! ;)
[Windows Mobile Software Development] ludo59210:
Ok I've found the solution :

I call	SenseListControl.ScrollIntoView( myItem ) first and it works
[Windows Mobile Software Development] Johnsel:
I think most (if not all) ComExceptions can be avoided by passing the image size too:

ImageInfo imageinfo;

iimg.GetImageInfo(out imageinfo);

itm.Image = iimg;

itm.ImageSize = new Size((int)(imageinfo.Width), (int)(imageinfo.Height));

Also, to stop your from crashing when clicking back while scrolling

replace your _Closing method with:

this.senseListCtrl.ScrollIntoView(senseListCtrl[0]);

this.senseListCtrl.Clear();

instead of just clear.
[Windows Mobile Software Development] X0000:
+1 We can help you...
[Windows Mobile Software Development] Nixeus:
It's true that unique Sense SDK will be the best !

But, if WM6.5 is going to be replaced by WP7 wi will have the WP7 sdk

Wait and see...

But we need a Sense SDK 1.4 version, with toolbox :)

Thanks a lot all :)

regards,

Nixeus
[Windows Mobile Software Development] cyberde:
Agreed, but for now we're still developing for Winmo 6.5 :) And I'm not switching to 7 yet :P
[Windows Mobile Software Development] bfranco:
Changing the color of a ListCtrl

I try the following :

this.senseListCtrl.BackColor = Color.White;

but it's not working.

What I want is a listCtrl with a white background.

Somebody any idea what I'm doing wrong here ?

Best regards,

Keep up the good work about SenseSDK !
[Windows Mobile Software Development] MichelDiamond:
Thanx for trying to help. Really appreciated!

Unfortunately the ScrollIntoView doesn't help.

And my itm is (like for the most other devs here) a moreitem... and this has no .ImageSize

I tried much other things and wasted only hour for hour :(

Mostly if the children is scrolled down and I get back to top parent and scroll down... crash.

Also for the flickering... nothing helps.

Only an update would be able to solve these problems. And the biggest problem is, that the users of our apps with SenseSDK, don't know, that this is a SDK-bug and so we get the nice comments for the exceptions...

But really big thanx nevertheless for the feedback. If you have another idea... I would try it
[Windows Mobile Software Development] kliptik:
To anyone else looking for something similar, I ended up just using the trackbar item. It looks pretty good as a progress bar.
[Windows Mobile Software Development] Nixeus:
Hello,

Anyone have news about this project ?

Is this project dead ?

Thanks a lot,

regards,

Nixeus
[Windows Mobile Software Development] MichelDiamond:
I hope not... I'm feeling as alone as you, guys... :(
[Windows Mobile Software Development] doanvanvinhtho:
dV2t Translator V3 using SenseUI SDK (eboelzner)

Hi everybody!

dV2t Translator provides bi-directional translation of words and phrases between languages (using BING or GOOGLE translator)

Features: :)

Free and open source (hosted at Microsoft Codeplex and Google Code)

Translate between languages: integrate 2 services (GOOGLE, BING) into one program.

Users can select translation services, can compare the results of them.

Support pronounce text (text-to-speech)

Undo, Cut, Copy, Paste, Delete, Select All

Using interface "Sense HTC's UI Look 'n Feel" (thanks eboelzner)

Requirements:

.NETcf 3.5

Internet connection (GPRS/3G/Wifi)

Some pictures of the software version 3:

http://s.dv2t.net/TranslatorV3SlideShow

​

Link download software and source code:

http://s.dv2t.net/TranslatorV3​
[Windows Mobile Software Development] Nixeus:
Hello my friend,

Which technology do you use in order to search for a new version in your apps ?

Thanks a lot,

regards,

Nixeus
[Windows Mobile Software Development] doanvanvinhtho:
Hi Nixeus,

Do you ask about my software (dV2t Translator)?

I use WEBSERVICE to get lastest version and compare it with current version of running app. If it newer, a warning message box will appear.

http://dv2ttranslator.codeplex.com/SourceControl/changeset/view/66078#1406271

Regards
[Windows Mobile Software Development] Nixeus:
Ok my friend, So you have made your own "apps update", true ?

Thanks a lot :)

Edit : Hope the 1.4 SDK version will be out soon :)
[Windows Mobile Software Development] wesch00:
I have a problem with the ITranslucentForm.

It work correct until I do an Invalidate on the form. Before the translucence is about 50%, thenafter it is only about 5%. The underlying picture is only seen very low,

Any ideas what I am missing?

For retest, simply derive a class from ITranslucentForm and in OnClick event call Invalidate.
[Windows Mobile Software Development] leen15:
Hi at all!

I see that when i set focus or lost focus on the textbox in sensePanelTextboxItem the panel select all the text..

Is possibile to disable or set the cursor at the end of the text?

thanks! ;)
[Windows Mobile Software Development] v8dave:
I figured it out... It was this line.

this.senseListCtrl.Size = new System.Drawing.Size(this.ClientRectangle.Width, this.ClientRectangle.Bottom);

Somehow the return from the Width and Bottom where actually VGA sizes and this was causing an out of memory error. When I changed it to this it worked. But I don't like to work with QVGA coordinates as it does not allow the list control to fill the full screen area available with WVGA screen I am also developing on.

this.senseListCtrl.Size = new System.Drawing.Size(240, 236 - 25);

Anyone know how I can get back the coordinates for the screen area that is the drawig area. I keep getting back VGA coordinates instead of QVGA which the development system assume to be working in. The form painting seems to take care of filling the VGA screen during painting. I have looked for info on scaling and found nothing.

Cheers,

Dave...
[Windows Mobile Software Development] bassvix:
Mirabyte versus Sense SDK for commercial apps

Response of Mirabyte about using of Sense SDK:

"...but don't forget that you are not allowed to write commercial apps with Sense SDK, because the of the HTC copyright of the Sense Design and Look&Feel."

It´s true????
[Windows Mobile Software Development] janneman22:
i guess so, but i know several apps that use this style:rolleyes:
[Windows Mobile Software Development] v8dave:
They would be stupid to block sales of software if it mean't advertising of their products. After all, selling your software and saying it has the look and feel of HTC's software will give free advertising for HTC wouldn't it. Gotta be good for business in my sense of things.

If I was a manufacturer I would be happy with this as long as you where not selling a competitive product. A single application for purposes other than HTC Sense can't be seen this as a copyright infringement. But then again, you know lawyers, if there is a way to get money out of it, they will.... :o)
[Windows Mobile Software Development] bfranco:
Dear developers,

I'm looking for somebody who can add the AutoCompleteMode, AutoCompleteSource and AutoCompleteCustomSource to the SensePanelTextboxItem, so I can use this feature like I used to in the normal windows form textbox items.

Hope someone is willing to help me here !

Keep up the good work.

Best regards,

Bart
[Windows Mobile Software Development] Nixeus:
For this it will be great that the sdk will be open source, or, that the project is continued...

I appear that is sdk is dead :(
[Windows Mobile Software Development] bfranco:
Indeed,

I second Nixeus idea of making this development open source.

best regards
[Windows Mobile Software Development] kliptik:
quick question:

I have a SensePanelMoreItem and one of the children is a SensePanelMoreItem. when the user selects something in the sencond SensePanelMoreItem, i need it to animate back to the main form, basically ShowParent twice. ive tried just coding it to ShowParent() twice, but the animation looks bad...

Has anyone successfully done this?

TIA!!!
[Windows Mobile Software Development] heart_crafter:
Try making the second MoreItem .Visible=False then ShowParent twice...
[Windows Mobile Software Development] sharkie405:
What's up everyone! I have a quick question. I'd like to skin all the HTC green in SenseSDK to a blue. I saw Dwizzy's post here and the .cab and EXT he made using eboelzner's files. These are supposed to be for skinning right? I've tried that .cab but things look the same. I then switched out all the green PNGs for blue ones thinking that maybe I just couldn't tell difference in the green ones, but still nothing changed. I've not tried his EXT yet.

I also have 3 or 4 apps in my ROM that use SenseSDK. Is it possible to skin SenseSDK in apps that have already been cooked into a ROM or does this need to be done by the author of each app?
[Windows Mobile Software Development] bassvix:
How to use SQL Server CE and Dataset no "Out of Memory" error

My problem is "Out of Memory", but my design is correct, then what is the reason I believe that is the use of database, SQL Server CE, and Dataset.

The cause may be because the System and System.Data (and perhaps another assembly) are not version 3.5, or are they? See the error message when compiling:

Consider app.config remapping of assembly "System.Data, Culture = neutral, PublicKeyToken = 969db8053d3322ac, retargetable = Yes" from Version "2.0.0.0" [] to Version "3.5.0.0" [C: \ Program Files \ Microsoft.NET \ SDK \ CompactFramework \ v3.5 \ WindowsCE \ System.Data.dll] to solve conflict and get rid of warning.

Consider app.config remapping of assembly "System, Culture = neutral, PublicKeyToken = 969db8053d3322ac, retargetable = Yes" from Version "2.0.0.0" [] to Version "3.5.0.0" [C: \ Program Files \ Microsoft.NET \ SDK \ CompactFramework \ v3.5 \ WindowsCE \ System.dll] to solve conflict and get rid of warning.

C: \ Windows \ Microsoft.NET \ Framework \ v3.5 \ Microsoft.Common.targets: warning MSB3247: Found Conflicts Between different versions of The Same dependent assembly.

C: \ Windows \ Microsoft.NET \ Framework \ v3.5 \ csc.exe ...

After doing the fix, create the app.config with the configuration:

<? Xml version = "1.0" encoding = "utf-8"?>

<configuration>

<runtime>

<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">

<dependentAssembly>

<assemblyIdentity name="System.Data" publicKeyToken="969db8053d3322ac" culture="neutral"/>

<bindingRedirect oldVersion="2.0.0.0" newVersion="3.5.0.0"/>

</ DependentAssembly>

<dependentAssembly>

<assemblyIdentity name="System" publicKeyToken="969db8053d3322ac" culture="neutral"/>

<bindingRedirect oldVersion="2.0.0.0" newVersion="3.5.0.0"/>

</ DependentAssembly>

</ AssemblyBinding>

</ Runtime>

</ Configuration>

The compilation error no longer occurs, but still unable to use the program because of the error "Out of Memory" at random, sometimes not even load the program, sometimes I start using random moment but the error occurs.

Will I have to find another option to use API for the database?
[Windows Mobile Software Development] MichelDiamond:
As contribution to ebhoelzer's great work - new app with this awesome SDK:

--> CHTS <--

THANK YOU FOR MAKING THIS POSSIBLE!

Micha
[Windows Mobile Software Development] avantgarde280:
My CHTS always out of memory...:(
[Windows Mobile Software Development] one_e00:
Calendar

Hi, i've attracted with the calendar that u put in your screen shot, how could i get only that calendar on my htc hd? i use stock rom..

thanx.
[Windows Mobile Software Development] Archer:
I understand now.

You'll need to handle the OnClick event of each SensePanelRadioItem. You can then use each event handler to set the text values (you can cast Sender as a SensePanelRadioItem in order to read the secondary text.)

I'd actually recommend making 1 event handler and having them all use that, rather than have 1 each, but that's neither here nor there. The thinking is the same either way. It's just tidier to do it this way.