View Full Version : [.NetCF Library] Manila Interface SDK
Wareczek
4th February 2010, 03:27 PM
I have a problem with ManilaNewTextBox. Application have 1 form and 2 user controls. This error is only with ManilaNewTextBox. With ManilaTextBox seams to be ok.
Please check source of bug demo: SmartDeviceProject4.zip (http://hotfile.com/dl/27149303/df6c25f/SmartDeviceProject4.zip.html)
Compile and click: open > back > close. Now after closing aplication we have disposing error:
StackTrace " at Microsoft.AGL.Common.MISC.HandleAr(PAL_ERROR ar)\r\n at System.Windows.Forms.Control.Dispose(Boolean disposing)\r\n at System.ComponentModel.Component.Dispose()\r\n at MichyPrima.ManilaDotNetSDK.ManilaNewTextBox.Dispos e(Boolean disposing)\r\n at System.ComponentModel.Component.Finalize()\r\n" string
michyprima
5th February 2010, 06:58 PM
I have a problem with ManilaNewTextBox. Application have 1 form and 2 user controls. This error is only with ManilaNewTextBox. With ManilaTextBox seams to be ok.
Please check source of bug demo: SmartDeviceProject4.zip (http://hotfile.com/dl/27149303/df6c25f/SmartDeviceProject4.zip.html)
Compile and click: open > back > close. Now after closing aplication we have disposing error:
StackTrace " at Microsoft.AGL.Common.MISC.HandleAr(PAL_ERROR ar)\r\n at System.Windows.Forms.Control.Dispose(Boolean disposing)\r\n at System.ComponentModel.Component.Dispose()\r\n at MichyPrima.ManilaDotNetSDK.ManilaNewTextBox.Dispos e(Boolean disposing)\r\n at System.ComponentModel.Component.Finalize()\r\n" string
I'll have a look ;)
ecmaba64
7th February 2010, 10:50 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?
Unfortunately this does not seem to be possible. There is an actual TextBox within the control, but its mouse and key events are not exposed.
amirdt
7th February 2010, 02:54 PM
Unfortunately this does not seem to be possible. There is an actual TextBox within the control, but its mouse and key events are not exposed.
Thanks for the reply :)
Is there anyway to do implement a reaction for long press? (for example for opening a context sensitive menu)
passt_immer
8th February 2010, 10:15 PM
Hello,
is there anyone who uses win7 x64 with vs08 pro?
My problem is, I have this ugly SQUARES and not your Manila Styles Elements! Is it a problem with x64-support?
Because, if I connect the HTC HD2 over WinMobile Device Center and the application starts on the smartphone, there are no ugly squares. Is it a problem with the OpenCF...dll? How should I handle the OpenCF...dll? Where do I have to copy it? Want also test your SDK... plz help me
Wareczek
9th February 2010, 05:52 PM
I'll have a look ;)
Please check this as soon as possible :)
HD2_Noob
9th February 2010, 08:17 PM
When we'll have a new Version?^^
Hello,
is there anyone who uses win7 x64 with vs08 pro?
My problem is, I have this ugly SQUARES and not your Manila Styles Elements! Is it a problem with x64-support?
Because, if I connect the HTC HD2 over WinMobile Device Center and the application starts on the smartphone, there are no ugly squares. Is it a problem with the OpenCF...dll? How should I handle the OpenCF...dll? Where do I have to copy it? Want also test your SDK... plz help me
It is supposed to paint only on the mobile phone and the emulator, but not in the IDE. So thats not a problem, it is by-design ;)
kewl01
10th February 2010, 10:27 AM
Is there a way to edit the ManilaPanelItem so that instead of the picture, its a button or lable/text
So it would be something like this:
michyprima
10th February 2010, 04:51 PM
When we'll have a new Version?^^
It is supposed to paint only on the mobile phone and the emulator, but not in the IDE. So thats not a problem, it is by-design ;)
Eheh. Busy life. Today I had an exam. Tomorrow I'll have another exam...
There will be new version when I've time to finish it...Sorry.
(Maybe soon - I hope to have some time on this weekend.)
HD2_Noob
10th February 2010, 09:26 PM
Eheh. Busy life. Today I had an exam. Tomorrow I'll have another exam...
There will be new version when I've time to finish it...Sorry.
(Maybe soon - I hope to have some time on this weekend.)
Good luck with the next exam(s) ^^
Lets hope all that michy get some time this weekend :-P
tilleke
10th February 2010, 09:47 PM
I wish him all the best as well. Buona fortuna!
However, remember, first your studies (which is your future), family and friends. Then you can go ahead with the library! I always put my family in the top of the list! Then I look at other things such as programming.
Lets hope all that michy get some time this weekend :-P
kewl01
11th February 2010, 03:58 AM
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
how exactly do I do this.. I needed a control to look something like this. The title text will be of a large size font and the Main, secondary text remain as how it is now.
_________________________________________________
------------|
Title Text | Main Text
------------| Secondary Text
__________________________________________________
I was thinking maybe I can edit the manilapanelitem since its the closest to what I need. I just have to replace the image with a title text, and maybe shift the Main and secondary text further to the right.
I opened the manilapanelitem and the only thing i see in the class is
public class ManilaPanelOnOffItem : KListControl.IKListItem, IDisposable
{
public ManilaPanelOnOffItem();
public Rectangle Bounds { get; set; }
public ManilaPanelOnOffItem.Status CurrentStatus { get; set; }
public bool Enabled { get; set; }
public int Height { get; set; }
public Image Image { get; set; }
public string MainText { get; set; }
public KListControl Parent { get; set; }
public string SecondaryText { get; set; }
public Color SeparatorColor { get; set; }
public bool ShowSeparator { get; set; }
public int YIndex { get; set; }
public event ManilaPanelOnOffItem.OnClickEventHandler OnClick;
public event ManilaPanelOnOffItem.StatusChangedEventHandler StatusChanged;
public void Dispose();
protected virtual void Dispose(bool disposing);
public void Notify(ManilaPanelOnOffItem.Status Stat);
public void OnMouseDown(int X, int Y, ref bool DoScroll);
public void OnMouseUp(int X, int Y, bool IsSamePoint);
public void Render(Graphics g, Rectangle bounds, bool param1);
protected void SetStatusCore(ManilaPanelOnOffItem.Status Stat);
public enum Status
{
On = 0,
Off = 1,
TurningOn = 2,
TurningOff = 3,
}
public delegate void OnClickEventHandler(object Sender);
public delegate void StatusChangedEventHandler(ManilaOnOffSwitch.Status Status);
}
Am i looking at the wrong place? Where do i edit or make changes etc
ebernazz2
11th February 2010, 06:24 PM
Hi kewl01...
Did you download the sample project and look at the new panel item that Michy demonstrated? That is where you will find most of what you are looking for.
Not sure what level you need here but lets start at a high level.
You create a class object that implements Michy's IKListIem.
Then you use the render subroutine to draw the panelitem.
Then us use your newly created class object in the KListControl.
Eric
amirdt
12th February 2010, 07:35 PM
Sorry, double post...
amirdt
12th February 2010, 07:37 PM
I got a problem with checking the value of ManilaOnOffSwitch.Status:
Doing:
ManilaOnOffSwitch.Status status;
...
if (status == ManilaPanelOnOffItem.Status.On) ...results with compilation error (operator == not supported).
doing:
if(status.Equals(ManilaPanelOnOffItem.Status.On)). .. is not working either.
The only thing that worked for me was:
if((int)status == (int)(ManilaPanelOnOffItem.Status.On))..Which is ugly, but working....
Another question, is it possible to change the "Off On" text under the button graphics? (for multilingual support).
Archer
12th February 2010, 11:30 PM
This is frustrating the hell out of me. I hate having to ask this, but I'm struggling like mad trying to add these controls into VS2008.
I've done what I've always done when adding 3rd party controls, but I'm not getting anywhere with it. Here's what I've done to try and get it working...
Right click the toolbox and select Add Tab.
Give the new tab a name (Manila SDK v2.1)
Select the tab (just to be sure) and then right-click inside it
Select Choose Items
Select Browse and locate the file ManilaDotNetSDK.dll - click Okay
That has always been all I've ever had to do in order to add controls, and it does it here too, but all the controls are greyed out so I can't use them.
Can someone PLEASE help me get this working?
Edit:
When I did this, I had "Show All" selected in the toolbox. If I untick this then the tab just disappears. It's as if it's not meant for the platform I've selected to develop on (.Net 2.0 on Windows Mobile 6 Pro SDK).
Incidentally, if I try it the other usual way (tools, choose toolbox items, and add the DLL), it adds the controls to the general tab, but they're still greyed out.
ebernazz2
13th February 2010, 02:45 AM
I think you answered your own question. This SDK requires 3.5 CF and you are on 2.0.
Eric
Archer
13th February 2010, 02:55 AM
I think you answered your own question. This SDK requires 3.5 CF and you are on 2.0.
Eric
Thanks, but I've tried both 2.0 and 3.5 with the same result.
ebernazz2
13th February 2010, 03:00 AM
Create a new project and list the selections you make along the way so I can see where it may be going off track. It is normal for them to be grey'd out until you have a project that satisfies its requirements.
Eric
Archer
13th February 2010, 03:08 AM
Create a new project and list the selections you make along the way so I can see where it may be going off track. It is normal for them to be grey'd out until you have a project that satisfies its requirements.
Eric
Okay, cheers mate.
I do...
new project and select "smart device" and select ".NET Framework 3.5"
I give it a name and click "OK"
I change the platform to "Windows Mobile 6 Professional SDK"
The framework version already says 3.5, so I leave that as it is.
I click "Device Application" and click "OK"
Okay, I don't know what to say now. It's just worked.
Thanks for the help. Something was obviously wrong earlier that is just right now. I have no idea what that is, but it's working now. I did definitely try both 3.5 and 2.0 earlier, but it just didn't work.
Ah well. Cheers mate :)
michyprima
13th February 2010, 04:11 PM
I got a problem with checking the value of ManilaOnOffSwitch.Status:
Doing:
ManilaOnOffSwitch.Status status;
...
if (status == ManilaPanelOnOffItem.Status.On) ...results with compilation error (operator == not supported).
doing:
if(status.Equals(ManilaPanelOnOffItem.Status.On)). .. is not working either.
The only thing that worked for me was:
if((int)status == (int)(ManilaPanelOnOffItem.Status.On))..Which is ugly, but working....
Another question, is it possible to change the "Off On" text under the button graphics? (for multilingual support).
you are using 2 different status enums from 2 different classes. try this way:
ManilaOnOffSwitch.Status status;
...
if (status == ManilaPanelOnOffSwitch.Status.On) ...
amirdt
13th February 2010, 04:27 PM
Opps, I probabaly looked at it for at least 30 minutes, and still missed that... :o
Thanks
Wareczek
13th February 2010, 04:47 PM
michyprima is there a chance to see new version in this weekend? or checked my problem (http://forum.xda-developers.com/showpost.php?p=5540905&postcount=251)?
Archer
13th February 2010, 06:42 PM
@michyprima.
First off, very nice work mate. I'm very grateful and very impressed, and I know the people that use my app (coming soon!) will be grateful for your finger friendliness too :)
I just have 1 little foible. (I had a few earlier, but I got my head round the best way to work with the controls and it was fine after that).
The ManilaTrackBar doesn't look quite right. Is there any way I can improve the quality of the ends? They don't look properly rounded, as if they're being cut off before they finish.
See the attachment to see what I mean. Both ends look straight, rather than rounded.
Other than that though, top job, and thanks again :)
TiTidom
15th February 2010, 10:34 PM
Hi michyprima :)
First of all, many thank's for this sdk :p:D
A question :
I have a list of on / off switch in a Klistcontroll, and i want to raise an event on StatusChanged (that's ok), but in the method declaration :
void thisitem_StatusChanged2(ManilaOnOffSwitch.Status Status)
there's no sender parameter :(
How can i know which control sent an on/off switch event (like with ManilaPanelCheckBoxItem) ?
Thank's for the response, and hope a new version will be available soon ;-)
@++
TiTidom.
DarkEN_ANGEL
19th February 2010, 02:20 PM
How to make trackbar works normally in vertical mode ?
Wareczek
20th February 2010, 11:59 PM
ManilaNewTextBox events GotFocus and LostFocus dosn't work :(
WWebber
26th February 2010, 05:43 PM
1.) When the "ManilaTextBox" field is empty and you focus it, following error is shown:
"An unhandled exception of type 'System.NullReferenceException' occurred in ManilaDotNetSDK.dll"
2.) The "ManilaNewTextBox" does not support GotFocus/LostFocus to show the keyboard.
Am I doing something wrong? using V2.1.
What are the reasons one should use these text fields at all? What are the advantages?
spastik
27th February 2010, 11:31 AM
could you please expose the picturebox control under the ManilaPanelItem ?
I need to be able to handle the event on mouse over/onclick/on mouse down of that image but you only let us access to the .image property.
thanks ! :)
michyprima
27th February 2010, 01:20 PM
Hi michyprima :)
First of all, many thank's for this sdk :p:D
A question :
I have a list of on / off switch in a Klistcontroll, and i want to raise an event on StatusChanged (that's ok), but in the method declaration :
void thisitem_StatusChanged2(ManilaOnOffSwitch.Status Status)
there's no sender parameter :(
How can i know which control sent an on/off switch event (like with ManilaPanelCheckBoxItem) ?
Thank's for the response, and hope a new version will be available soon ;-)
@++
TiTidom.
At the moment you have to create an handler for each item :(
I'll fix it in next ver
ManilaNewTextBox events GotFocus and LostFocus dosn't work :(
I'll fix this too
could you please expose the picturebox control under the ManilaPanelItem ?
I need to be able to handle the event on mouse over/onclick/on mouse down of that image but you only let us access to the .image property.
thanks ! :)
It is not a picturebox the image is painted to the list directly
spastik
27th February 2010, 02:55 PM
It is not a picturebox the image is painted to the list directly
Thanks for the quick response .... I thought that it was a little picturebox. In that case could you give me some hint to implement the onmousedown event on all the panelitem ? :)
TiTidom
2nd March 2010, 01:01 PM
At the moment you have to create an handler for each item :(
I'll fix it in next ver
Thank's for the response ;-)
By the way, for your next version :p, in the Custom Messagebox, perhaps it would be better to put your form in "Maximised" mode for this control, because when you use it with a maximized project, the top bar from windows mobile appear ;) and it's not very nice :D
@++
TiTidom.
alto
3rd March 2010, 10:59 AM
Very nice work!
Is the SDK working only with .Net 3.5? I tried also with .Net 2 but without success.
DerIng
4th March 2010, 01:27 PM
Thanks for Manila SDK!
What about the source code?
It would also help you to get faster bug fixes and even new features!
Of course it's up to you but you probably know that a
.NET dll together with .NET Reflector is already open source ...
So come on and donate the sources please.
Thanks again - DerIng
Blade0rz
4th March 2010, 01:54 PM
Thanks for Manila SDK!
What about the source code?
It would also help you to get faster bug fixes and even new features!
Of course it's up to you but you probably know that a
.NET dll together with .NET Reflector is already open source ...
So come on and donate the sources please.
Thanks again - DerIng
The library is based off this library, which is open-source:
http://forum.xda-developers.com/showthread.php?t=333124
Is the SDK working only with .Net 3.5? I tried also with .Net 2 but without success.
3.5 only :)
wesch00
7th March 2010, 10:26 AM
This will be a constructive critic on the framework, I hope I won't be misunderstood.
I new with Manila, got my HD2 only last week. But I'm familar with mobile developement. My favorite application was easy to move from QVGA resolution to WVGA of the HD2. But thenafter I saw, that the app was no more usable because of the missing stylus, the controls where to samll a.s.o.
After searching in the net I found that Manila SDK and thougth, fine, that could be a solution, look and feel of Manila on the HD2 have beein quite nice.
Downloaded the SDK and started redesing of the app. Unfortunately allready with the first page I run into problems I will describe here.
In my opinion it makes no sense to have ManilaButton, ManilaCheckBox, ManilaOnOffSwisch and ManilaTextBox classes. They make only sense, if the layout of those controls fit into one screen. If there are more than can fit, there is the need to have them somehow in the KListControl and be able to scroll. So why not have "only" items (except a tabpage) and only using a KListControl for a container. If there are only a few controls KListControl doesn't scroll and the behaviour is the same. I came into that problem, because my app has several textboxes and they dont't fit to one screen in case of Manila look and feel.
Then thought, ok let's try to implement a ManilaPanelTextBoxItem as a good sample to get familar with the SDK. Easy to write an own class. But how to get TextBox funtionalty into that item? On mouse down create a TextBox and on MouseUp delete this. Seemed to be easy and did work at the first glance. But then I added more than one of that item into the KListControl and scrolled down. The TextBox allways appeared at the location where it would be if it hadn't been scrolled. Ok, thought there should be some "offset" available on the KListControl I can subtract from the Bounds which should solve the problem. But there isn't.
So, in the current state the SDK has too less features if it will be used in a more serious Manila like app. I understand, the it takes a lot of time to implement all the requests by someone here, especially for one person. That's why again the offer to share the sources with other guys to extend the SDK more frequently. I will also help. We can make a real nice framework out of it.
PhilMorris
7th March 2010, 06:08 PM
Thanks for the SDK.
Anybody can tell me how do I make rounded corners on the up and down side of the list ?
Am I missing sth ?
Thanks anyway...
Reaper
7th March 2010, 06:22 PM
Hello,
This is my first time using the manilaSDK, it seems pretty good and looks very nice. I do have a question that is probably very noobish, but I can't figure is out. I am adding ManilaPanelItems to a KListControl in the following way:
ManilaPanelItem thisitem = new ManilaPanelItem();
thisitem.YIndex = i;
thisitem.MainText = "Hallo";
KListControl1.AddItem(thisitem);
Can anyone tell me how I can detect when one of these items is clicked and of course which one was clicked so I can do the appropriate action that will follow?
Many thanks in advance. If you need more info let me know
wesch00
8th March 2010, 03:50 PM
If it is enough to have YIndex, then you can do:
ManilaPanelItem thisitem = new ManilaPanelItem();
thisitem.YIndex = i;
KListControl1.AddItem(thisitem);
// setting text property should be done after adding it to the item list, some have had problems doung this before.
thisitem.MainText = "Hallo";
// then
thisitem.Click += ClickEventHandler;
private void ClickEventHandler(object sender, EventArgs e)
{
ManilaPanelItem item = sender as ManilaPanelItem;
if (item.YIndex == yourItem) DoWhatYouWantHere();
}
Reaper
8th March 2010, 04:12 PM
aha, thanks very much for the reply! Going to give it a try as soon as I get home. I will post back how it goes.
Thanks again!
PhilMorris
8th March 2010, 06:41 PM
I want to make sth like this...
ww.nuc.cz/tasksmanila/Screen07.png
like Tasks Manila.
How do I make the rounded corners at the top ?
How do I make it slide from the bottom to the upper side ?
Please help...
Thanks.-
amirdt
8th March 2010, 06:45 PM
I want to make sth like this...
ww.nuc.cz/tasksmanila/Screen07.png
like Tasks Manila.
How do I make the rounded corners at the top ?
How do I make it slide from the bottom to the upper side ?
Please help...
Thanks.-
From the look of it, this is just a regular menu item
PhilMorris
8th March 2010, 07:31 PM
Yes, but when I run my project I dont see rounded corners but angled ones.
I am using VS2008, .NETCF 3.5 and Windows Mobile 6.1
What am I doing wrong ?
amirdt
8th March 2010, 07:40 PM
Yes, but when I run my project I dont see rounded corners but angled ones.
I am using VS2008, .NETCF 3.5 and Windows Mobile 6.1
What am I doing wrong ?
It may be part of WM 6.5x
My phone is WM 6.5x, in all the applications, the menu corners are rounded...
Wareczek
8th March 2010, 07:53 PM
This is HTC finger friendly menu style. Default WM menu have blue border and is smaller.
grandboy3000
12th March 2010, 12:50 AM
i downloaded this but i cant install the rar file. how do i do it?
Skadork
12th March 2010, 03:55 AM
Wow this is awesome! I've been looking for something like this! I was playing around with Resco's sdk, but it is not very good.
Keep up the great work! It has a LOT of potential! I also second open sourcing this and setting up an SVN for it or something.
How easy do you think it would be to adapt your code to make it skinable?
Reaper
12th March 2010, 03:04 PM
Hi,
I have another small question. Is there any way to make the list item that is clicked highlight, similiar to the effect a button has when it's clicked?
A good example of what I mean is how the call history list looks like sense.
Wareczek
14th March 2010, 02:45 PM
michyprima pleeeease, give us update... actual bugs drive me crazy :(
michyprima
19th March 2010, 04:59 PM
michyprima pleeeease, give us update... actual bugs drive me crazy :(
Version 3 published...
Finally.
Wareczek
19th March 2010, 05:12 PM
Unbelievable :)
Wareczek
19th March 2010, 09:34 PM
ManilaMessageBoxHelper is broken in 3.0 :/
michyprima
19th March 2010, 10:36 PM
ops, I didn't check all the classes.... lol
I'll look into it...sorry!
zestor
20th March 2010, 11:37 AM
There's also a real problem with this new dll. As soon as I put a KListControl on a form, I get a "The device is not ready" when I try to run the app in the emulator (tried WM6.5 Professional WVGA and WM6.1.4 Professional 480x800).
I can deploy *once* to a real device but after that I get a "An operation was attempted on something that was not a socket."
Not a problem with the previous version and if I start a new project without referencing the dll, deployment to everything is working as expected again...
t0flus
20th March 2010, 01:14 PM
I have the same issue, I use itstools to delete the ManilaDotNetSDK.dll prior to each deploy.
Øystien
AgentBignose
21st March 2010, 07:57 PM
Nice!!
Thank u very much!
I will have a look on it tomorrow.
rzv25
23rd March 2010, 09:43 AM
Hi MichyPrima,
For about one month and something I have a HTC HD2 device. I spent a lot of time searching the internet for all kind of applications that does not come in the official ROM and that would be very helpful for me, but unfortunately did not find too many. So I came to the conclusion that I have to build for my own the applications that I need. Searching the net for source code samples and fancier controls than the ones the CF 3.5 comes with, I got to your page. At some point in time I've used the BSB Tweaks and I was just wondering how did he make it to have exactly the same look and feel like a manila application. Now I found the answer: he is using your SDK.
I read all the posts in this topic and I sincerely expected to find a little bit more information. I was expecting to see more code samples ( I've only found your sample project on first post), more documentation for the controls (I did not find any). Unfortunately you are the only one that works and all the other users scream that something is not working or some feature is missing. This way I think we all, as a comunity, will not make too much progress.
I've found some posts of people offering to help you with the development of the SDK and in my opinion this will be way to go, just that I think a little bit more of organizing stuff is needed.
Here are some thoughts about this. I would appreciate very much if you could reply to my post and say your opinion:
- it would be good if we would create a web page organized like a forum, with separate topics for each of the controls in the SDK, with a separate topic for sample code applications, etc. The way the information is organized right now on your topic does not enable the user to easily reach the information he needs. He will have to read all the posts in order to find something. I am sure that having the information very well structured will increase the number of users interested on this project.
- it would be good if you would offer the source code of the SDK not to everyone, but to a reduced number of users that offer to help and have the neccessary knowledge to do it. Of course, this number shouldn't be too large (at most 4-5 I think is enough) because then you will have integration issues. But 4-5 people working on the SDK will make things progress 4-5 time faster, which would be a significant gain.
- it would be good if we would have a bug reporting tool (I know one that is very good and is free - called TRAC) in order to be sure that all reported bugs, change requests and feature requests are captured in a single place and included in the next release.
I don't know why there are no source code examples posted from the ones that use this SDK and have developed an application. It does not matter how simple or complex the application is or what it does. If someone finds inside how the author implemented one single simple thing that would be of interest, than the purpose of offering the source code has been fulfiled. I intend to offer as source code all the applications I will create. I think this is the only way I can help others grow, so they can help me grow.
For now, I don't have too much experience in writing applications on WinMo, but I can offer my help in doing the organizing things I've mentioned above, if you are interested.
Wareczek
23rd March 2010, 01:30 PM
above:
CodePlex (http://codeplex.com/) is a good place for this.
ManilaNewTextBox events GotFocus and LostFocus still don't work :/
rzv25
23rd March 2010, 06:13 PM
Thanks @Wareczek for the tip. Didn't know about this site, but looks like it has everything that would be needed
Skadork
23rd March 2010, 10:12 PM
above:
CodePlex is a good place for this.
ManilaNewTextBox events GotFocus and LostFocus still don't work :/
yes, this would be great!
WWebber
24th March 2010, 09:25 PM
YEP! I agree!
yes, this would be great!
VPAFan
25th March 2010, 08:33 AM
Hi MichyPrima,
is it possible to get a quick fix for the ManilaMessageBoxHelper-Class.
I want to use the new version 3.0 in my projects but without ManilaMessageBoxHelper it is really annoying.
greetz VPAFan
btw. did you get my donation?
michyprima
25th March 2010, 01:46 PM
Hi MichyPrima,
is it possible to get a quick fix for the ManilaMessageBoxHelper-Class.
I want to use the new version 3.0 in my projects but without ManilaMessageBoxHelper it is really annoying.
greetz VPAFan
btw. did you get my donation?
Hi
I'll try to fix it soon...
btw...when you did so?
Recently I didn't received any donation...:confused:
rzv25
25th March 2010, 08:19 PM
I was expecting an answer for my proposal, even though it's a negative one as long as you have a reason. But I see that you only reply to the posts that are convenient for you. Too bad, @michyprima.
alto
30th March 2010, 09:20 PM
Something that bother me with this SDK is the missing sender object in some of the events such as ManilaPanelOnOffItem StatusChanged.
the reason I need it is for creating dynamiclly items in the KListControl and use only one handler to all of the items and onClick to determine witch one was selected.
If there other option to get it it will really help.
boogey
5th April 2010, 11:23 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.
Hey maxpg, any chance you can release the code for this? :)
boogey
6th April 2010, 03:22 PM
I've seen number of suggestions in this thread to make this library open source. I can appreciate that you have put in a lot of hard work michyprima, so I'd like to make a suggestion.
I have started working with this library, but I think there are too many things currently missing (events etc) for it to be used for a professional application (which is why I haven't donated yet).
Who would be up for pooling some funds to encourage michy to make it open source? I would throw in £100. How much will it take michy? :)
djingonthenet
7th April 2010, 06:53 PM
Is this fully functioning withvb.net? I've been looking at how to return the index or idealy the contol item of the klistcontrol. I can add items to the list no problem but cannot find a way of returning what was clicked. Also the msgbox just leaves the screen blank and freezes the program. Heres a test code to produce a messagebox, but nothing happens - the C# demo code works fine but this command stalls in vb :(
Private Sub ManilaButton1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ManilaButton1.Click
ManMsgBox("Title Here", "Clcik OK to continue", "OK")
End Sub
Private Function ManMsgBox(ByVal strTitle As String, ByVal strPrompt As String, ByVal strLButton As String, Optional ByVal strRButton As String = "") As MichyPrima.ManilaDotNetSDK.ManilaMessageBoxHelper. Result
If strRButton <> "" Then
Return MichyPrima.ManilaDotNetSDK.ManilaMessageBoxHelper. MessageBoxShow(strTitle, strPrompt, strLButton, strRButton)
Else
Return MichyPrima.ManilaDotNetSDK.ManilaMessageBoxHelper. MessageBoxShow(strTitle, strPrompt, strLButton)
End If
End Function
VPAFan
8th April 2010, 09:48 AM
Is this fully functioning withvb.net? I've been looking at how to return the index or idealy the contol item of the klistcontrol. I can add items to the list no problem but cannot find a way of returning what was clicked. Also the msgbox just leaves the screen blank and freezes the program. Heres a test code to produce a messagebox, but nothing happens - the C# demo code works fine but this command stalls in vb :(
Private Sub ManilaButton1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ManilaButton1.Click
ManMsgBox("Title Here", "Clcik OK to continue", "OK")
End Sub
Private Function ManMsgBox(ByVal strTitle As String, ByVal strPrompt As String, ByVal strLButton As String, Optional ByVal strRButton As String = "") As MichyPrima.ManilaDotNetSDK.ManilaMessageBoxHelper. Result
If strRButton <> "" Then
Return MichyPrima.ManilaDotNetSDK.ManilaMessageBoxHelper. MessageBoxShow(strTitle, strPrompt, strLButton, strRButton)
Else
Return MichyPrima.ManilaDotNetSDK.ManilaMessageBoxHelper. MessageBoxShow(strTitle, strPrompt, strLButton)
End If
End Function
Hi djingonthenet,
your code seems to be ok. I think you are using the version 3.0 of ManilaDotNetSDK. This version has an issue with the ManilaMessageBoxHelper-Class -> it freezes. So try using the version 2.1 from the demo code.
greetz
alto
11th April 2010, 10:19 AM
Something that bother me with this SDK is the missing sender object in some of the events such as ManilaPanelOnOffItem StatusChanged.
the reason I need it is for creating dynamiclly items in the KListControl and use only one handler to all of the items and onClick to determine witch one was selected.
If there other option to get it it will really help.
Any ideas?
mamirix
11th April 2010, 06:27 PM
could someone help me get the sample or the demo. I am not able to find it.
Thanks
alto
13th April 2010, 04:18 PM
Any ideas?
I need to read a dynamic list of values from registry / file and for each create ManilaOnOffSwitch control, since its dynamic I cant create StatusChanged function for each control, but use the same handler function for all objects.
Is there a way to know with ManilaOnOffSwitch sent the event? since there is no sender parameter it a problem.
VPAFan
13th April 2010, 09:02 PM
could someone help me get the sample or the demo. I am not able to find it.
Thanks
Hi mamirix,
hope this helps you.
greetz
mkbm
14th April 2010, 03:00 AM
I need to read a dynamic list of values from registry / file and for each create ManilaOnOffSwitch control, since its dynamic I cant create StatusChanged function for each control, but use the same handler function for all objects.
Is there a way to know with ManilaOnOffSwitch sent the event? since there is no sender parameter it a problem.
Hi,
I had the same problem. In my app I have to load some ManillaOnOffPanelItems dynamic.
You only have to create a new class and then define the StatusChanged of the item to this class with the current Item as argument. Then you redefine the right Eventhandler in the new class.
Here is a small example how I am using it with the ManilaPanelOnOffItems.
First the definition of the item. This is done in a while loop because I am loading the items dynamic. So I only have to define one Item:
...
// Normally we are using this way
thisitem.StatusChanged += new ManilaPanelOnOffItem.StatusChangedEventHandler(ite m_Changed);
// This is with my new Class and the current item as argument.
thisitem.StatusChanged += new myNewClass().DoEvent(thisitem);
...
Now this is my new Class. Here you ave the Sender and can do everything you want.
class myNewClass
{
ManilaPanelOnOffItem locItem;
public myNewClass()
{
}
void item_Changed(ManilaOnOffSwitch.Status Sender)
{
MessageBox.Show(locItem.MainText);
MessageBox.Show(locItem.YIndex);
}
public ManilaPanelOnOffItem.StatusChangedEventHandler DoEvent(ManilaPanelOnOffItem cItem)
{
locItem= cItem;
cItem.StatusChanged += new ManilaPanelOnOffItem.StatusChangedEventHandler(ite m_Changed);
return null;
}
}
Hope this will help you with your problem.
TheSorcerer
14th April 2010, 08:43 AM
WinRAR says the archive is corrupted - and indeed I do not believe this is only 48 KB in size, or? I tried downloading it multiple times to no success.
wesch00
14th April 2010, 03:30 PM
As I wrote some postings earlier here, the manila framework intoduced here is a great thing. But also some other mentioned, we should combine our forces to implement more features.+
Since I missed a lot of stuff in the framework, I decided to write a new one. Where am I now. First I took the KListControl as a starting point. It supports also horizontal scrolling. I changed it to move the controls also outside of the screen scope like manila does.
Then I thought it would be nice to have design time support while putting the items into the KListControl. This works, but not perfect, having problems with screen size during design time. But I'm able to drag items from the toolbar into the KListControl and have them in the designer. It currently only works for vertical scrolling.
Thenafter I needed several items, Textbox and Comboboxes, which can be scrolled. They are available.
Currently I'm working on a DateTimeItem. It seemed to me I have to write it new from scratch, cannot use the one allready in manila. This is a lot of work. That's why I post here. I'm searching for some people helping me.
The stuff I wrote somehow works, but it is far from any serious framework, i.e. missing controls like OnOffSwitches (I didn't need them yet) and also the layout is not really manila stile. And at least, it works currently only on WVGA screen, since I've hadn't the time to paint the bitmaps for other screens.
So, if someone wants to participate, let me know.
ebernazz2
14th April 2010, 03:53 PM
Before you do so much work have you looked at this library?
http://forum.xda-developers.com/showthread.php?t=634316
Eric
alto
14th April 2010, 03:53 PM
Hi,
I had the same problem. In my app I have to load some ManillaOnOffPanelItems dynamic.
You only have to create a new class and then define the StatusChanged of the item to this class with the current Item as argument. Then you redefine the right Eventhandler in the new class.
Here is a small example how I am using it with the ManilaPanelOnOffItems.
First the definition of the item. This is done in a while loop because I am loading the items dynamic. So I only have to define one Item:
...
// Normally we are using this way
thisitem.StatusChanged += new ManilaPanelOnOffItem.StatusChangedEventHandler(ite m_Changed);
// This is with my new Class and the current item as argument.
thisitem.StatusChanged += new myNewClass().DoEvent(thisitem);
...
Now this is my new Class. Here you ave the Sender and can do everything you want.
class myNewClass
{
ManilaPanelOnOffItem locItem;
public myNewClass()
{
}
void item_Changed(ManilaOnOffSwitch.Status Sender)
{
MessageBox.Show(locItem.MainText);
MessageBox.Show(locItem.YIndex);
}
public ManilaPanelOnOffItem.StatusChangedEventHandler DoEvent(ManilaPanelOnOffItem cItem)
{
locItem= cItem;
cItem.StatusChanged += new ManilaPanelOnOffItem.StatusChangedEventHandler(ite m_Changed);
return null;
}
}
Hope this will help you with your problem.
Thanks, I'm testing this method now.
eboelzner
14th April 2010, 09:55 PM
Before you do so much work have you looked at this library?
http://forum.xda-developers.com/showthread.php?t=634316
Eric
Or this one...
http://forum.xda-developers.com/showthread.php?t=648906
wesch00
15th April 2010, 03:38 PM
thx for the hints, I didn't know them.
I will give them a look. But at the first glance, I didn't find any Date/Time item. This is what I need. May be I can extend one onf those libraries.
alto
2nd May 2010, 10:08 PM
Hi,
I had the same problem. In my app I have to load some ManillaOnOffPanelItems dynamic.
You only have to create a new class and then define the StatusChanged of the item to this class with the current Item as argument. Then you redefine the right Eventhandler in the new class.
Here is a small example how I am using it with the ManilaPanelOnOffItems.
First the definition of the item. This is done in a while loop because I am loading the items dynamic. So I only have to define one Item:
...
// Normally we are using this way
thisitem.StatusChanged += new ManilaPanelOnOffItem.StatusChangedEventHandler(ite m_Changed);
// This is with my new Class and the current item as argument.
thisitem.StatusChanged += new myNewClass().DoEvent(thisitem);
...
Now this is my new Class. Here you ave the Sender and can do everything you want.
class myNewClass
{
ManilaPanelOnOffItem locItem;
public myNewClass()
{
}
void item_Changed(ManilaOnOffSwitch.Status Sender)
{
MessageBox.Show(locItem.MainText);
MessageBox.Show(locItem.YIndex);
}
public ManilaPanelOnOffItem.StatusChangedEventHandler DoEvent(ManilaPanelOnOffItem cItem)
{
locItem= cItem;
cItem.StatusChanged += new ManilaPanelOnOffItem.StatusChangedEventHandler(ite m_Changed);
return null;
}
}
Hope this will help you with your problem.
Thanks,
I just tested again the version 3 and now we have a sender!
Thanks!
alto
4th May 2010, 06:43 AM
Is there a good reason why tis SDK uses .Net 3.5?
I possible, supported by .Net 2 will be great since that what most of the devices come from the factory.
alto
5th May 2010, 10:08 AM
Cant find how to do it, the usuals ways like:
comboBox1.SelectedItem = "test1";
or:
comboBox1.SelectedIndex = comboBox1.Items.IndexOf("test1");
don't work.
boffi
13th May 2010, 07:20 AM
Cant find how to do it, the usuals ways like:
comboBox1.SelectedItem = "test1";
or:
comboBox1.SelectedIndex = comboBox1.Items.IndexOf("test1");
don't work.
Same here. Cant get it to work..
When i use VS2008 (Basic) and standard ComboBox this work
Set
ComboBox1.SelectedIndex() = 1
How can i set the selected item in ManillaCombox??
Roccc
29th May 2010, 05:27 PM
Hello,
I would like to thank Michele for this good SDK. With the version 2.1, I created the application Friendly Budget to easily manage a budget between friends (shared housing, holidays, weekends, party, ….)
It's available on the Microsoft MarketPlace in french and in english: http://marketplace.windowsphone.com/details.aspx?appId=6477376b-5bca-40c5-91c6-435b7e10f5f4
Thanks
Cello
9th June 2010, 12:46 PM
Thanks michyprima.
I have used your library for CelloStreaming (HdBlog.it).
Bye
VPAFan
10th June 2010, 01:57 PM
we need almost an update with some fixed issues.
"ManilaMessageBoxHelper.MessageBoxShow" does not work.
Therefore we have to use the standard "MessageBox.Show"
I'm waiting for a long time - this is a mess.
greetz
sesonet
2nd August 2010, 09:43 PM
I created game (http://ip208-100-42-21.static.xda-developers.com/showthread.php?t=740692)with this SDK, thanks. But it has one bug with GTX theme.
See picture. It's Leo Energy GTX Theme ROM 1. Aug.
Wanchope2k
8th August 2010, 06:30 PM
This SDK looks great but is there somewhere else to download this file from?
It seems to have been removed from RapidShare?
mSafdel
22nd August 2010, 12:49 PM
Is Text Alignment(Right,Left,Center) supported in Manila SDK controls?
I want to use it for persian WM App.
ab006897
6th September 2010, 08:21 AM
:confused: Hi; i dont'find the download of ManilaDotNetSDK 3.
It isn't possible to download this package?
Thanks
mallenat
6th September 2010, 10:04 AM
The download link is broken. Is there another place to download?
blaste
1st October 2010, 04:53 PM
http://www.megaupload.com/?d=89CZ1VPC
networker-de
21st October 2010, 09:14 AM
I converted the sample Class ASampleListItem which Implements KListControl.IKListItem to VB.Net and got an Error ( see attachment ).
Can someone help ???
Nico331977
2nd January 2011, 10:12 PM
Great app but there is a problem with Dotfuscator. :confused:
Erreur rencontrée lors du chargement du module(E:\Mobile\ManilaDotNetSDK.dll).
Impossible de lire au-delà de la fin du flux.
Erreur de build.
Error encountered when loading the module
(E: \ Mobile \ ManilaDotNetSDK.dll).
Unable to read beyond the end of the stream.
Build error.
bablobigazzo
8th January 2011, 11:42 PM
Hi. I can only use ver 2.0 (and thanks for this). When I use ver 3.0 I get an error "device not connected" even if I connect it manually. Is anyone else facing the same problem or am I missing something? I really want to use the 3.0 version for the combobox.
I got XP SP3, VS2008 Pro and only winmo 5 sdk.
BTW can anyone tell me why I can't install winmo 6 pro sdk? I tried to install winmo 6 sdk (388Mb) and winmo6 sdk refresh (478Mb) and no result. I get no error message; installer freezes.
Thanks for further help. Sorry for my english.
TTP
10th January 2011, 11:35 AM
Hi. I tried to use the SDK in Versions 2.0, 2.1 and 3.0. None of these works.
The References says: The system cannot find the reference specified (see screenshot).
What am I doing wrong?
If tried to load the Sample-Projects, but the does not work also.
Need help, pls hlp me ^^
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.