yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Software Development] eboelzner:
New version... v1.39

Hello fellow developers...

I just posted a new version; v1.39

It includes many fixes, primarily to the disposal of panel items and memory management. I have posted this on the first page, but let me say it again...

When closing a form that hosts the SenseList control, you MUST clear and dispose the control!!!!!!! See the demo application for examples [Form_Closing and Form_Closed]

If you fail to call these methods, the panel items and subsequent child items will not be disposed and you will eventually get OutOfMemory Exceptions.

I have also ported the example demo app to vb.net

I also included a sample app that shows how to use the translucent form... both in C# and vb.net

Included is a sample panel item [derived from PanelBase]... both in C# and vb.net

Keep me posted to your testing...

Take Care,

Ed
[Windows Mobile Software Development] greenhacks:
I was hoping in the next release i would be able to add multiple controls next to each other in senselistcontrol.

I want to place 5 textbox next to each other in senselistcontrol.

My entire project is stuck with that :(.

also if i could rename OnOff controls on/off text to for e.g. Yes/No (not important though)

Thanks.
[Windows Mobile Software Development] meltwater:
Just quick question (sorry but I don't know anything about .net memory management), is it a problem if this isn't done and the app is just closed, just using a single list form which is opened and closed with the app.
[Windows Mobile Software Development] ebernazz2:
Do you mean 5 textboxes horizontally spaced rather than vertically (the norm for a slider list)?

Eric
[Windows Mobile Software Development] ebernazz2:
Probably not as Garbage Collection will get most of it and it sounds like your app is not using much memory. However why not simply follow Ed's code and dispose of it in the events shown?

Eric
[Windows Mobile Software Development] meltwater:
Hoping to finish for beta test release tonight (although might end up tomorrow)...but I'll try to get it in for proper release. Just doing the about pages now. ;)
[Windows Mobile Software Development] greenhacks:
Yes, If you notice, that when we add any control in senselistcontrol, they take the full width of the screen, even if i set width = 100, it wont work.

so if i want to place 5 buttons or 5 textbox horizontally next to each other, i cant do it.
[Windows Mobile Software Development] ebernazz2:
I can maybe see 5 small buttons but 5 textboxes? Well anyway you are asking for something I have never seen in a slider list control. Think of it as nothing more than a long graphic that is scrolling so you would have to take Ed's base panel item and create your own panel control and in the render routine "graphic draw" your buttons and then you have to enhance the on click event for that new control to determine where in the panel the user clicked and return an index for which button it was. Now this is not insurmountable as Ed's sample panel item code shows a lot of what I am talking about. In essence you are creating a custom panel item for a specific number of items. You could make it dynamic but that could get very complicated for a beginner.

Eric
[Windows Mobile Software Development] MichelDiamond:
Outstanding work!

Is it possible to add a seperate Eventhandler, if you click on Text instead of number field for a SensePanelTimeItem?

Thanx for all!

Micha
[Windows Mobile Software Development] Skadork:
thanks for exposing the textbox control, that will allow me to bind the data! Hoping to have my program ready for its first release soon :)
[Windows Mobile Software Development] wnrmffo:
It is really gooood!.

I have a question. How can i change color? ' MyPanelItem1 ', Header, List ???

is it possible to change?
[Windows Mobile Software Development] greenhacks:
Can anyone confirm if we can add more then 1 senselistcontrol one below the other on single form?

Thanks.
[Windows Mobile Software Development] greenhacks:
for e.g. even though headercontrol has ForeColor and BackColor properties, they do not work if set to some color.
[Windows Mobile Software Development] ebernazz2:
Sure. Remember that a form is a container control. That makes it easy to do the Controls.Add method. If you want complete control over where and what size and complete independence of scrolling lists then I would simply add 2 TAB controls (they are also container controls) and then draw them on your screen (can be done at design time) or add them through code and then change your sense list control adds to be in one panel or the other and they will live happily ever after. There are other ways but this should do what you want.

Eric
[Windows Mobile Software Development] TeDeV:
hi guys,

is it possible that we can have a datagridview control ?

if someone you have used the datagrid at cf, u will know that it sucks. i was wondering if we can have a datagridview like .net one
[Windows Mobile Software Development] rublopez:
ComboBox with editable text box

Hi,

These controls are great!!

Is it possible to add a property on the sense combo box control which shows an editable text box, as ComboBox.DropDownStyle does?
[Windows Mobile Software Development] leen15:
hi, is possible to have some propriety for text in every item that use it? alignment like left, center, right, and style like bold ecc.

thanks! ;)
[Windows Mobile Software Development] bandanner:
MoreItem

Hi

I would like to implement my own "PanelMoreItem". I think its hard to implement it inheriting from SensePanelBase (the animation etc.), so i tried to inherit from the SensePanelMoreItem. Unfortunately its members are not declared as overridable. How could i easily create a panel with children?

Thank you
[Windows Mobile Software Development] TeDeV:
well i just figured out a big problem. all the controls have a white panel around them.

if i try to create a sensebutton on a black background, then omg i get a white rectangle around the control. is it possible that we can see that fixed?

and how can i place a picture of my own, in the about panel? i don't get it.
[Windows Mobile Software Development] computerjunkie:
You'll have to implement your own panel that inherits SensePanelBase and IDisposable. You can then set the properties as you want.

EVERYONE:

It is important to remember that the included SensePanelXXXXItems are just EXAMPLES. If you want a custom look for your application, you must implement a new panel inheriting from SensePanelBase and IDisposable, override the methods and properties as you would like and add the appropriate sense controls that you would like.
[Windows Mobile Software Development] greenhacks:
I am still looking for an example if someone can create, where i can place multiple controls next to each other in senselistcontrol. :(

i want to place 5 textbox control or 5 button next to each other, cant find a way.
[Windows Mobile Software Development] alto:
After some time, I returned to work on my application, using this great SDK

In the last version (1.39), I get errors in the SenseMessageBox, its not happens all the time, seems to happens when calling the SenseMessageBox.Show from threads.

I can't catch the error by try-catch

Here is the error details:

ExceptionCode: 0xc0000005

ExceptionAddress: 0x03f9e6a4

Reading: 0x0013becc

Faulting module: coredll.dll

Offset: 0x000546a4

at IImage.Draw(IntPtr hdc, Rectangle& dstRect, IntPtr NULL)

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

at _msgBoxButtonControl.OnPaint(PaintEventArgs e)

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

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

at EVL.EnterModalDialog(IntPtr hwnModal)

at Form.ShowDialog()

at SenseDialogs._senseMessageBox.Show(String Message, String Caption, SenseMessageBoxButtons Buttons)

at SenseAPIs.SenseMessageBox.Show(String Message, String Caption, SenseMessageBoxButtons Buttons)
[Windows Mobile Software Development] computerjunkie:
Do you have a delegate in place to handle UI calls? You can't make UI calls from a thread that is not the main thread.
[Windows Mobile Software Development] leen15:
I had a similar error with version 1.39 when i create a senseMessageBox, remove from senselist and then try to re-add.

With 1.38 all work good, with 1.39 i had to copy all proprieties before remove it and renew the item when insert in senselist.
[Windows Mobile Software Development] computerjunkie:
Just out of curiousity...what would you add a senseMessageBox to a senselist?
[Windows Mobile Software Development] leen15:
Sorry, I wrong to write, it was a SensePanelTextBoxItem :D

I have to insert an item before of others, so first with 1.38 i define them when i create the senselist, then i remove, insert my new item and re insert the items... with 1.39 not work because i think when i remove an item from the list it lost the handle.. :confused:

i resolve backupping the propriety of every item and re-new it before insert in senselist.
[Windows Mobile Software Development] TeDeV:
i would love to see some example of what you are saying.

to ebo... can you plz have an option to have layout style to the combobox too? i want to have it horizontaly. thank u
[Windows Mobile Software Development] greenhacks:
Even i need combobox with horizontal laybelstyle layout.
[Windows Mobile Software Development] Lmiller1708:
@eboelzner!

Thanks for this great SDK!

I made a Carrier Provision application with it and it works great!

I guess it could be called YACP (Yet Another Carrier Provision)... ;)

This SDK is working great on my vogue and TP2!

I still have a lot to learn with the SDK but it will help out with the recent VB example you posted! (Haven't needed to learn CS yet, and don't plan on it...)

But thanks again for the hard work you have put into this and a donation will be sent your way!:cool:
[Windows Mobile Software Development] alto:
Another improvement to this great SDK will be to have LayoutSytle to the SensePanelComboItem as it in he SensePanelTextboxItem.

I need it since I have a form with a lot of data in it, and want to reduce the vertical dimentions.
[Windows Mobile Software Development] leen15:
Hi, can someone help me for set the right height of a SensePanelItem dynamically by the length of the Text?

an example is derived from Sense sample:

senseItem = new SensePanelItem();
senseItem.PrimaryText = "It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout.";
senseItem.PrimaryTextAlignment = SenseAPIs.SenseFont.PanelTextAlignment.Top;
senseList.AddItem(senseItem);

In my app, the length of the text is dynamic, so i have to set the right height but i don't know how.

Thanks.
[Windows Mobile Software Development] meltwater:
Just want to report no issues with the SDK on my app, beta testers love the look it provides!

Also got my own about box and the Sense Sdk one too. Thanks for the pointers!

Good work. Thanks again.
[Windows Mobile Software Development] computerjunkie:
There's no easy way to do this. Look into Graphics.MeasureString() function. You may also need to write a custom class that uses the native DrawText() method to get the string height.
[Windows Mobile Software Development] greenhacks:
If we set dock to none to header control, it will still dock itself on top.

senseHeaderCtrl.Dock = System.Windows.Forms.DockStyle.None

Also if you set a height to custom value will also not show any effect.

senseHeaderCtrl.Size = New System.Drawing.Size(DrawingCE.Resolution.ScreenWidth - 8, 20)

Has anyone faced this issue?
[Windows Mobile Software Development] computerjunkie:
did you try using the Height property (if it's available), instead of using the Size property?
[Windows Mobile Software Development] Reaper:
Anyone else having this issue:

When just scrolling through the list, all of a sudden a outofmemoryexception will occur. It seems to happen randomly.
[Windows Mobile Software Development] Tumys:
eboelzner, that toolkit is really awesome! Outstanding work! It's fantastic what you managed to recreate with this toolkit.

I'm currently experimenting with this toolkit for an application I create, and the toolkit is very developer friendly to use. It's great to be able to use the Sense UI in such an easy way.

The new VB samples are very useful as well :)

I have a question. I own a HTC Mini, which has a HVGA resolution (320x480). While the SDK runs flawlessly, the scaling of the controls is a bit off. Is there a way to control the scaling of the controls, or maybe to manually change whether the SDK runs in VGA/QVGA mode? That is, without manipulating the "Height" property, as the images would need to be a bit bigger as well.

Please see the attached screenshots for a comparision between SenseSDK and different property panels from HTC.

Thanks again for all your hard work.
[Windows Mobile Software Development] Skadork:
Please read the first post by the creator of this SDK. your issue is addressed there.
[Windows Mobile Software Development] Reaper:
@Skadork,

Yeah, I am aware of the disposing/clearing of the list when closing a form which has a list on it. As far as I know I am doing this on every form which has a list. But is this the only way that this issue can occur? Anycase I will go back and make sure everything is being disposed
[Windows Mobile Software Development] greenhacks:
I have used almost most controls from this sdk, and trust me, i have loaded more then 30 controls in listcontrol, and even lot more in every moreitem (and moreitem also has lots of moteitem), so far i have not got any outofmemoryexception error. Never seen such message yet.

Just wondering if it is good or bad :p
[Windows Mobile Software Development] greenhacks:
Setting scrollbar to multiline textbox in listcontrol does not work. :(

txtbox.ScrollBars = ScrollBars.Horizontal (no effect of this)

Any one had this issue?
[Windows Mobile Software Development] greenhacks:
setting forecolor to textbox has wierd effect.

For e.g if we set:

spnl_textbox.Textbox.ForeColor = Color.Green

then in run time on device, you will not see green color but just default black.

Now select the text and then again deselect by tapping in same textbox, and text turns green. Now tap somewhere else, again that green turns back to black.

Looks like a bug. :(
[Windows Mobile Software Development] TeDeV:
and plz can we have a sensepanel image box? with transparency enabled if possible?
[Windows Mobile Software Development] greenhacks:
Imagecontrol would be awesome, i also wanted to display some images, but was least of my requirement.
[Windows Mobile Software Development] computerjunkie:
Check out the examples. there are places where he draws thumbnails. You would do it the same way.
[Windows Mobile Software Development] GeirFrimann:
The error can be easly reproduced with the sample application:

Add a new form to the project

Add a button to the form, with code to load frmListDemo.cs:

private void button1_Click(object sender, EventArgs e)

{

using (frmListDemo f = new frmListDemo())

{

f.ShowDialog();

}

}

Replace Application Exit() whit this.Close() in mnuExit_Click() in frmListDemo.cs:

private void mnuExit_Click(object sender, EventArgs e) {

//Application.Exit();

this.Close();

}

Change Program.cs to load the new form

Run the program in debug.

Click the button in form1 and click exit in frmListDemo several times, eventually you get an OutOfMemoryException. (Or is it just me???)
[Windows Mobile Software Development] Reaper:
I got it working by manually adding the code and I might have found an easier way for some people to get started.

What I did was I added the SenseSDK.Resources.QVGA.dll , SenseSDK.Resources.VGA.dll and StedySoft.SenseSDK.dll to my references (as advised by johncmolyneux) . Then I copied the list (in the IDE) from the SenseSDKDemo and pasted it in my own project. If you then add items to the list it works fine.

Doing it this way is a bit faster then doing it all manually. Hope it helps some of you out.

One more question though, is there a way to speed the "button effect" of list items, you have to click them a bit long for them to highlight, and if you click fast it still functions (the event fires) but you get no highlight of the item. Anyone else notice this?
[Windows Mobile Software Development] GeirFrimann:
Limit width of controls in SenseListControl?

Is it possible to limit the size of a control added to the SenseListControl?

I would like to add a textbox, and have a button control next to it. Is it possible?

BTW, where is the author?? No relies for a long time...
[Windows Mobile Software Development] t0flus:
I bet he's working on the issues, or having a beer or two...... Give him a break. It's free...have patience...
[Windows Mobile Software Development] :
Well said. I also noticed a few issues:

- The SensePanelTextBox does not work when the MultiLine feature is enabled. Works fine without Multiline though

- The OnClick event of a SensePanelMoreItem does not fire if the ProcessEntireButton is set

Otherwise, great work! I think you have many advantages over the MichyPrima implementation in that:

1. Looks better

2. Don't have to set the Index of an item before adding to the list

3. Seems to be more stable

4. The ISensePanelItem interface exposes a lot more members, thanks!
[Windows Mobile Software Development] spastik:
I'm, using StedySoft.SenseSDK.SensePanelMoreItem to load a list control full of items.

My source of information is a giant XML so I would like to load all child items only and you click or drag the panelmoreitem.

OnClick Event doesn't seem to be used when I click on the panelmoreitem.

Does anyone has any ideas to accomplish this?
[Windows Mobile Software Development] PhilMorris:
I cannot make the selectedindexchanged event to work.

The sub in VB.NET is like that :

Private Sub cbCat_OnSelectedIndexChanged(ByVal Sender As Object, ByVal Index As Integer) Handles cbCat.OnSelectedIndexChanged

but it doesnt fire up when I select a different item.

I also added a handler :

AddHandler cbCat.OnSelectedIndexChanged, AddressOf cbCat_OnSelectedIndexChanged

Any ideas ?

Where is my mistake ?
[Windows Mobile Software Development] spastik:
please think about including a new PanelMoreItem in which we could add an image. :)
[Windows Mobile Software Development] cnzqy1:
The ">" image is not quite the same as in Manila, hope you will improve it!

PS: You can get the image from a Leo Menu Enhancement package.
[Windows Mobile Software Development] eboelzner:
Working on an update...

Hey guys and gals...

Just wanted to drop in to let you know that I am working on an update to address most of your issues...

Hang in there... soon!!!!

Thanks,

Ed
[Windows Mobile Software Development] ArtifexAlpha:
Fantastic library.

One of the issues I noticed is if I change PasswordChar on SensePanelTextboxItem the control behaves as expected while it has focus, but if it another control has the focus it displays the plaintext.
[Windows Mobile Software Development] :
I noticed this too, also I get an OutOfMemoryException when repeatedly opening a form with a SenseList on it.

Thanks eboelzner, this really is a great library :)
[Windows Mobile Software Development] GeirFrimann:
Great! Really looking forward to the new release!
[Windows Mobile Software Development] chris22:
Looks good, still having problems getting the controls to show in the Toolbox. They´re not there at all, but that will hopefully be solved soon.

What about other themes like the black one found in Sense 2.5? Can we create themes?

Will you publish the sourcecode for the library? Involving other developers might help you fix issues and create samples. Codeplex.com might be a good solution for you.

Thanks for your great work!
[Windows Mobile Software Development] Svesel:
You could work with the index numbers like followed:

For each Item:

AddHandler Item.OnClick, AddressOf OnClickItem

and fire actions with:

Public Sub OnClickItem(ByVal sender As Object)
If SenseList.FocusedItem.Index = 1 Then
[I]make something...[/I]
End If
End Sub

For many items you could use an collection that is in sync with the index of the SenseList. Just an idea :)

Greetz

EDIT:

I'd tryed a bit arround with these controls. Firstly, very good work! Great performance - even on the older diamond...

But ive failed to use an external saved .png as small thumb in the senselist item... Any thoughts ?

How did you managed that in VB .Net with VS8 ?

Greetz
[Windows Mobile Software Development] PhilMorris:
Thanks for your answer, but you are talking about SenseComboControl inside a SenseList.

I just placed a SenseComboControl on a form.

The above code is producing on error :

'OnClick' is not an event of 'StedySoft.SenseSDK.SenseComboControl.Item'

Any ideas ?
[Windows Mobile Software Development] spastik:
Is it possible to change the " > " image of the panelmoreitem ?
[Windows Mobile Software Development] brandi:
this looks so awesome! thank you alot! It is perfect for my next project :)
[Windows Mobile Software Development] Archer:
I'm still working with this on my existing stuff and new projects and loving it! I've only found one real niggle with it and I'm sure it's a minor thing, but you need to know anyway.

When you run an app that uses the list control (and some controls in it, obviously ;)), if you swipe them off the top or bottom of the screen they bounce back as you'd expect and it works great.

However, if you swipe up or down whilst also swiping left (diagonally, but always from right to left) then they don't return to their original position and you can scroll items off the screen this way.

Thought you should know, despite not being a "showstopper".

Keep up the good work mate ;)
[Windows Mobile Software Development] spastik:
one other thing.

I think it should be possible to keep the primary/secondary text properties into a single line os text since some times when a panelitem takes more than one line the content becomes almoste unreadable. By keeping it into a single line we could at least make a scrolling message if needed.

Another option would be to autosize panels depending on the number of text lines. :)
[Windows Mobile Software Development] greenhacks:
Not sure to which image you are refering, but if you are refering to the panelitem icons which is on left side of text, they are already part of exposed property.

can you point out which row/column number that image is which has thumbnail from the screenshot Ed has posted on 1st post.

Thanks.
[Windows Mobile Software Development] computerjunkie:
I had this problem once. I created one BIG PanelItem and scrolling just this one panel item caused an exception.

I'm guessing the drawing routine needs to be tweaked a little to make sure it only draws what is currently shown on the screen and release the the "hidden" resources immediately. I'll do some extensive testing soon and figure out the breaking point to give Eb a better answer. Sometimes, working in QA helps :)
[Windows Mobile Software Development] Skadork:
From first post:

are you using the 2.0 .net CF so that you can drag/drop items? if so, that's you're problem.
[Windows Mobile Software Development] IzaacJ:
Hello :)

Wonderful tools :D

I'm currently using it for a tmail.exe replacement. (http://pmmsg.codeplex.com/) And when I've loaded all messages into a SensePanelMoreItem (one per number) as SensePanelItem and I've browsed through a few MoreItems I get a OutOfMemory exception...

Could it be because of the high amount of SensePanelItems? There are about 150 under one MoreItem, and about that amount under the others to.

I think there is a total amount of ~800 SensePanelIems.

//

Izaac