View Full Version : [.NetCF Library] Manila Interface SDK
michyprima
30th September 2009, 06:02 PM
http://img156.imageshack.us/img156/7060/screenshot10hy.th.png (http://img156.imageshack.us/i/screenshot10hy.png/)http://img223.imageshack.us/img223/5495/screenshot12x.th.png (http://img223.imageshack.us/i/screenshot12x.png/)
* Automatically detects screen size and dpi and adapt to it images
* Various manila styled controls, to allow you make a better-looking .net application
* Possibility to override automatical screen detection if it doesn't work for you
* Kinetic scrolling list control, where you can add any kind of control into it to make your app finger friendly
Download:
SDK: http://rapidshare.com/files/362516474/ManilaDotNetSDK_v3.rar
:D
PLEASE DO NOT MIRROR!!!
License:
You are not allowed to disassemble, reverse engineer or merge this dll in your projects.
You are allowed to use it in any kind of free project, referencing to it, without any charge. What I'm asking to you is just a little quote in your about screen :)
If you are going to use that in any application to sell, I appreciate a contribute :)
Classes included:
ManilaHeader, ManilaOnOffSwitch, ManilaButton, ManilaCheckBox, ManilaProgressBar, ManilaPanelButtonItem, ManilaPanelCheckBoxItem, ManilaPanelGeneralControlHost, ManilaPanelItem, ManilaPanelOnOffItem, ManilaPanelSeparatorItem, ManilaTextBox (OBSOLETE), ManilaMessageBoxHelper, ManilaNewTextBox
Changelog:
v1.0) Initial release (Released Oct, 1 2009)
v2.0) Added ManilaTextBox, ManilaMessageBox, ManilaTrackBar, fixed checkbox transparency, improved scroll speed, selectability support and IKListItem interface (Released Oct, 11 2009)
v2.1) Added ManilaNewTextBox (ManilaTextBox declared as obsolete), list items can have their own height, added ManilaSeparatorItem, various bugfixes and enhancement, plus removed unuseful things. (Released Oct, 31 2009)
v3.0) Bugfixes on the list, on the controls. Changed the way items on the list are managed and more. Enjoy... (19 march 2010)
Plan for next version: ManilaTabControl :)
Finally,
Remember that donations are never expected but always appreciated. :)
KListControl Origins: http://forum.xda-developers.com/showthread.php?t=333124 (enhanced and fixed by me ;))
Donations received:
€10 - Makeveral
€10 - AgentBignose
€20 - Roccc
€10 - VPAFan
Thank you all!
btxakita
30th September 2009, 06:05 PM
that's really what I want
Having been studying custom .netcf control for several days
gr8 realese.!
sergiorus
30th September 2009, 08:30 PM
You want to say that terrible and long process of resizing/porting is in the past?
And it can resize only new packages like from Leo and Rhodium, which have grafics coordinates stored in .xml, am I right?
Will wait for release
jmckeejr
30th September 2009, 09:08 PM
You want to say that terrible and long process of resizing/porting is in the past?
And it can resize only new packages like from Leo and Rhodium, which have grafics coordinates stored in .xml, am I right?
Will wait for release
I believe this is a developer tool, ie netcf library for use with visual studio or similar program. This should enable developers to make applications universal to all resolutions that will flow nicely with manila interface. Very interested to see, as I am trying to learn a bit of programming myself. For resizing new packages that use xml I suggest programatix' xmlgui tool :)
cant wait to see some applications developed or updated with this. if it is easy enough to use, I would love to make some to replace some of the custom mortscripts that I am using in my ROMs now :)
makeveral
30th September 2009, 09:51 PM
wow really nice! i'll try it!
thanks!
jdiperla
1st October 2009, 02:57 PM
I know people hate these kinds of questions, but any news on how SOON the coming soon is?
francarl
1st October 2009, 03:44 PM
waiting for release...thank you so much, this will be very useful!
michyprima
1st October 2009, 04:20 PM
links added
dobb
1st October 2009, 05:35 PM
Awesome Man,
I'm trying it rught now.
Only missing a textbox. If we have and a textbox it will be great!
Good work one more time!!
jdiperla
1st October 2009, 05:49 PM
Sweet. Thanks very much. I didn't expect it this soon.
Blade0rz
1st October 2009, 06:27 PM
Beautiful! I think this is the one thing WinMo is missing - a decent standardisation of UI controls
jdiperla
1st October 2009, 07:56 PM
This is awesome! As soon as I get some cash, I will donate for this. I tested it out, and it works like a charm. Keep it up. For the love of God, KEEP IT UP!
Move over Iphone! Here comes WinMo!
jdiperla
1st October 2009, 09:54 PM
OK, I am trying to work something with this...
How do I check if an item in the listbox is selected? Thanks.
BTW: This control also works with Windows Apps as well.
ND4SPD
1st October 2009, 10:13 PM
Plan for next version: ManilaTextBox, ManilaMessageBox and ManilaTrackBar
Amazing work! Just curious, are you thinking about making a .net cf Manila Tab Control?
michyprima
2nd October 2009, 03:30 PM
This is awesome! As soon as I get some cash, I will donate for this. I tested it out, and it works like a charm. Keep it up. For the love of God, KEEP IT UP!
Move over Iphone! Here comes WinMo!
Thank you :)
OK, I am trying to work something with this...
How do I check if an item in the listbox is selected? Thanks.
BTW: This control also works with Windows Apps as well.
I will add that in next version
Amazing work! Just curious, are you thinking about making a .net cf Manila Tab Control?
maybe :)
btw...
http://img136.imageshack.us/img136/7439/screenshot2fx.png
:D
jdiperla
2nd October 2009, 04:19 PM
You are the man. You deserve to be in the windows mobile history books. Excellent contributions to WinMo community!
jdiperla
2nd October 2009, 05:23 PM
I noticed the rate it which it scrolls though is very slow on my Omnia. Is this something that will be corrected?
Any idea when we can see some documentation on this? Thanks again!
TeDeV
2nd October 2009, 05:45 PM
nice work, i would also love to see a manilla tab :)
GeirFrimann
3rd October 2009, 01:33 AM
Thank you :)
I will add that in next version
maybe :)
btw...
http://img136.imageshack.us/img136/7439/screenshot2fx.png
:D
Really weel done! But there is some work left to do...
I tried the Checkbox button. The text entered int the text property isn't displayed eihter in design mode or runtime mode,
Furhtermore, the control looks ok as long as the backgrounde is white, but not as goowd when (as in my case) having a background whit another color or a picture.
Blade0rz
3rd October 2009, 10:15 AM
Really weel done! But there is some work left to do...
I tried the Checkbox button. The text entered int the text property isn't displayed eihter in design mode or runtime mode,
Furhtermore, the control looks ok as long as the backgrounde is white, but not as goowd when (as in my case) having a background whit another color or a picture.
Welcome to .NET :( You'll need to override your OnPaint method to get semi-decent background images without either flicker or that white you're seeing. Another thing which MS will take years to implement no doubt.
michyprima
3rd October 2009, 03:35 PM
no worries i'll try to implement ransparency and enhance list scrolling refresh speed ;)
this is just the first version! ;)
michyprima
4th October 2009, 02:03 AM
http://img9.imageshack.us/img9/9070/screenshot6w.png
msgbox done:D
rjmjr69
4th October 2009, 02:09 AM
Awesome work thanks
dairyface
5th October 2009, 11:31 AM
This looks great. Giving this a go shortly!
TeDeV
5th October 2009, 02:06 PM
nicely done.
i don't want to sound bad, but don't forget the manilla tabs too :D
i just tested it. some things i found ....
1) Manilla Header doesn't have font property (important)
2) the list is very confusing, not easy to manage
3) the On - Off button, doesn't have good text quality
4) when u drop the on off box and the checkbox to the form, in the design form, they look too big, and they can't be resized. (if u run the project they look ok, but still u can't resize them)
haven't tested the progress bar, but i guess it should be ok.
elmalote
5th October 2009, 03:00 PM
Awesome!!!!
But why doesn't my text get shown in the button instead of the text "Button" :D
Ups never mind, didn't see the ButtonText Property...
But why doesn't text on CheckBox and ManilaOffOn button work :D
michyprima
5th October 2009, 03:39 PM
nicely done.
i don't want to sound bad, but don't forget the manilla tabs too :D
i just tested it. some things i found ....
1) Manilla Header doesn't have font property (important)
2) the list is very confusing, not easy to manage
3) the On - Off button, doesn't have good text quality
4) when u drop the on off box and the checkbox to the form, in the design form, they look too big, and they can't be resized. (if u run the project they look ok, but still u can't resize them)
haven't tested the progress bar, but i guess it should be ok.
1) This is intentional. manila screen uses predefined font and since the style is manila why change it?
2) what is confusing for you?
3) Ill look to it
4) this is a visual studio problem. it passes your monitor resolution to my lib and not the real wm sdk size (320x240). You can avoid this using vga form size (640x480). Their size can't be changed btw cause images are fixed and in other sizes they looks ugly
Awesome!!!!
But why doesn't my text get shown in the button instead of the text "Button" :D
Ups never mind, didn't see the ButtonText Property...
yep, I made a stupid thing...I changed it back to Text property ;)
TeDeV
5th October 2009, 07:12 PM
about 1)
a programmer needs to have access to everything. sometimes it is important to have big letters and colorised so users can actually see it (trust me, i see a lot of client's "problems" every day), and some times some smaller size letters to fit a bigger text or make it look more nicely done.
if it doesn't take u too much time to implement it, i would be thankful.
about the list, i need to work a bit more on it, to make sure that it is not me.
michyprima
5th October 2009, 07:22 PM
about 1)
a programmer needs to have access to everything. sometimes it is important to have big letters and colorised so users can actually see it (trust me, i see a lot of client's "problems" every day), and some times some smaller size letters to fit a bigger text or make it look more nicely done.
if it doesn't take u too much time to implement it, i would be thankful.
about the list, i need to work a bit more on it, to make sure that it is not me.
ok, no problem, i'll expose a property for font overriding ;)
TeDeV
5th October 2009, 07:45 PM
thanks a lot :)
utak3r
5th October 2009, 10:01 PM
I ran the test demo app.... uh - scrolling works *really* bad... maybe it's for vga and I have to build my own sample for qvga? It's so bad right now I cannot use it :(
Or maybe some tips on using?
n3tfusion
5th October 2009, 10:13 PM
Hello,
Thanks for your SDK, it's a great work!
I have a dumb question,
in your listview, how can i add a item with 2 lines and 2 colums ?
I'm currently adding a manillaPanelItem and using primary and secondary text, but i want to have on each side of the list 2 text
like this:
item1-left 1 (------------------) right 1
item1-left 2 (------------------) right 2
Is it possible with your control ?
GeirFrimann
6th October 2009, 12:57 AM
1) This is intentional. manila screen uses predefined font and since the style is manila why change it?
2) what is confusing for you?
3) Ill look to it
4) this is a visual studio problem. it passes your monitor resolution to my lib and not the real wm sdk size (320x240). You can avoid this using vga form size (640x480). Their size can't be changed btw cause images are fixed and in other sizes they looks ugly
yep, I made a stupid thing...I changed it back to Text property ;)
4) Isn't is because your usercontrol is based on 128dpi and not 96dpi??
I experianced the same behavior. My VS project forms are 320x240. In design mode your controls are oversized, but when debugging whit a 640x480 or 800x480 they looks OK..
GeirFrimann
6th October 2009, 01:01 AM
http://img9.imageshack.us/img9/9070/screenshot6w.png
msgbox done:D
This looks really good, but from a developers point of view, I'll rather see more touch friendly usercontrols, like the one in Manila 2.5 when creating a new appointment and setting start time. Beatiful, and very touch friendly.
I guess that kind of controls will give you more donation$ ;-)
Keep up the good work!
michyprima
7th October 2009, 07:12 PM
Hello,
Thanks for your SDK, it's a great work!
I have a dumb question,
in your listview, how can i add a item with 2 lines and 2 colums ?
I'm currently adding a manillaPanelItem and using primary and secondary text, but i want to have on each side of the list 2 text
like this:
item1-left 1 (------------------) right 1
item1-left 2 (------------------) right 2
Is it possible with your control ?
Just create a new item and implement IKListItem interface. That way you can paint everything you want in the item bounds.
michyprima
7th October 2009, 07:13 PM
I ran the test demo app.... uh - scrolling works *really* bad... maybe it's for vga and I have to build my own sample for qvga? It's so bad right now I cannot use it :(
Or maybe some tips on using?
Yeah I know first version was a bit slow while scrolling. now I fixed it and scrolls MUCH faster :)
utak3r
7th October 2009, 07:33 PM
Yeah I know first version was a bit slow while scrolling. now I fixed it and scrolls MUCH faster :)
Ha, good news :) I'll try it and leave a comment :)
michyprima
7th October 2009, 07:37 PM
Ha, good news :) I'll try it and leave a comment :)
Well, after I release it :D
TeDeV
7th October 2009, 10:51 PM
release release release :)
GeirFrimann
7th October 2009, 11:58 PM
Well, after I release it :D
Yes, please release new versions ASAP, and we'll give you feedback..
jdiperla
8th October 2009, 04:11 PM
Also, please remember for us programming Newbies: We need documentation and some examples(Like the one you provided). Awesome news though!
vicie
8th October 2009, 07:02 PM
Hallo all
maybe a stupid question, but what is it. Is this the manilla styled menu or what...
If so, I will instal it imediately ;)
utak3r
8th October 2009, 07:31 PM
If so, I will instal it imediately ;)
calm down, it's not for you :D it's intended for software developers... it's a library of common controls in the Manila style.
dobb
9th October 2009, 04:14 PM
Man, I can't wait for second release. I will donate very soon for your great job!!!
TeDeV
10th October 2009, 03:27 PM
where did everyone go? :)
jdiperla
11th October 2009, 03:37 AM
Oh dont worry. We are here. We. Are. Waiting.
Its all up to MP now.
jmckeejr
11th October 2009, 06:33 AM
Does anyone have any applications made with this yet? I would love to try some :) How about a manila styled notepad? Any more samples too? :)
utak3r
11th October 2009, 10:58 AM
How about a manila styled notepad?
:confused:
And you're gonna skin... what?
btxakita
11th October 2009, 11:17 AM
:confused:
And you're gonna skin... what?
The listview now is not so smooth.so....
TeDeV
11th October 2009, 01:02 PM
let's wait and see what will the new version brings us. it is strange that we haven't heard a word so far :)
matejdro
11th October 2009, 07:23 PM
Looks really nice.
Just problem is you uploaded it on RapidCrap, i have to wait like 10000x 2 minutes to start download.
michyprima
11th October 2009, 08:10 PM
ok brothers and sisters, I wanted to wait for me to complete the tab control but it seems to require more time than expected. for that I'll publish new version without it for the moment. Adding link as soon as i can (today ;))
TeDeV
11th October 2009, 08:45 PM
so the tab control is coming too? :) nice
what has changed in the new version? (textbox, messagebox from what i saw?)
michyprima
11th October 2009, 08:50 PM
so the tab control is coming too? :) nice
what has changed in the new version? (textbox, messagebox from what i saw?)
yep, and scrolling speed has been fixed too... :)
jmckeejr
11th October 2009, 09:41 PM
:confused:
And you're gonna skin... what?
LOL, I guess your right :o But I would like a list organizer. Something like ListPro, but finger friendly. HTC checkmarks on items, HTC style titlebar(as seen in new Device info enhancement etc), Quickadd, reminders on/off. Is this a better idea?
michyprima
11th October 2009, 09:58 PM
v2.0 is available on first post with new commented sample project
TeDeV
11th October 2009, 10:42 PM
1)i can't see the how the controls look when i drop them in my form. i see a rectangle
which says MichyPrima.ManilaDotNetSDK.ManillaTextBox, and so on.
2) even manila header when i drop it inside my form, it doesn't dock to the top, it says none, but if i run the project then it docks to the top. and also it doesn't have the font property.
3)about the textbox, it shows the pink color (transparent propably) to the 4 corners. and if i make it smaller, i am losing the left and right border. if i make the font smaller, the height of the textbox doesn't get smaller.
4)the trackbar also has the pink transparent color
5) are u thinking of including an image property to the button?
6) basically all the controls have a resize problem, (except the button) . their size is specific (i can guess why).
7) and a couple of addisions u might think of including are numericbox (a textbox with 2 buttons up and down), and a combobox
8) as for the messagebox, i believe its ok, but personally i would like to have the main text a bit lower. it is almost touching the header.
that's it for now :D, soz for mentioning 8 negatives :)
keep up the good work.
michyprima
11th October 2009, 11:12 PM
1)i can't see the how the controls look when i drop them in my form. i see a rectangle
which says MichyPrima.ManilaDotNetSDK.ManillaTextBox, and so on.
2) even manila header when i drop it inside my form, it doesn't dock to the top, it says none, but if i run the project then it docks to the top. and also it doesn't have the font property.
3)about the textbox, it shows the pink color (transparent propably) to the 4 corners. and if i make it smaller, i am losing the left and right border. if i make the font smaller, the height of the textbox doesn't get smaller.
4)the trackbar also has the pink transparent color
5) are u thinking of including an image property to the button?
6) basically all the controls have a resize problem, (except the button) . their size is specific (i can guess why).
7) and a couple of addisions u might think of including are numericbox (a textbox with 2 buttons up and down), and a combobox
8) as for the messagebox, i believe its ok, but personally i would like to have the main text a bit lower. it is almost touching the header.
that's it for now :D, soz for mentioning 8 negatives :)
keep up the good work.
1) normal, since VS can't render them, i disabled in-ide rendering
2) this is cause the point 1
3-4) lol, I forgot something seems...i'll fix that
5) maybe i will :)
6) their size is fixed..and why i already explained here
7) maybe i will too :D
Anyone tried fixed list?
TeDeV
11th October 2009, 11:40 PM
i didn't get the 1)
what do u mean it can't render them. how is it possible to view them in runtime, but not in design mode? i could see them in version 1. (i don't want to sound bad again, but for sure, no one can work without watching how the form looks, and don't forget that vs takes too much time, to run a new compile project on the pda. which means that debuggin will take ages. plzzzzz fix that!) :D
(don't mean to insult ur work, i am saying this because my message might sound bad :) peace )
as for 2) give to the control the default dock Top, so it will look fine
btxakita
12th October 2009, 09:44 AM
well how the scrollbar looks like,seems it is hidden.
why not try to change it into htc style.
holz
12th October 2009, 12:23 PM
Thank you for your work!!!!
you're the best!!!!
ponchofiesta
14th October 2009, 07:47 PM
I mirrored it on my server (with speed and without crap):
http://osor.de/manila/
TeDeV
17th October 2009, 02:37 PM
any news on this?
jmztaylor
18th October 2009, 09:12 PM
Ok, so I have never used an outside sdk in Visual Studio. How do I go about adding this in? I know how to use it once I can access it. But just not how to get to that point.
TeDeV
19th October 2009, 09:27 AM
Add reference from the project properties, and select the file. then add the tools from the left as new tools. browse the file and u r done.
utak3r
20th October 2009, 12:37 AM
Downloaded, testing started :D
I mirrored it on my server (with speed and without crap):
Thanks man!
Plan for next version: ManilaTabControl :)
And that's what I'm waiting for :) Images on tabs, instead of labels?
TeDeV
21st October 2009, 10:41 PM
one huge bug is that if the textbox is "" (empty) and u click on it, then u get a crash.
plz make us a new version plz.
edit... scratch that. textbox is not working at all. text_changed event is not working, and for some reason if i type "10000000" then it crashes, if i press backspace, it crashes again.
michyprima
21st October 2009, 11:49 PM
yeah i totally rewrote the Textbox. now works nicely!
And im changing lot of thing in the list engine
now items could have their own height! (before height was fixed for all items)
stay tuned!
TeDeV
22nd October 2009, 06:45 PM
heyyyyy nice to see u :D
did u fix them to show up in the development mode? and not just in runtime?
dobb
25th October 2009, 02:12 PM
Hi all,
I have a problem with creating list items with C#.
Can someone explain or post some examle code how to do it.
Thanks very much in advance!
michyprima
25th October 2009, 11:18 PM
Hi all,
I have a problem with creating list items with C#.
Can someone explain or post some examle code how to do it.
Thanks very much in advance!
public class TestItem : MichyPrima.ManilaDotNetSDK.KListControl.IKListItem
{
Rectangle _Bounds=Rectangle.Empty;
public Rectangle Bounds
{
get
{
return _Bounds;
}
set
{
_Bounds = value;
}
}
int _h;
public int Height
{
get
{
return _h;
}
set
{
_h = value;
}
}
public void OnMouseDown(int X, int Y, ref bool DoScroll)
{
DoScroll = true;
}
public void OnMouseUp(int X, int Y, bool IsSamePoint)
{
}
MichyPrima.ManilaDotNetSDK.KListControl par;
public MichyPrima.ManilaDotNetSDK.KListControl Parent
{
get
{
return par;
}
set
{
par = value;
}
}
public void Render(Graphics g, Rectangle bounds, bool param1)
{
g.DrawEllipse(new Pen(Color.Black), new Rectangle(bounds.X + 10, bounds.Y + 10, bounds.Width - 20, bounds.Height - 20));
}
int y;
public int YIndex
{
get
{
return y;
}
set
{
y = value;
}
}
This is a testitem for ManilaDotNetSDK ver2.1. Since 2.1 is not yet released you should anyway adapt that to ver2.0 ;)
btxakita
26th October 2009, 06:51 AM
Wow.that's cool
but when will u realese ver 2.1?
TeDeV
26th October 2009, 10:55 AM
2.1 is coming with manilla tabs?
btxakita
26th October 2009, 01:58 PM
2.1 is coming with manilla tabs?
maybe not
I hope it can fix issues found in ver 2.0
mike2nl
26th October 2009, 04:04 PM
Looks great for me. I will do my test and then look further..thanks for sharing
jmztaylor
29th October 2009, 08:57 PM
So is there a way to emulate the settings tab with this. i.e. the buttons for like communications, sound, arrange tabs and so forth?
TeDeV
30th October 2009, 12:00 PM
give us the 2.1 !! :)
gingercat
30th October 2009, 01:37 PM
Nice work on the library! I would however question the origins of the KListControl? It seems to bear (interface wise) a lot in common with the scrolling list started by DOSFan and then converted into a user control by myself, as referred to in this thread:
http://forum.xda-developers.com/showthread.php?t=333124
If not based on this, apologies, and I guess great minds just think alike, but if it is based on that work, an acknowledgement would be appreciated, especially if you are potentially generating money from this library.
dobb
30th October 2009, 04:55 PM
public class TestItem : MichyPrima.ManilaDotNetSDK.KListControl.IKListItem
{
Rectangle _Bounds=Rectangle.Empty;
public Rectangle Bounds
{
get
{
return _Bounds;
}
set
{
_Bounds = value;
}
}
int _h;
public int Height
{
get
{
return _h;
}
set
{
_h = value;
}
}
public void OnMouseDown(int X, int Y, ref bool DoScroll)
{
DoScroll = true;
}
public void OnMouseUp(int X, int Y, bool IsSamePoint)
{
}
MichyPrima.ManilaDotNetSDK.KListControl par;
public MichyPrima.ManilaDotNetSDK.KListControl Parent
{
get
{
return par;
}
set
{
par = value;
}
}
public void Render(Graphics g, Rectangle bounds, bool param1)
{
g.DrawEllipse(new Pen(Color.Black), new Rectangle(bounds.X + 10, bounds.Y + 10, bounds.Width - 20, bounds.Height - 20));
}
int y;
public int YIndex
{
get
{
return y;
}
set
{
y = value;
}
}
This is a testitem for ManilaDotNetSDK ver2.1. Since 2.1 is not yet released you should anyway adapt that to ver2.0 ;)
Thank you very much!!!
michyprima
31st October 2009, 06:59 PM
Nice work on the library! I would however question the origins of the KListControl? It seems to bear (interface wise) a lot in common with the scrolling list started by DOSFan and then converted into a user control by myself, as referred to in this thread:
http://forum.xda-developers.com/showthread.php?t=333124
If not based on this, apologies, and I guess great minds just think alike, but if it is based on that work, an acknowledgement would be appreciated, especially if you are potentially generating money from this library.
Hi gingercat,
It is partially based on your/DOSFan work. But I'm progressively replacing lot of code that used to be useless/buggy somewhere specially on scrolling and drawing. Plus I enhanced the interface and the items have not fixed height anymore; Items have Subs OnMouseDown and OnMouseUp; Only mode available now is vertical; etc etc...Basically of your work is there just your scrolling engine...
So of your/DOSFan work is there just a little part. I forgot to mention this, but i will. Btw I've not got any money (and it's free anyway).
anyway i've added a reference on first post. My apologies.
michyprima
31st October 2009, 07:06 PM
Thank you very much!!!
you are welcome!
michyprima
31st October 2009, 09:16 PM
v2.1 online!
-=(Kad)=-
1st November 2009, 11:03 AM
Can you post a Visual C# test project?
PeRKoniX
1st November 2009, 06:48 PM
Nice library. I just tried to download v2.1 but rapidshare does not allow me to download the file "because there are no more slots available" It is possible for you to put them on an extra mirror?
hobbbbit
2nd November 2009, 03:21 AM
Thanks for a great library, just downloaded and tried it. All controls seems to be working great. Some graphics (like switch) seems a bit low quality, but that's not a huge issue anyways.
However, I couldn't get KListControl to work:-( Created a new class that implements IKListItem and inherits from the UserControl, added ManilaHeader to it and docked it, implemented all of the interface properties, created 50 instances of the control and added it to the KListControl (setting bounds, parent and YIndex first) and I get nothing.. Render method inside my test control doesn't even get called for some reason.. Not sure what am I doing wrong.
Btw, just a question, have you ever considered doing this library as an open source? I'm sure there's a lot of developers here who would love to help out (including myself). More people can polish those controls and make them truly useful.
And a few suggestions/questions:
Why did you do AddItem to KListItem? Just override Controls collection and lock it down to IKListItem interface. Why did you do YIndex? Since you have AddItems, you know the order items were inserted into the collection, should be able to get the index from there. Bounds? Ok, I can see the need for setting up height of the item, but x and y should be calculated by the KListControl control automatically. Would be nice to be able to lock the width of the item to the width of the KListControl itself. Same goes for the parent property. Why set it, if you add it to internal collection anyways? Don't you already know the parent of the control at that point?
Please don't take any of those as a complaint! I'm grateful for a cool tool, just had some questions.
P.S. Nevermind, I just disassabled KListControl (just to try to figure out why it's not working for me), and I see some of the answers to my questions, like Bounds and Parent are already set when you do AddItem. You should probably remove them from the interface implementation then.
TeDeV
2nd November 2009, 10:29 AM
michy, i would be thankful if you could try your own creations before you release them.
i haven't tried the list yet, but.....
1) you created a new control named ManillaNewTextBox, when you already had and have, an existing one (propably with the old problems) named ManillaTextBox. Just remove it man.
Textbox, cannot change it's height.
2) The ManillaHeader doesn't have a Text property at the right. You have to change it from inside the code...
3) The trackbar has the pink transparent color around it.
4) Please make the controls visible in the design time so we can actually see how our form looks like. You had that in ur first version.
5) i agree with the open source thing, so people can help u finish this thing, including myself. but this is totally your decision.
50chickens
2nd November 2009, 11:01 AM
agreed on three things... open source, design time support and a c# sample project :)
but, great idea.. it's a shame that .netcf is limited (ie no datagridview) so this will help heaps with UI design.
edit: actually.. i converted the vb.net sample over to C#..
if you have some references missing you need to remove them from the project and readd them. i have included system.sr.dll since .netcf has a problem with exceptions unless you add this dll as a reference into your project.
the output folder for this project is \storage card\ManillaSdk_sample. That means if you are using the emulator in VS then you need to set it up in the emulator options and it will actually point back to a local drive. if you are deploying this app to your htc then obviously it will go to the real microsd. i do this as i flash my htc every few days with a new rom :)
dairyface
3rd November 2009, 06:31 PM
Got something working my end, and so far im pretty impressed. Noticed a problem with Klistcontrol1.Count, if there are no items this throws an exception rather than just returning 0.
But im liking it!
TeDeV
4th November 2009, 08:01 PM
found another problem. if u try to place the checkbox on top of a picture, it always goes behind.....
so u can't see it. i tried bringtofront, etc. didn't work.
francarl
5th November 2009, 11:40 AM
Hi Michele
I've a problem using your SDK:
this instruction (2nd)
ManilaPanelCheckBoxItem manilaPanelCheckBoxSIPMenuItem = new ManilaPanelCheckBoxItem();
manilaPanelCheckBoxSIPMenuItem.Checked = true;
always gets runtime error: NullReferenceException. Can you provide a solution or a workaround, please? How can I set ManilaPanelCheckBoxItem initial status?
Regards
Francesco
dairyface
5th November 2009, 02:59 PM
Some other bugs/observations:
If you have multiline .MainText on a KListPanelItem, it overlaps with the .SecondaryText
Would be nice to have wordwrap on the KListPanelItem
50chickens
5th November 2009, 10:19 PM
Hi Michele
I've a problem using your SDK:
this instruction (2nd)
ManilaPanelCheckBoxItem manilaPanelCheckBoxSIPMenuItem = new ManilaPanelCheckBoxItem();
manilaPanelCheckBoxSIPMenuItem.Checked = true;
always gets runtime error: NullReferenceException. Can you provide a solution or a workaround, please? How can I set ManilaPanelCheckBoxItem initial status?
Regards
Francesco
i think sometimes you need to add those objects which implement IKListItem to the klistcontrol object first before you can update the properties. And be sure to set the YIndex property. eg -
ManilaPanelCheckBoxItem manilaPanelCheckBoxSIPMenuItem = new ManilaPanelCheckBoxItem();
KListControl1.AddItem(manilaPanelCheckBoxSIPMenuIt em);
manilaPanelCheckBoxSIPMenuItem.YIndex =0;
manilaPanelCheckBoxSIPMenuItem.Checked = true;
i found the order of things sometimes matters.
francarl
6th November 2009, 09:50 AM
i think sometimes you need to add those objects which implement IKListItem to the klistcontrol object first before you can update the properties. And be sure to set the YIndex property. eg -
ManilaPanelCheckBoxItem manilaPanelCheckBoxSIPMenuItem = new ManilaPanelCheckBoxItem();
KListControl1.AddItem(manilaPanelCheckBoxSIPMenuIt em);
manilaPanelCheckBoxSIPMenuItem.YIndex =0;
manilaPanelCheckBoxSIPMenuItem.Checked = true;
i found the order of things sometimes matters.
thank you for your suggestion! I've discovered that order really matters. I've just assigned checked property after adding item to klistcontrol and now all works good. Thanks again!
regards
Francesco
dairyface
6th November 2009, 04:39 PM
Another problem, the ManilaPanelSeperator sits on top of other Panel items when added at runtime.
Ive got this working now, seems my YIndex's were a little out causing some odd problems.
50chickens
7th November 2009, 07:41 AM
you guys, if you make some custom classes you should paste the source here. im planning to make an item similar to the checkbox class, but you can display one of a number of images based on a value.
michyprima
8th November 2009, 12:22 PM
thank you for your suggestion! I've discovered that order really matters. I've just assigned checked property after adding item to klistcontrol and now all works good. Thanks again!
regards
Francesco
Hi Francesco, thank you for your notice. I was calling Parent.Invalidate(IKListItem Item) even if Parent was null. Fixed :)
dairyface
9th November 2009, 10:10 AM
Small observation with the manilapanelitem. The border is not quite right when compared to HTC's manila. In HTCs you will see it is slightly dashed (there are small gaps in the line). However on your control its a straight line.
Very small detail, but its that that makes it even nicer :D
Looking forward to the next release Michele.
francarl
9th November 2009, 10:36 AM
Hi Francesco, thank you for your notice. I was calling Parent.Invalidate(IKListItem Item) even if Parent was null. Fixed :)
thank you for hard work.
Three further notices on ManilaPanelItem and its derived classes:
1) when SecondaryText is empty, MainText should be rendered centered.
2) when Image is empty, MainText (and SecondaryText) should start from left border.
3) Enabled property set to false should render whole grayed control (not simple only not clickable).
Regards
Francesco
dairyface
9th November 2009, 10:39 AM
Further point, that I dont think anyone has brought up is Image transparency. When assigning a png with alpha channel to a PanelItem, the transparent part shows as white.
It doesn't seem to work with any image format. Can you have a look at this Michele?
Finally, can I suggest a "feature"? Would be nice to have .Tag on the Panelitems so we can assign a val to use later on with the onclick event.
dairyface
9th November 2009, 05:16 PM
Sorry, I dont mean to keep spotting things! I really appreciate your work! ;)
It would be nice if there was an AutoGrow flag for panelitems, so if lots of text was inputted the box would automatically grow, rather than me having to calculate the anticipated height of a Panelitem based upon its Text.Length.
Thanks!
EDIT: I have found a further bug, if you try to write to the .buttontext property of a ManilaPanelButtonItem, it will give you a nullreferenceexception, UNLESS it has been added to a KListControl first
EDIT 2: Last thing I promise. Are you able to change the width of a button. Ive tried changing ButtonItem.ButtonSize.Width but it won't allow me
dairyface
13th November 2009, 10:28 AM
Hi Michele, not sure where you've gone, but I have noticed that the text quality when in landscape mode is not very good. Not sure whats happened there, but you might want to check it out. Im testing on a Blackstone.
michyprima
14th November 2009, 08:22 PM
@All when you see an issue could you please post a screenshot?
That helps me more than explaining the issue by words...thank you!
Warmax88
21st November 2009, 02:24 PM
edit: problem fixed :p
michyprima
27th November 2009, 07:23 PM
ops... wrong topic :D
mushipkw
28th November 2009, 08:03 PM
Just subscribing to keep a watch on this one.
mistm
29th November 2009, 11:44 AM
I am using dynamically created manila checkboxes. Lets say i put 5 checkboxes in the Form
I assign handler for those checkboxes like this:
MichyPrima.ManilaDotNetSDK.ManilaCheckBox c = new MichyPrima.ManilaDotNetSDK.ManilaCheckBox();
c.CheckStateChanged += manilaCheckBox1_CheckStateChanged;
private void manilaCheckBox1_CheckStateChanged(bool Checked)
{
// todo
}
But how do I know which checkbox was clicked? The sender object is missing in arguments. In case of classic checkbox I can do just (CheckBox)sender and i know which checkbox sent the message.
mistm
29th November 2009, 05:29 PM
I solved the problem by putting those checkbox in panels and storing some kind of id of the checkbox in .Tag property of the panel.
mistm
30th November 2009, 01:55 AM
Here is my application:
http://forum.xda-developers.com/showthread.php?t=591794
ebernazz2
3rd December 2009, 05:03 AM
I think Version 2.1 has come a long way from when I tried the first version.
Keep up the good work.
For me the #1 thing to fix is your concept of adding new controls into the KListControl.
I can get it to work fine if I am drawing the control from scratch in the Render routine. However if I inherit an existing control (Your TrackBar for example.). It never gets drawn and the functionality of that control is lost. Someone else posted that the Render event does not fire but for me it does and if I just draw a rectangle is displays fine. I thought the real purpose of the ListItem was to add existing controls as long as they had the required properties.
Eric
astart_start
4th December 2009, 07:18 AM
Where should i put the file if i would like to use manila SDK?
mistm
4th December 2009, 11:34 AM
I did copy paste the dll.
ebernazz2
4th December 2009, 03:02 PM
Where should i put the file if i would like to use manila SDK?
Not sure what you are asking but it does not matter where you put the file. I would then add the dll to your toolbox. In VS open a form so you can see the toolbox. Right click and do ADD TAB. Give it a name (MY TOOLS?). Then right click in there and select CHOOSE ITEMS. Wait for VS to search its assemblies and then select BROWSE. Browse to the dll (where ever you put it) and you will see the controls to drag onto your form or declare them at runtime (I prefer this especially for KListControl which supports kinetic scrolling).
Eric
Eraser85
4th December 2009, 03:13 PM
on/off button display some compression artifacts.. why don't you use PNG images instead?
AgentBignose
6th December 2009, 08:34 PM
Not sure what you are asking but it does not matter where you put the file. I would then add the dll to your toolbox. In VS open a form so you can see the toolbox. Right click and do ADD TAB. Give it a name (MY TOOLS?). Then right click in there and select CHOOSE ITEMS. Wait for VS to search its assemblies and then select BROWSE. Browse to the dll (where ever you put it) and you will see the controls to drag onto your form or declare them at runtime (I prefer this especially for KListControl which supports kinetic scrolling).
Eric
If I follow your advice: Add a Tab to Toolbox- rightklick- add items- browse ManilaDotNetSDK.dl l- check all manila controlitems - klick ok
My created tab is still empty saying "In this Group are no usable Controlitems. Drog -Items on this Text to add them to the toolbox."
Can Anybody help me?
{SBR}_L3GION
7th December 2009, 02:27 AM
I do the method above for putting the controls in VS and when i drag them on my form they just show up saying something with micheyprima in a box
ebernazz2
7th December 2009, 04:37 AM
Yes the controls in this dll are not enabled for IDE representation during form design. I am not sure why the author did that.
AgentBignose. I can oly assume that the new tab was not the slected active tab when you added them. Could you check the other tabs to see if you have the conttrols there. Also what version of VS are you using?
Eric
astart_start
7th December 2009, 08:53 AM
One more question. Can i use Visual C# Express to create software to use in WINMO?I doubt if WINMO 6.0 SDK can be installed without VS 2005.
AgentBignose
7th December 2009, 10:23 AM
Yes the controls in this dll are not enabled for IDE representation during form design. I am not sure why the author did that.
AgentBignose. I can oly assume that the new tab was not the slected active tab when you added them. Could you check the other tabs to see if you have the conttrols there. Also what version of VS are you using?
Eric
I did check all the others tabs. But I will try again. Maybe a reboot helps. My Version is a Student Version of Visual Studio 2008 Professional Edition.
One more question. Can i use Visual C# Express to create software to use in WINMO?I doubt if WINMO 6.0 SDK can be installed without VS 2005.
As far as I know .net compact development isn't possiple in the light Versions.
It want work!!! I am getting crazy! Does somebody have a Tipp for me?
At the Moment I'm using the Test project where the Controls are correctly in the Toolbox and edit the Projekt with my Code.
ebernazz2
7th December 2009, 02:28 PM
Sure. Lets start from the beginning and see where you are going off track. First what VS version and what language are you comfortable in? VB, C#? Then forget the sample project I want you to create a new project and make sure you select a smartdevice app as the template. At that point stop and post what is in your toolbox.
Eric
AgentBignose
7th December 2009, 02:52 PM
Thanks for your help!
I use a German Visual Stuido 2008 Professionell Edition.
My favorite programming language is VB.net.
Ok I will now do the following:
-Close all running Instances of Visual Studio
-Start Visual Studio from Start-> All Programms
-File->New Project->Visual Basic->Smart Device->Project for Smart Device
-In drop down on the upper right I select .NET Framework 2.0
-As Name I choose ManilaApp
-I click OK
-In new Wizard Window I click Windows Mobile 6 Professionell SDK and again .NET Framework 2.0
-I choose Device Application and click OK again
And now my Toolbox contains NO WAY WTF Manila is there!!!
I will test that. I did the exact same thing a hundred times, I tought!
Sorry for wasting your time with this stupid problem.
And another Question:
Is there a way to enable Multiline in ManilaTextbox in the current SDK Version?
nathanpc
7th December 2009, 03:11 PM
That's a very good library!
Thanks. :)
AgentBignose
8th December 2009, 12:59 AM
First of all a big thanks again to michiprima of course, but also to ebernazz2 for helping me with my very stupid mistake.
I am currently working aon a programm that uses the manila sdk.
It plays an alert and a vibrate if there are missed sms,mms,emails or calls.
U can see a Screenshot in the Attachment.
@michiprima and all others who know:
How did you manage in your Test Project to make the KListControl both DockStyle Fit to screen, but also beginning under the Header? I only manage one of the two.
And is it possible to cache a klick event for the OnOffSwitches?
By the way I mentioned your work a lot.
ebernazz2
8th December 2009, 05:03 AM
If I understand what you are asking....
1) You add the header and set its dock property to TOP (i recommend doing this in code rather that design time). Then you add the KlistControl and set its dock to TOP and you are good to go. That also help as the manilla sdk tries to figure out the screen resolution.
2) I am guessing you meant catch a click event not cache. If catch you declare your manilapanelitem "with events". Then you can use the handles object.click where object is the name of the panel item you declared.
If you get stuck I will gladly post some vb code.
Eric
AgentBignose
8th December 2009, 10:33 AM
If I understand what you are asking....
1) You add the header and set its dock property to TOP (i recommend doing this in code rather that design time). Then you add the KlistControl and set its dock to TOP and you are good to go.
After removing and readdding both controls in the korrect order, now it works.
That also help as the manilla sdk tries to figure out the screen resolution.
You mean the KlistItem is able to set its height automaticly to fill the screen?
That does not work for me. I have to set the Height wich means the Programm is WVGA kompatibel or VGA not both. What am I doing wrong?
2) I am guessing you meant catch a click event not cache.
Yes I did, I typed wrong. Sorry for my english.
If catch you declare your manilapanelitem "with events". Then you can use the handles object.click where object is the name of the panel item you declared.
I tried:
Dim WithEvents MoosStatus As New ManilaDotNetSDK.ManilaPanelOnOffItem
Private Sub MoosStatus_Click(ByVal sender As System.Object, ByVal e As
_ System.EventArgs) Handles MoosStatus.Click
MsgBox("Do sth.")
End Sub
But then I get "The Click Event was not found" Error.
I would be thankfull for a code snipplet.
Is there any Chance to add a ManilaPrograssbar or ManilaNewTextbox to the KlistItem?
I didnt manage it because they are now PanelItems.
@MichiPrima:
Please add ManilaProgressbarPanelItem, ManilaRadioButtonPanelItem and ManilaTextboxPanelItem !!! Your SDK is a Milestone in WinMo Application Development!
And please make the Textbox Multilinecompatible.
Thanks for helping me!!
ebernazz2
8th December 2009, 02:51 PM
Here you go.
Couple of notes. If you want the Klist control to fill your screen then dock it as FILL.
Once you declare your item with events thenif you want to see what events the author exposed for you then type in the objectname and when you hit the period you will see the popup window showing what events are avaialable. In th example you should see onclick and statuschanged.
Yes you are correct that there are several other panel item that are necessary for this to be complete. If you want you can create your own. I would love to but right now much to busy in work.
Eric
Imports System
Imports MichyPrima
Public Class Sound
Dim WithEvents Silentitem As New ManilaDotNetSDK.ManilaPanelCheckBoxItem
Public Sub Silentitem_click(ByVal sender As Object) Handles Silentitem.OnClick
Silentitem.Checked = Not Silentitem.Checked
End Sub
Public Sub silentitem_changed(ByVal sender As Object, ByVal checked As Boolean) Handles Silentitem.StatusChanged
If checked Then
Vibeitem.Checked = False
Normalitem.Checked = False
SetVol(3)
Else
If Vibeitem.Checked = False And Normalitem.Checked = False Then
Silentitem.Checked = True
End If
End If
End Sub
Private Sub Sound_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim x As New ManilaDotNetSDK.ManilaPanelSeparatorItem
x.Text = "Profile"
x.YIndex = 0
KListControl1.AddItem(x)
Silentitem.MainText = "Silent"
Silentitem.Image = ImageList1.Images.Item(0)
Silentitem.SecondaryText = ""
Silentitem.YIndex = 1
Silentitem.Height = 60
KListControl1.AddItem(Silentitem)
End Sub
End Class
vicbush
9th December 2009, 06:52 PM
Would someone please upload the SDK to another mirror? Rapidshare won't let me download it.
Thanks!
AgentBignose
9th December 2009, 08:04 PM
Would someone please upload the SDK to another mirror? Rapidshare won't let me download it.
Thanks!
michi doesn't wont to and he deserves the credits.
AgentBignose
9th December 2009, 10:52 PM
Imports System
Imports MichyPrima
Public Class Sound
Dim WithEvents Silentitem As New ManilaDotNetSDK.ManilaPanelCheckBoxItem
Public Sub Silentitem_click(ByVal sender As Object) Handles Silentitem.OnClick
Silentitem.Checked = Not Silentitem.Checked
End Sub
Public Sub silentitem_changed(ByVal sender As Object, ByVal checked As Boolean) Handles Silentitem.StatusChanged
If checked Then
Vibeitem.Checked = False
Normalitem.Checked = False
SetVol(3)
Else
If Vibeitem.Checked = False And Normalitem.Checked = False Then
Silentitem.Checked = True
End If
End If
End Sub
End Class
Ok everything you wrote worked well.
But in StatusChanged Function "ByVal checked As Boolean" musnt be a parameter.
It only works with:
Dim WithEvents MoosStatus As New ManilaDotNetSDK.ManilaPanelOnOffItem
Public Sub MoosStatus_changed(ByVal sender As Object) Handles MoosStatus.StatusChanged
End Sub
Otherwise you get:
Error The Public Sub MoosStatus_changed(sender As Object, checked As Boolean)-Method can not handle Public Event StatusChanged(Status As MichyPrima.ManilaDotNetSDK.ManilaOnOffSwitch.Statu s)- because Ginatures are Different. C:\Users\Stefan\Documents\Visual Studio 2008\Projects\SellSoft\ManilaReminder\ManilaRemind er\ManilaReminder.vb 121 104 ManilaReminder
Maybe its offtopic here, but you seem to be the one how could know:
I want to hide a form wich works well with "Me.Hide()" in MyBase.Activated or FormLoad.
But even if the Form is hiden, the Title remains in Taskbar until the user clicks the close X, then its completly hidden.
Is there a way to hide it also in titlebar?
mistm
10th December 2009, 12:28 AM
maybe to minimalize it?
ebernazz2
10th December 2009, 04:10 AM
Glad the sample code is workig for you.
The reason why my parameters are different is because I was demonstarting a CheckBoxItem and you are using an OnOffItem which has different paramaters.
As for your titlebar mistm set you on the right path. If you set your form's minimizebox to true closing the app really only minimizes it and the titlebar is cleared of your app. If set to false then the close method will termiate the program from memory and perform GC.
Now you probably could set the minimizebox to false and have a button or menu item that calls the minimize API in coredll and have both in an app.
Good Luck.
Eric
vicbush
10th December 2009, 05:27 AM
michi doesn't wont to and he deserves the credits.
Never mind, after many tries I finally got it to go through.
grf110
12th December 2009, 05:28 PM
I mirrored it on my server (with speed and without crap):
http://osor.de/manila/
very thx.:)
blondak
14th December 2009, 04:31 PM
At first, I would like say Thanks you for these great component.
Second I would ask if you plan make control like "Touch flo page switcher"?
I Also have one small improvement?
public class BlondakKListControl : KListControl
{
private int LastItem = 0;
new public void AddItem(MichyPrima.ManilaDotNetSDK.KListControl.IK ListItem item)
{
item.YIndex = LastItem++;
base.AddItem(item);
}
}
with this is not necessary set YIndex
sergiorus
16th December 2009, 12:09 AM
Will be good to see also on first page projects based on Manila Interface SDK
Right now i know eight of them
Tasks Manila by mistm (http://forum.xda-developers.com/showthread.php?t=591794)
pTasks by pangel83 (http://forum.xda-developers.com/showthread.php?t=596000)
HTC Menu Enhancement Loader by francarl (http://forum.xda-developers.com/showthread.php?t=540922)
BsB Tweaks by makeveral (http://forum.xda-developers.com/showthread.php?t=589305)
Manila Dial-up Enabler/Disabler by goatrance (http://forum.xda-developers.com/showthread.php?t=610657)
Manila Birthday by VPAFan (http://forum.xda-developers.com/showthread.php?t=605879)
My Shopping List by amirdt (http://forum.xda-developers.com/showthread.php?t=624668)
wmDownloader by elektro255 (http://forum.xda-developers.com/showthread.php?t=608966)
blondak
16th December 2009, 05:42 PM
Hi, I'm working on component ManilaLongText (item for kinetic list)
see attached zip.
I still have some issues, but still working on them.
AgentBignose
16th December 2009, 08:51 PM
I have written a Manila App too:
- Manila Profiler: http://forum.xda-developers.com/showthread.php?t=601568
Also I am working on a Manila Reminder
namiran
20th December 2009, 01:32 PM
Am i allowed to use this for a application published on Marketplace?
dragi
22nd December 2009, 02:14 PM
As written in the first post, you are. But the Author awaits a contibute for his work!
I´m working on a little SMS App that I wan´t to sell for a few cents on the market place...now I´m thinking about changing the hole UI to manila SDK :)
michyprima
22nd December 2009, 08:15 PM
Well, if you are going to sell apps that uses my sdk (as license says in MichyPrima.ManilaDotNetSDK.About.CopyRightInformat ions property), you must give me something. (And that is politically correct IMHO).
Anyone can contact me so we could make an arrangement about the gift for my work :)
At least IMHO.
Cheers
namiran
22nd December 2009, 08:59 PM
Well, if you are going to sell apps that uses my sdk (as license says in MichyPrima.ManilaDotNetSDK.About.CopyRightInformat ions property), you must give me something. (And that is politically correct IMHO).
Anyone can contact me so we could make an arrangement about the gift for my work :)
At least IMHO.
Cheers
A contribution will definetily be made for your great work :) Thank you!
AgentBignose
25th December 2009, 06:22 PM
Are you still working on this project michy?
smsucrid
25th December 2009, 07:38 PM
I've been having an idea that could possible improve performance and battery usage of IMAP IDLE solutions like these.
Roccc
26th December 2009, 03:36 PM
Hello,
Congratulations for your work michyPrima. That's a very good library!
I hope we can soon discover a new version with the ManilaTabControl :rolleyes:
If you need some help, don't hesitate ;)
michyprima
26th December 2009, 08:21 PM
Hi brothers,
yes i'm working on this...I'm just a bit busy ;)
So the project is just suspended for 1 week +/-.
dragi
26th December 2009, 08:55 PM
HI,
first of all....Awesome Work!!!! Thank ou so much for that!
Now my question: Is it possible to make the TextBox Multiline? Or is it allready possible? I can´t find anything on that.
Thank you
dragi
Upquark
27th December 2009, 12:07 AM
Just read the entire topic... great work! Gonna try this as soon as possible.
makeveral
27th December 2009, 01:25 AM
Hi brothers,
yes i'm working on this...I'm just a bit busy ;)
So the project is just suspended for 1 week +/-.
Nice! I've just made a small donation to you :p
btw is it possible that for next version you add something to remove pictures of manilapanelonoffitem to allow more text and maybe increase num of chars allowed in messagebox(make it bigger)?
best regards
iambenz
27th December 2009, 05:26 AM
any tutorial?
thx -v-
and the links are not able to download.:(
ebernazz2
27th December 2009, 05:55 AM
Nice! I've just made a small donation to you :p
btw is it possible that for next version you add something to remove pictures of manilapanelonoffitem to allow more text and maybe increase num of chars allowed in messagebox(make it bigger)?
best regards
It is pretty easy to remove the picture and move the text over. Just take the class for panelonoffitem and change the render module to not draw the image and move the location of the drawstring function.
Eric
ebernazz2
27th December 2009, 05:56 AM
any tutorial?
thx -v-
and the links are not able to download.:(
People here will help you get it going. Where are you at and what have you tried so far?
Eric
ebernazz2
27th December 2009, 05:58 AM
a
and the links are not able to download.:(
RapidShare only allows so many guest slots. Keep trying an it will give you one and you can download.
Eric
michyprima
27th December 2009, 03:09 PM
Nice! I've just made a small donation to you :p
btw is it possible that for next version you add something to remove pictures of manilapanelonoffitem to allow more text and maybe increase num of chars allowed in messagebox(make it bigger)?
best regards
Yep i'll make messagebox with dynamic height don't worry.
btw I've added your name on first post as thank you. :)
Wareczek
28th December 2009, 12:57 AM
261096
Why ManilaTextBox looks better than ManilaNewTextBox ?
maxpg
28th December 2009, 02:27 PM
this is a really nice SDK. I think such an SDK is exactly what is needed to get lots of good looking programs for our windows mobile devices!
I'm currently working on a program for me and started using this SDK yesterday. The things that are there are great, however there are lots of things missing that I would like to have (ex. some good looking container elements where I can place labels, buttons,...; some kind of dropdown,...)
Have you thought about making this SDK open source? I think I will create some things as such a panel for me. If the SDK would be open source, I could add the functionality to the SDK and you could integrate it if you like it.
max
maxpg
28th December 2009, 09:55 PM
Does anyone know if/how it is possible to add Control objects (label, button,...) within a custom IKListItem?
ebernazz2
28th December 2009, 10:23 PM
Does anyone know if/how it is possible to add Control objects (label, button,...) within a custom IKListItem?
Yes it is possible. You need to add your own class which implements IKListItem and draws it. Then you have to expose the properties and event(s) you want. Just like any other OOP language. As a start you should review the Author's sample program which goes a long way in getting you to where you want to be.
Eric
Upquark
28th December 2009, 11:55 PM
Sorry, n00b alert.
I like to show some scrollable text in my mobile program (lyrics to be exact), but I can't figure out what control to use. I think I need some sort of read-only textbox, but without a cursor, which can be scrolled with the finger. ManilaNewTextBox doesn't seem to support Multiline, so I guess that won't work?
Help is very much appreciated! :)
ebernazz2
29th December 2009, 01:12 AM
Sorry, n00b alert.
I like to show some scrollable text in my mobile program (lyrics to be exact), but I can't figure out what control to use. I think I need some sort of read-only textbox, but without a cursor, which can be scrolled with the finger. ManilaNewTextBox doesn't seem to support Multiline, so I guess that won't work?
Help is very much appreciated! :)
What are you using to develop your app?
Eric
michyprima
29th December 2009, 01:13 AM
yep not too hard.
create an object implementing iklistitem interface
than set the height of the item using graphicsex.measurestring specifying the widht of the item as parameter (u have to use opennetcf cause netcf version has not that method with wordwrap support) then draw the text using graphics.drawstring with wordwrap in the item bounds
Upquark
29th December 2009, 01:22 AM
What are you using to develop your app?
Eric
VB.net, and currently picking up some C# (reading a book).
ebernazz2
29th December 2009, 01:39 AM
VB.net, and currently picking up some C# (reading a book).
As Michele wrote you could use this SDK and create your own panelitem. Depends on what the app is going to use when complete. If it needs nothing else in this library I would say use a picturebox and track the mouse events to scroll the view of the picturebox. That could cause some flicker and jumping though and then you need to double buffer (which may make it easier to just use this SDK). A third option is to spend some cash and get a scrollable UI library. Touch Control Suite has a nice touch enabled picturebox that supports panning and kinetic scrolling.
If you don't need finger friendly on the whole screen you could take the easy way out. Just use a textbox and set multiline and scrollable to true. The negative there would be you have to scroll using the scroll bar handle. Not the way i like but that is by far the fastest to develop, load and execute.
If you go with Michele's SDK have you looked at his example project? it does give a good sample of a new class implementing his IKListItem which could be changed for height and drawstring or multiline fairly easy. If Michele's reply confuses you then simply create a new class object implementing IKListItem and make it only show 1 line of text (using measurestring method). Then use code to loop through your lyrics and create as many new "items" as needed for your song.
Eric
michyprima
29th December 2009, 02:00 AM
As Michele wrote you could use this SDK and create your own panelitem. Depends on what the app is going to use when complete. If it needs nothing else in this library I would say use a picturebox and track the mouse events to scroll the view of the picturebox. That could cause some flicker and jumping though and then you need to double buffer (which may make it easier to just use this SDK). A third option is to spend some cash and get a scrollable UI library. Touch Control Suite has a nice touch enabled picturebox that supports panning and kinetic scrolling.
If you don't need finger friendly on the whole screen you could take the easy way out. Just use a textbox and set multiline and scrollable to true. The negative there would be you have to scroll using the scroll bar handle. Not the way i like but that is by far the fastest to develop, load and execute.
If you go with Michele's SDK have you looked at his example project? it does give a good sample of a new class implementing his IKListItem which could be changed for height and drawstring or multiline fairly easy. If Michele's reply confuses you then simply create a new class object implementing IKListItem and make it only show 1 line of text (using measurestring method). Then use code to loop through your lyrics and create as many new "items" as needed for your song.
Eric
hi eric just a question...
why create one item for each line if he could easily create just one item with wordwrapping?
i'm asking 'cause that is harder cause this way he should wrap the text manually instead of let do this by graphics.drawstring method
ebernazz2
29th December 2009, 02:15 AM
hi eric just a question...
why create one item for each line if he could easily create just one item with wordwrapping?
i'm asking 'cause that is harder cause this way he should wrap the text manually instead of let do this by graphics.drawstring method
I don't disagree with you. The only advantage would be no wordwrap support in cf (adding another resource means you have to install it or package in your cab) and the ease of controlling how much or little of the song by controlling each panel item by line and then can handle what line was tapped etc. Not the best utilization of resources but that would probably be better in picturebox or panel anyway.
Eric
Upquark
29th December 2009, 10:26 PM
As Michele wrote you could use this SDK and create your own panelitem. Depends on what the app is going to use when complete. If it needs nothing else in this library I would say use a picturebox and track the mouse events to scroll the view of the picturebox. That could cause some flicker and jumping though and then you need to double buffer (which may make it easier to just use this SDK). A third option is to spend some cash and get a scrollable UI library. Touch Control Suite has a nice touch enabled picturebox that supports panning and kinetic scrolling.
If you don't need finger friendly on the whole screen you could take the easy way out. Just use a textbox and set multiline and scrollable to true. The negative there would be you have to scroll using the scroll bar handle. Not the way i like but that is by far the fastest to develop, load and execute.
If you go with Michele's SDK have you looked at his example project? it does give a good sample of a new class implementing his IKListItem which could be changed for height and drawstring or multiline fairly easy. If Michele's reply confuses you then simply create a new class object implementing IKListItem and make it only show 1 line of text (using measurestring method). Then use code to loop through your lyrics and create as many new "items" as needed for your song.
Eric
Thank you very much for your extensive reply. I think I'll try the IKListItem thing. I'm not sure I understand how to use a picturebox; you can't put text into it, or can you?
Thanks for any help! :o
michyprima
29th December 2009, 10:49 PM
Thank you very much for your extensive reply. I think I'll try the IKListItem thing. I'm not sure I understand how to use a picturebox; you can't put text into it, or can you?
Thanks for any help! :o
that's not too hard just override onpaint method
btw is more correct to create a control yourself if you might want to follow that method than use a picturebox ;)
maxpg
29th December 2009, 11:10 PM
I'm currently working on a manila style control (drop down), as there is now dropdown currently in the SDK.
Currently I'm facing a problem with the list component. I use it at two positions, one time I only add "standard" items to the list (checkbox items and separators). In this case, when I scroll to the last element, I cannot fully see it. Scrolling stops in the middle of the element.
The second thing I use the list component for ist the drop down control I'm working on. In this case I have the opposite problem. When I scroll to the last element, I can scroll a bit further and see the background of the list component. Here I add custom elements to the list, however they have all the same size.
Do you have an idea what I could make wrong here? Another question, in the real manila UI, one can scroll beyond the beginning and end of the list. When I release the finger, the list scrolls then automatically to the beginning or end of the list. I think it would be nice to make the list configurable to do the same.
By the way, when I've finished the ComboBox, would you be interested in the source, maybe you could add it to the SDK!?
ebernazz2
30th December 2009, 01:05 AM
that's not too hard just override onpaint method
btw is more correct to create a control yourself if you might want to follow that method than use a picturebox ;)
Hi Guys. I have not done this in the winmo world but I assume it works the same. The picturebox and panel controls are "container" controls. So they are in a way like a form and you can put other controls in them. You could use a label or textbox to hold the text and then use the mouse events of the picturebox or panel to handle the movements.
Eric
ebernazz2
30th December 2009, 01:09 AM
that's not too hard just override onpaint method
btw is more correct to create a control yourself if you might want to follow that method than use a picturebox ;)
How is it more correct?
AgentBignose
31st December 2009, 09:19 AM
Great that you continue your work!!
I just made a donation, too.
It would be great if could make all existing Controlls also available as panelitems.
vua777
31st December 2009, 11:58 AM
thanks
let's me bookmark this
michyprima
31st December 2009, 04:21 PM
I'm currently working on a manila style control (drop down), as there is now dropdown currently in the SDK.
Currently I'm facing a problem with the list component. I use it at two positions, one time I only add "standard" items to the list (checkbox items and separators). In this case, when I scroll to the last element, I cannot fully see it. Scrolling stops in the middle of the element.
The second thing I use the list component for ist the drop down control I'm working on. In this case I have the opposite problem. When I scroll to the last element, I can scroll a bit further and see the background of the list component. Here I add custom elements to the list, however they have all the same size.
Do you have an idea what I could make wrong here? Another question, in the real manila UI, one can scroll beyond the beginning and end of the list. When I release the finger, the list scrolls then automatically to the beginning or end of the list. I think it would be nice to make the list configurable to do the same.
By the way, when I've finished the ComboBox, would you be interested in the source, maybe you could add it to the SDK!?
Hi,
I suggest you wait about making a ComboBox; I'm working on it myself right now :)
Great that you continue your work!!
I just made a donation, too.
It would be great if could make all existing Controlls also available as panelitems.
Hi,
I would thank you for your gift :)
It's much appreciated!
michyprima
31st December 2009, 08:34 PM
Today I done lot of cleaning and optimizing the code...
The List was fast with a small number of items, but with a large number it were becaming very slow.
Now it's optimized and works MUCH faster...
And I'm bugfixing too ;)
Plus I changed the way items are managed...And removed YIndex ;)
See here:
http://img198.imageshack.us/img198/9450/sdks.th.png (http://img198.imageshack.us/i/sdks.png/)
AgentBignose
1st January 2010, 01:47 PM
This are great news!!
I'm leaving for ski holidays now and I'm looking forward to see news on the project.
Will you reenable rendering in Formdesigner?
And I realy miss TrackbarPanelItem like in Sound Control of Sound&Display from Manila Settings and ManilaTextboxPanelItem and ManilaButtonPanelItem.
This Project is totaly awesome!
After your rocking Athena Roms this is the next masterpiece of a legend genius! ;-)
This offers so much possibilities:
http://img195.imageshack.us/img195/4465/manilaprofiler13.th.jpg (http://img195.imageshack.us/i/manilaprofiler13.jpg/)
Roccc
1st January 2010, 11:36 PM
Hi Michele,
This are great news :)
When do you think that we can admire the next version ?
Upquark
2nd January 2010, 09:32 PM
that's not too hard just override onpaint method
btw is more correct to create a control yourself if you might want to follow that method than use a picturebox ;)
I have no clue how to do either of them. :(
Can anyone give me a hint?
ebernazz2
2nd January 2010, 10:19 PM
I have no clue how to do either of them. :(
Can anyone give me a hint?
I will try. First I am not sure what app you are building but I think I remember something about scrolling lyrics. As I said earlier you certainly can use this SDK but if all you want is scrolling lyrics then I would try this.
In VS have your form designer open and add a panel (Panel1) and decide on the width you want (dont worry about the height just yet) (or set its Dock property to top to be as wide as the form). Now in your toolbox select label (Label1) and add it to the panel (not the form - i.e. make sure your draw it in the panel). I would then edit the label's properties to have TextALign = TopCenter (nice lyrics effect) and Font = Tahoma 8 pt.
In your form load (or whereever).
Label1.Text = "Sympathy For the Devil" & vbCrLf
Label1.Text = Label1.Text & vbCrLf & "Please allow me to introduce myself."
Label1.Text = Label1.Text & vbCrLf & "I am a man of wealth and fame."
Label1.Text = Label1.Text & vbCrLf & "I've been around for a long,long year."
Label1.Text = Label1.Text & vbCrLf & "Stole many a man's sole and faith."
Label1.Text = Label1.Text & vbCrLf & "And I was around when Jesus Christ."
Label1.Text = Label1.Text & vbCrLf & "Had his moment of doubt and pain."
Label1.Text = Label1.Text & vbCrLf & "Made damn sure that Pilate."
Label1.Text = Label1.Text & vbCrLf & "Washed his hands and sealed his fate."
Label1.Text = Label1.Text & vbCrLf & "Pleased to meet you"
Label1.Text = Label1.Text & vbCrLf & "Hope you guess my name."
Label1.Text = Label1.Text & vbCrLf & "But what's puzzling you."
Label1.Text = Label1.Text & vbCrLf & "Is the nature of my game."
Dim g As Graphics = CreateGraphics()
Dim Size As SizeF = g.MeasureString(Label1.Text, Label1.Font)
Label1.Height = Size.Height
Then set a few lines of code in the following events.
Public SPoint As New Point
Private Sub Panel1_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Panel1.MouseDown
SPoint = New Point(e.X, e.Y)
End Sub
Private Sub Panel1_MouseUp(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Panel1.MouseUp
If Label1.Height + Label1.Top < Panel1.Height Then Label1.Top = Panel1.Height - Label1.Height
If Label1.Top > 0 Then Label1.Top = 0
End Sub
Private Sub Panel1_MouseMove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Panel1.MouseMove
Dim DeltaY As Integer = (SPoint.Y - e.Y)
If DeltaY < 10 And DeltaY > (-10) Then Exit Sub
Label1.Top = Label1.Top - (DeltaY / 2)
End Sub
Not sure is this is perfect but should get you going. This will allow scrolling past the top and bottom but when your finger is released it will position it to the beginning or end.
If you get stuck let me know.
Eric
Wareczek
3rd January 2010, 02:51 AM
Guys I have a problem with control ManilaCheckBox. What is wrong in this code at line 3 ?
var checkBoxTest = new ManilaCheckBox();
checkBoxTest.Text = "Some test";
checkBoxTest.Checked = true;
Controls.Add(checkBoxTest);
After running this code, the following error occurs:
NullReferenceException at MichyPrima.ManilaDotNetSDK.ManilaCheckBox.SetCheck edCore(Boolean Checked)
The same situation with ManilaPanelCheckBoxItem
ebernazz2
3rd January 2010, 04:13 AM
Guys I have a problem with control ManilaCheckBox. What is wrong in this code at line 3 ?
var checkBoxTest = new ManilaCheckBox();
checkBoxTest.Text = "Some test";
checkBoxTest.Checked = true;
Controls.Add(checkBoxTest);
After running this code, the following error occurs:
NullReferenceException at MichyPrima.ManilaDotNetSDK.ManilaCheckBox.SetCheck edCore(Boolean Checked)
The same situation with ManilaPanelCheckBoxItem
I am not the Author but in looking at the code I think the unhandled Null Ref is pointing to no parent. Try adding checkBoxTest.Parent = Me; (or is it checkBoxTest.Parent = this; in C ?). I also don;t know if it uses the text property (the panel item uses something) but this is just the checkbox and you would have to add your own text before it (in other words your "Some Test" won't show).
Let me know if that works.
Eric
Wareczek
3rd January 2010, 10:20 PM
Adding property Parent helped, thx :)
michyprima
4th January 2010, 02:05 AM
just finished combobox.
2 A.M.
going to get some sleep :)
Enabled/Opened:
http://img51.imageshack.us/img51/5764/screenshot5wx.th.jpg (http://img51.imageshack.us/i/screenshot5wx.jpg/)
Disabled:
http://img37.imageshack.us/img37/8602/screenshot6q.th.jpg (http://img37.imageshack.us/i/screenshot6q.jpg/)
pangel83
4th January 2010, 08:30 AM
Since you are working on the library, would it be possible to enable GotFocus and LostFocus handlers on the NewTextBox control? They look like they are available, but they are not really mapped to the actual text box that seems to lie within the control... I had to do a lot of black magic to get around that :) Same is true for other events as well....
I created my own "combobox" control for pTasks, which is based on a dedicated form (I think it is more suitable for situations when there exist a lot of options). Have a look :) I would also be happy to provide my numeric up-down control for prettification and inclusion if you like it :)
Some more properties that control the position and font of MainText and SecondaryText in panel controls is what would make the library an essential tool for all XDA developers :D
pangel83
4th January 2010, 08:31 AM
Oh, forgot... and MANY THANKS!!! without your library, pTasks would not have existed :)
pangel83
4th January 2010, 08:33 AM
Guys I have a problem with control ManilaCheckBox. What is wrong in this code at line 3 ?
var checkBoxTest = new ManilaCheckBox();
checkBoxTest.Text = "Some test";
checkBoxTest.Checked = true;
Controls.Add(checkBoxTest);
After running this code, the following error occurs:
NullReferenceException at MichyPrima.ManilaDotNetSDK.ManilaCheckBox.SetCheck edCore(Boolean Checked)
The same situation with ManilaPanelCheckBoxItem
You have to add a YIndex, then add it to the panel. Only after that can you set the checked property.
ebernazz2
4th January 2010, 01:18 PM
You have to add a YIndex, then add it to the panel. Only after that can you set the checked property.
??? You do if you are adding it to KListControl but that is not what the code was doing. It was using the non panel control in which case his null reference was caused by having no parent during the control invalidate on setchecked event.
Your suggestions are right on - It seems Michele will be releasing a new version soon and in the meantime it is pretty easy to make your own enhancements. Just use the SDK's resources and implement IKListItem and add whatever eventhandlers and render enhancements you like.
Eric
drmadu
4th January 2010, 05:39 PM
First of all a big thanks again to michiprima of course, but also to ebernazz2 for helping me with my very stupid mistake.
I am currently working aon a programm that uses the manila sdk.
It plays an alert and a vibrate if there are missed sms,mms,emails or calls.
U can see a Screenshot in the Attachment.
@michiprima and all others who know:
How did you manage in your Test Project to make the KListControl both DockStyle Fit to screen, but also beginning under the Header? I only manage one of the two.
And is it possible to cache a klick event for the OnOffSwitches?
By the way I mentioned your work a lot.
Hi I seem to have the same problem (visual studio 2005 though). Though reading the thread twice I couldn't find out how you solved it. The solutions in the thread dont't work for me as I see either no controls at all or on other instances controls I can't select.
Perhaps you could help me!
Thanks
drmadu
lamajstro
4th January 2010, 05:54 PM
I managed to add the tools into the toolbox on visual studio 2008. But when I had one to a form, it will not be displayed. Instead I just see a simple frame. Is that the normal behaviour?
michyprima
4th January 2010, 06:24 PM
I managed to add the tools into the toolbox on visual studio 2008. But when I had one to a form, it will not be displayed. Instead I just see a simple frame. Is that the normal behaviour?
normal. they are not displaied cause are designed to work only on windows mobile.
ebernazz2
4th January 2010, 07:28 PM
Hi I seem to have the same problem (visual studio 2005 though). Though reading the thread twice I couldn't find out how you solved it. The solutions in the thread dont't work for me as I see either no controls at all or on other instances controls I can't select.
Perhaps you could help me!
Thanks
drmadu
Lets see where you are off. VS2005 is fine so its not that (well maybe it is what version of 2005?). Next please list your steps you use to start a new project. From there I will try and help.
Eric
makeveral
4th January 2010, 07:30 PM
hey michy, great job!!
when you release new version i'll update my app :p
btw happy new year :D
maxpg
4th January 2010, 07:56 PM
just finished combobox.
2 A.M.
going to get some sleep :)
Enabled/Opened:
http://img51.imageshack.us/img51/5764/screenshot5wx.th.jpg (http://img51.imageshack.us/i/screenshot5wx.jpg/)
Disabled:
http://img37.imageshack.us/img37/8602/screenshot6q.th.jpg (http://img37.imageshack.us/i/screenshot6q.jpg/)
Damn, seen it too late. I just finished my combobox version myself. However, something that would be great for all components (which I used for my combobox), could you make use of GDI+ if it is available on the device (I think all >= Windows Mobile 6 Professional devices have this library, it is just missing in the compact framework). Here is a blog entry on how to make use of GDI+ http://community.opennetcf.com/articles/cf/archive/2007/10/31/using-gdi-on-windows-mobile.aspx
I used it to draw gradient background colors, antialiased rounded rectangles for the button, dotted lines separating the list entries (but beware, drawing dotted lines is slow -> cache them within a bitmap),... I make a check to see whether GDI+ can be used, if so I use the additional stuff, if not I draw a simpler version.
By the way, how did you solve the problem of painting outside of the parent control in your combo box (when you show the expanded list)? I found no better solution as placing the list within its own form that I located properly.
michyprima
5th January 2010, 10:06 AM
There's no other way than to add a control in the Parent of the combobox.
It works nicely that way.
Btw why use GDI+?
NETCF uses GDI; both uses the same processor to draw to screen.
I think that will not be any speed enhancement.
And since NETCF controls doesn't support transparency, them will always need to be rectangular :D
(of course there are some ways to get around this, but is still no real transparency)
dattrax
5th January 2010, 01:32 PM
Btw why use GDI+?
NETCF uses GDI; both uses the same processor to draw to screen.
I think that will not be any speed enhancement.
And since NETCF controls doesn't support transparency, them will always need to be rectangular :D
(of course there are some ways to get around this, but is still no real transparency)
This may be true, however lots of devices now come with hardware OpenVG support, such as the HD2. Technically GDI+ should be able to take advantage of the hardware support in the device. GDI+ supports transparency (at least on the desktop). A software implementation of GDI+ will be slower than GDI, but a HW implementation will be much faster.
Jim
michyprima
5th January 2010, 04:52 PM
Actually GDI supports a kind of transparency; you can use imageattribute class to set a color which indicates transparency.
The problem is that NetCF Controls DOESN'T Support that!
They are painted in a screen region which is rectangular and there's no way to change this...(apart write new classes for forms and controls which may support transparency, or use fake-transparency workarounds...)
Btw I don't think changing all the code to GDI+ is a good idea...
Ok, newer devices will have OpenVG support...but older ones doesn't...
And change all graphics codes to adapt this to GDI+ is not extremely useful
t0flus
5th January 2010, 07:50 PM
Do you have an alternative download location? I have tried for a week but get this message all the time: "Unfortunately right now our servers are overloaded and we have no more download slots left for non-members. Of course you can also try again later."
Øystein
maxpg
5th January 2010, 08:57 PM
The advantage of GDI+ is not performance, but the possibilities. For example I used it for my ComboBox as the Button has rounded edges within the Manila Interfaces. With GDI+ I was able to draw the button with rounded edges that are antialiased, which looks nicer.
Another example are dotted lines. As far as I've seen, dotted lines cannot be easily painted with GDI in the compact framework. However, manila uses these lines, so I also wanted to use them. The same is true for complex brushes that draw gradients etc.
Just wanted to tell you about the GDI+ possibility as it might allow you to improve the visual appearance of your components even more.
Here is an image of my ComboBox, I think the antialiasing of GDI+ allows really nice rounded corners.
http://maxpg.bplaced.net/images/combo.jpg
michyprima
6th January 2010, 01:36 AM
The advantage of GDI+ is not performance, but the possibilities. For example I used it for my ComboBox as the Button has rounded edges within the Manila Interfaces. With GDI+ I was able to draw the button with rounded edges that are antialiased, which looks nicer.
Another example are dotted lines. As far as I've seen, dotted lines cannot be easily painted with GDI in the compact framework. However, manila uses these lines, so I also wanted to use them. The same is true for complex brushes that draw gradients etc.
Just wanted to tell you about the GDI+ possibility as it might allow you to improve the visual appearance of your components even more.
Here is an image of my ComboBox, I think the antialiasing of GDI+ allows really nice rounded corners.
http://maxpg.bplaced.net/images/combo.jpg
nice work on the control ;)
btw thank your for your info on GDI+.
I think I'll take advantage of it nextly ;)
drmadu
6th January 2010, 01:58 PM
Lets see where you are off. VS2005 is fine so its not that (well maybe it is what version of 2005?). Next please list your steps you use to start a new project. From there I will try and help.
Eric
Hi Eric - thanks for trying to help me!
First I'm using VS 2005 Standard Edition. I tried several ways e.g. creating a new project (C#, Smart device, Windows mobile 6 Professional, Device Application), then adding a new item ("Registerkarte" in German) to the toolbox called "manilatools". After activating it I rightclick and select "add items". In the following dialogue I select "search" and then ManilaDotNetSDK.dll then I click OK. After that there is - nothing. If I select "show all" in the toolbox contextmenu I see the controls, but they are not useable (greyed out).
Perhaps you do need compact framework 3.5 for this SDK?
Thanks again for helping me
drmadu
Wareczek
6th January 2010, 02:15 PM
michyprima when we'll see next version? :)
ebernazz2
6th January 2010, 02:58 PM
Hi Eric - thanks for trying to help me!
First I'm using VS 2005 Standard Edition. I tried several ways e.g. creating a new project (C#, Smart device, Windows mobile 6 Professional, Device Application), then adding a new item ("Registerkarte" in German) to the toolbox called "manilatools". After activating it I rightclick and select "add items". In the following dialogue I select "search" and then ManilaDotNetSDK.dll then I click OK. After that there is - nothing. If I select "show all" in the toolbox contextmenu I see the controls, but they are not useable (greyed out).
Perhaps you do need compact framework 3.5 for this SDK?
Thanks again for helping me
drmadu
You have answered your own question! 3.5 will activate them.
Eric
ChrisX81
7th January 2010, 05:09 PM
Hi!
I'm new in mobile developing and found that interesting sdk (I own an HD2 - so it just make sense to create an application which has a touch of manila).
I use Visual Studio 2005 Professional on Windows 7 and tried both, C# and vb.net. I created a Windows CE 5.0 Device Application. After creating the solution I tried to add the controls to the toolbox ("Choose Item") but nothing happens. The controls are checked in the "Choose Items" Dialog, but not visible in the toolbox.
Have I done something wrong?
ebernazz2
7th January 2010, 08:57 PM
Hi!
I'm new in mobile developing and found that interesting sdk (I own an HD2 - so it just make sense to create an application which has a touch of manila).
I use Visual Studio 2005 Professional on Windows 7 and tried both, C# and vb.net. I created a Windows CE 5.0 Device Application. After creating the solution I tried to add the controls to the toolbox ("Choose Item") but nothing happens. The controls are checked in the "Choose Items" Dialog, but not visible in the toolbox.
Have I done something wrong?
I would try MS Windows 6 Pro SDK download and also make sure you are using CF 3.5. That way once you start a new project - Smart Device - you would select Windows Pro 6 SDK and .Net Compact Framework 3.5.
Eric
drmadu
8th January 2010, 10:57 PM
I would try MS Windows 6 Pro SDK download and also make sure you are using CF 3.5. That way once you start a new project - Smart Device - you would select Windows Pro 6 SDK and .Net Compact Framework 3.5.
Eric
If I'm not mistaken you can't use Compact framework 3.5 with VS 2005! Please correct me if I'm wrong because thats hindering me from using the SDK too!
Martin
Roccc
9th January 2010, 01:53 AM
Yes, you can use Compact framework 3.5 with VS 2005 (or VS 2008).
t0flus
10th January 2010, 01:51 AM
I love your controls and I'm testing them in my applications. I could need some help with adding a checkbox inside the list control. Do you guys have a suggestion on how this can be achieved...?
Øystein
Lmiller1708
10th January 2010, 02:00 AM
Does anyone have Test2.1.rar?
Rapid Share is not working... Been not working all day...:mad:
Thanks!:D
Edit: Got it cleared Up! Thanks!
drizztzou
10th January 2010, 06:56 AM
Use this tool for a long time, thanks
maxpg
10th January 2010, 06:28 PM
Is there a possibility to switch the ManilaHeader to the dark design used by most manila apps outside of the configuration dialogs?
VPAFan
11th January 2010, 12:32 PM
Hi michipryma,
I'm using your great SDK in my App "Manila Birthday" (http://forum.xda-developers.com/showthread.php?t=605879)
When I do the following
ManilaPanelButtonItem item = new ManilaPanelButtonItem();
item.YIndex = 0;
item.Text = "select all";
I get an NullReferenceExeption at assigning "item.Text"
Can you please give me a hint what I did wrong;
greetz
pangel83
11th January 2010, 03:59 PM
Hi michipryma,
I'm using your great SDK in my App "Manila Birthday" (http://forum.xda-developers.com/showthread.php?t=605879)
When I do the following
ManilaPanelButtonItem item = new ManilaPanelButtonItem();
item.YIndex = 0;
item.Text = "select all";
I get an NullReferenceExeption at assigning "item.Text"
Can you please give me a hint what I did wrong;
greetz
you have to add it to the list before setting the text property...
smog
13th January 2010, 01:17 AM
Hi micky, thanks for this awesome library. I am experiencing a problem with the KListControl, I have the feeling that the OnMouseUp event of the controls in the list gets fired only when the control is not moved (isSamePoint = true).
zzattack
13th January 2010, 03:29 PM
Hi micky, thanks for this awesome library. I am experiencing a problem with the KListControl, I have the feeling that the OnMouseUp event of the controls in the list gets fired only when the control is not moved (isSamePoint = true).
hm, it fires either if isSamePoint, or if !doScroll
smog
13th January 2010, 03:37 PM
hm, it fires either if isSamePoint, or if !doScroll
Yes but one could need it even if the list is moving. In my case I need that event to remove the highlight from the element, right now I am setting a timer at 1 sec to clear the highlight but it is not the way I expected it to work.
ShinmenTakezo
14th January 2010, 09:45 PM
Hi,
first of all your sdk is really looking great but i've to give some constructive feedback. it's a real memory killer.
I made a little sudoku using the manilabuttons and it took around 16-17 mb memory. after i replaced the manilabuttons with normal buttons it was around 6-7 mb. each button has around 400 kb which is quiet a lot.
Best regards
Benni
F!r3f0x
15th January 2010, 02:31 PM
is it possible to have a kinetic scrolling list like in the htc sense contact list?
the speed of scrolling in sense is much better than in your SDK.
would be great if there is a feature for this because every time I use a app including your SDK the scroll feeling is very different from the htc one :(
t0flus
15th January 2010, 10:12 PM
I'm having trouble while populating the List with 500 ManilaPanelCheckBoxItem items. The list gets really slow when scrolling...
Here is the code I use to add items:
Cursor.Current = Cursors.WaitCursor;
OutlookSession session = new OutlookSession();
this.kListControl1.BeginUpdate();
this.kListControl1.Clear();
for (int i = 0; i < session.Contacts.Items.Count; i++)
{
Contact c = session.Contacts.Items[i];
ManilaPanelCheckBoxItem item = new ManilaPanelCheckBoxItem();
item.YIndex = i;
this.kListControl1.AddItem(item);
item.SecondaryText = c.MobileTelephoneNumber;
item.MainText = c.FileAs;
item.Checked = true;
item.Image = null;
}
this.kListControl1.EndUpdate();
session.Dispose();
Cursor.Current = Cursors.Default;
Any suggestions to make it faster? It takes ages to reach the bottom of my list with 524 items....
Øystein
michyprima
16th January 2010, 02:17 PM
I'm having trouble while populating the List with 500 ManilaPanelCheckBoxItem items. The list gets really slow when scrolling...
Here is the code I use to add items:
Cursor.Current = Cursors.WaitCursor;
OutlookSession session = new OutlookSession();
this.kListControl1.BeginUpdate();
this.kListControl1.Clear();
for (int i = 0; i < session.Contacts.Items.Count; i++)
{
Contact c = session.Contacts.Items[i];
ManilaPanelCheckBoxItem item = new ManilaPanelCheckBoxItem();
item.YIndex = i;
this.kListControl1.AddItem(item);
item.SecondaryText = c.MobileTelephoneNumber;
item.MainText = c.FileAs;
item.Checked = true;
item.Image = null;
}
this.kListControl1.EndUpdate();
session.Dispose();
Cursor.Current = Cursors.Default;
Any suggestions to make it faster? It takes ages to reach the bottom of my list with 524 items....
Øystein
yep , wait new version, the current one has a conceptual error, which mades it scrolling very slow with a large number of items.
Wareczek
16th January 2010, 03:16 PM
wait new version
How much time we have to wait?
t0flus
16th January 2010, 04:28 PM
Thanks Michele!
Looking forward to try the new version. I'll donate when the list is working with lots of items because I love everything about it. The only thing I could need is a Tag property on the items in the list so I can uniquely identify each item without using the YIndex.
If you have a date on the new version I'll be glad to know it.
Øystein
Wareczek
16th January 2010, 05:17 PM
The only thing I could need is a Tag property on the items in the list so I can uniquely identify each item without using the YIndex.
Agree with you! This will make life easier ;)
michyprima
16th January 2010, 06:08 PM
if u need tag there's an easy way to add it:
Public Class CheckBoxListWithTagItem
Inherits MichyPrima.ManilaDotNetSDK.ManilaPanelCheckBoxItem
Dim _Tag As Object
Public Property Tag() As Object
Get
Return _Tag
End Get
Set(ByVal value As Object)
_Tag = value
End Set
End Property
End Class
t0flus
16th January 2010, 06:33 PM
I know, and I´ve already implemented my own Tag property by inheriting your class. I´ve also included a FindByTag method. Just wanted to point out that I think that a lot of users would need one, so including the Tag property in your SDK could be a good idea.
Keep up the good work!
Best regards
Øystein
lap33733
17th January 2010, 01:56 PM
I know, and I´ve already implemented my own Tag property by inheriting your class. I´ve also included a FindByTag method. Just wanted to point out that I think that a lot of users would need one, so including the Tag property in your SDK could be a good idea.
Keep up the good work!
Best regards
Øystein
Agree, I've also implemented a tag property, it looks like it is a basic need!
spastik
17th January 2010, 07:43 PM
CellId = New ManilaDotNetSDK.ManilaPanelCheckBoxItem
CellId.YIndex = 1
CellId.MainText = "Test"
CellId.Checked = True
KListControl1.AddItem(CellId)
Everytime I try to use de Checked property it gives me an error "null reference exception".... why ?
sproxy
18th January 2010, 11:46 PM
Thanks for this SDK. I have just uploaded a UK Rail Departure application at the following URL using this SDK:
http://forum.xda-developers.com/showthread.php?t=620076
I have taken a shortcut and used default CF comboboxes in the application but rest of the controls are from Manila SDK and having them available made it look much better than using 100% stock CF interface set.
guy1218
19th January 2010, 09:04 AM
The SDK is very hard to download, could you put it somewhere else? Thanks a lot~
mike2nl
19th January 2010, 10:12 AM
After reading the thread, i have NOT tested the SDK, there is one question open for me:
When i will write my own application (something for paragliding), have i the possibillity to skin it later with my own and the official dusk grafics?
I can be a stupid question, but please help me out to make things clear..
t0flus
19th January 2010, 11:33 AM
CellId = New ManilaDotNetSDK.ManilaPanelCheckBoxItem
CellId.YIndex = 1
CellId.MainText = "Test"
CellId.Checked = True
KListControl1.AddItem(CellId)
Everytime I try to use de Checked property it gives me an error "null reference exception".... why ?
Try to move the line : KListControl1.AddItem(CellId); above the .Checked = true; line
Øystein
Wareczek
19th January 2010, 12:05 PM
CellId = New ManilaDotNetSDK.ManilaPanelCheckBoxItem
CellId.YIndex = 1
CellId.MainText = "Test"
CellId.Checked = True
KListControl1.AddItem(CellId)
Everytime I try to use de Checked property it gives me an error "null reference exception".... why ?
Add this line:
CellId.Parent = KListControl1
t0flus
19th January 2010, 01:17 PM
Both suggestions probably work. I believe the Parent property is set when you add the item to the list.
Øystein
Wareczek
19th January 2010, 01:45 PM
I believe the Parent property is set when you add the item to the list.
Øystein, try to add 2 checkboxes to this list in your way:
KListControl1.AddItem(CheckBox1);
CheckBox1.Checked = true;
CheckBox1.YIndex = 0;
CheckBox1.MainText = "First checkbox";
KListControl1.AddItem(CheckBox2);
CheckBox2.Checked = false;
CheckBox2.YIndex = 1;
CheckBox2.MainText = "Second checkbox";
You will get error: "Value does not fall within the expected range."
t0flus
19th January 2010, 03:19 PM
That is because YIndex must be set before you add the Item.
I run this code in without any problems:
for (int i = 0; i < test.Count; i++)
{
ManilaPanelCheckBoxItem item = new ManilaPanelCheckBoxItem();
item.YIndex = i;
this.kListControl1.AddItem(item);
item.Checked = true;
item.MainText = "Testing";
item.SecondaryText = "Testing";
item.Image = null;
item.StatusChanged += new ManilaPanelCheckBoxItem.StatusChangedEventHandler( item_StatusChanged);
}
I think I read that in the next version you don't have to set YIndex manuall as it will be incremented when you call AddItem. But for now you have to set it before you add it to the list....
Pacman15
20th January 2010, 08:16 PM
I am having a hard time adding the text from a text box into the ItemList. Can you help me out. I'm using c#. do you have some documentation?
I can't seem to create a IKListItem so I can add it to the list.
t0flus
21st January 2010, 11:21 AM
You don't create a IKListItem class... you create a class that implements the IKListItem interface.
If I remember correctly there is a example in C# attached in one of the replies in this thread.....
Øystein
spastik
21st January 2010, 12:50 PM
Yup, both solutions worked ! thanks ! :)
amirdt
21st January 2010, 02:28 PM
I am new to C# programming (only did C++ and Java till now), so sorry for my question.
I created a small application using the KListControl with ManilaPanelCheckBoxItem, all is presented fine, but I cant find anyway to catch the user selection event back to my code.
Any help will bee greatly appreciated... :)
The List creation section:
this.kListControl1.BeginUpdate();
this.kListControl1.Clear();
for (int i = 0; i < numStations; i++) {
StationListItem item = new StationListItem();
item.YIndex = i;
this.kListControl1.AddItem(item);
item.Checked = false;
item.MainText = stationArray[i].getCity();
item.SecondaryText = stationArray[i].getName();
item.Image = null;
item.Parent = this.kListControl1;
}
this.kListControl1.EndUpdate();
The code where I try to catch the event, none of the methods is being called when I tap on the list:
public class StationListItem : ManilaPanelCheckBoxItem {
new public void OnMouseDown(int X, int Y, ref bool DoScroll) {
DoScroll = true;
}
new public void OnMouseUp(int X, int Y, bool IsSamePoint) {
ManilaMessageBoxHelper.MessageBoxShow("Clicked!", @"You OnMouseUp me! (" + this.YIndex.ToString() + ")", "OK");
}
new public void OnClick() {
ManilaMessageBoxHelper.MessageBoxShow("Clicked!", @"You OnClick me! (" + this.YIndex.ToString() + ")", "OK");
}
new public void StatusChanged() {
ManilaMessageBoxHelper.MessageBoxShow("status!", @"You StatusChanged me! (" + this.YIndex.ToString() + ")", "OK");
}
}
t0flus
21st January 2010, 03:37 PM
Not sure what you want to achieve, but I have implemented the code below to make a click event change the checked state of the checkbox. No matter where you click on the item the checkbox is toggled.....
When inserting items:
item.OnClick += new ManilaPanelCheckBoxItem.OnClickEventHandler(item_O nClick);
And the EventHandler looks like this:
void item_OnClick(object Sender)
{
ManilaPanelCheckBoxItem item = (ManilaPanelCheckBoxItem)Sender;
item.Checked = !item.Checked;
}
Øystein
amirdt
21st January 2010, 04:17 PM
Many thanks t0flus, your suggestion resolved my issue... :)
amirdt
24th January 2010, 11:16 AM
Hello, another noob question
I didn't find a way to iterate over all the items inside kListControl, I tried to enumerate the Controls attribute inside the kListControl, but it seems unused (empty).
Any idea?
Thanks
t0flus
24th January 2010, 12:23 PM
Most list controls have an Items property but the Manila listcontrol doesn't. You actually use the [] on the control itself....
for (int i = 0; i < this.kListControl1.Count; i++)
{
ManilaPanelCheckBoxItem item = (ManilaPanelCheckBoxItem)this.kListControl1[i];
}
amirdt
24th January 2010, 01:24 PM
Many thanks for your reply!
Another issue, when I delete a ManilaPanelCheckBoxItem in the middle of the kListControl, there is an ugly empty hole left in the middle of the list on the screen.
This is the code I tried (and not working well):
ManilaPanelCheckBoxItem item;
kListControl1.BeginUpdate();
int count = 0;
for(int i = 0; i < kListControl1.Count; i++) {
item = (ManilaPanelCheckBoxItem)kListControl1[i];
if(item.Checked) {
kListControl1.RemoveItem(item);
} else {
// Recreate the indexes
item.YIndex = count++;
}
}
kListControl1.EndUpdate();
The only work-around I found is to delete and recreate the whole list every time.
AgentBignose
24th January 2010, 05:33 PM
Can you guess when you will release next version Michy?
djflocko
25th January 2010, 11:59 PM
Hi,
I tried to download the SDK via rapidshare but it doesn't work. Is there another download location?
kewl01
27th January 2010, 09:22 AM
I'm trying to use the library and i noticed there are many controls for example, ManilaPanelItem, ManilaPanelSeperatorItem, etc but what I can see in my toolbox is only 9 controls. Am i missing something here? Also, what do i do with the OpenNETCF.Drawing.dll file?
I tried to add that to my control and it gave some errors..
amirdt
27th January 2010, 02:19 PM
I'm trying to use the library and i noticed there are many controls for example, ManilaPanelItem, ManilaPanelSeperatorItem, etc but what I can see in my toolbox is only 9 controls. Am i missing something here? Also, what do i do with the OpenNETCF.Drawing.dll file?
I tried to add that to my control and it gave some errors..
All the ManilaPanelxxxItem are not used as stand alone, they are elements you add in your code to the KListControl.
You can see many examples to that in this thread
Wareczek
27th January 2010, 02:59 PM
Is there a way to add scroll bar to KListControl ?
amirdt
27th January 2010, 04:01 PM
Is there a way to add scroll bar to KListControl ?
The whole idea is that it is Finger Friendly control, you scroll it by sliding your hand (or stylus) over it, why would you add a scroll bar?
Wareczek
27th January 2010, 04:29 PM
I know and that is ok, but in original Manila we have very thin scroll bar not to scroll with, but to know how long our list is.
VPAFan
28th January 2010, 02:12 PM
@all,
does anybody know how to bring an item of a KListControl into the visible region. By program, not with the finger.
greetz
amirdt
30th January 2010, 10:37 AM
Hello,
I fail to get mouse down/up event in the ManilaNewTextBox I can only get key down/press/up events, any ideas how to solve it please?
amirdt
31st January 2010, 08:17 AM
ManilaMessageBoxHelper not working on landscape.
whenever the application is changing from portrait to landscape, the message box has a lot of drawing issues, and after opening 4-5 times the dialog, the application crashes.
BTW, the strange behavior can also be seen in Visual Studio emulator (in landscape mode).
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.