[REF] Multitouch on the HTC Leo [Updated, 2/12/09] - Windows Mobile Software Development

Firstly, this only works on the HTC Leo, and secondly, I can't be held responsible if your device catches fire or any other damages caused by using this...
This is probably easier for C++/Win32 devs to get to grips with and I don't know much .Net so I won't be porting this to .Net.
Registry settings
These register the window for multitouch messages
Under HKLM\Software\HTC\TouchGL\Pinch\WhiteList create a key with whatever you want. Within that, create a string called "ClassName" with the Class.
For example:
Code:
HKLM\Software\HTC\TouchGL\Pinch\WhiteList\MultiTouch
ClassName="MULTITOUCH"
That should be all you need... For debugging, I cheated and set my application to have the class HTCAlbumClass. Don't do that if you want it to work on a real device though!
Code
The actual multitouch part is pretty easy to handle.
Your window will get sent two messages, one for multitouch move/begin and one for multitouch end, they're standard C++/Win32 window messages.
Code:
#define WM_MT_BEGIN (WM_APP+16391) // begins multitouch, and is sent when either mouse position changes.
#define WM_MT_END (WM_APP+16392) // ends multitouch
The messages are fairly similar to ones for other mouse events, except that instead of the LPARAM being the mouse co-ordinates, both the LPARAM and the WPARAM are.
Code:
POINT pt,pt2;
pt.x = LOWORD(lParam);
pt.y = HIWORD(lParam);
pt2.x=LOWORD(wParam);
pt2.y=HIWORD(wParam);
In the l3v5yMultiTouch.h file, I've added two functions
Code:
POINT ParamToPoint(WPARAM);
POINT ParamToPoint(LPARAM);
These make converting between window messages and useful data slightly easier...
I've also created a class for MultiTouch that I'm looking to extend with gestures and some neat things. For now, download the source code and give it a play with.
My class also swaps the two points if one goes to the left of the other, so there are no issues with the two points swapping over when you really don't want it to...
Also note that I've now changed the license to GPL v3. If you want to do anything with the code let me know and I'll probably say "yes". This is more to make sure the people that have put work in to this get recognised than anything else.
All you have to do is handle those two points, and handle those two events.
There are two videos of this in action here and I'm working on a paint like application using it...
Attached is a demo application (make sure that HTCAlbum is shut before running it as it uses the HTCAlbum class) and source code.
If you find this useful, please link back to here, and mention my name! (and if you feel really generous, donate as well, but that's completely optional)

A more robust way (and the correct way) to get the values for the messages is:
MilaCzeque said:
This is not true. Message numbers are assigned dynamically and you missed first message.
Right approach is:
Code:
int HTC_Zoom_Begin;
int HTC_Zooming;
int HTC_Zoom_End;
void register_messages()
{
HTC_Zoom_Begin = RegisterWindowMessage(TEXT("HTC_Zoom_Begin"));
HTC_Zoom_End = RegisterWindowMessage(TEXT("HTC_Zoom_End"));
HTC_Zooming = RegisterWindowMessage(TEXT("HTC_Zooming"));
}
Fact that your application works after SR is just coincidence. But nice try anyway.
Click to expand...
Click to collapse
Also note the first message...
I've also realised there are a few different "modes" will find them all, and build a library with a few gestures for things like rotate, pinch zoom, two finger scrolling etc.

saw your tweet & entry @ WMPU, gonna try it now. A huge thanks for this, well done!
Edit: its working, not perfect but it works and thats a good achievement.

tibursio said:
saw your tweet & entry @ WMPU, gonna try it now. A huge thanks for this, well done!
Edit: its working, not perfect but it works and thats a good achievement.
Click to expand...
Click to collapse
What ain't perfect about it?
It might be HTCs fault, or it might be my fault...

Mhh, I cannot get working Windows Messages in .Net

scilor said:
Mhh, I cannot get working Windows Messages in .Net
Click to expand...
Click to collapse
Does http://social.msdn.microsoft.com/Forums/en-US/netfxbcl/thread/7bd3e24f-c21c-4490-910d-b47b6becf70d help?

l3v5y said:
Does http://social.msdn.microsoft.com/Forums/en-US/netfxbcl/thread/7bd3e24f-c21c-4490-910d-b47b6becf70d help?
Click to expand...
Click to collapse
That's for desktop .NET, not the same This, however, should help: http://msdn.microsoft.com/en-us/library/microsoft.windowsce.forms.messagewindow.aspx

cant wait to see the use of multitouch in WM games...Thanks for your effort and releasing the code for others.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
EDIT : Have sent you beer money...

the0ne said:
cant wait to see the use of multitouch in WM games...Thanks for your effort and releasing the code for others.
EDIT : Have sent you beer money...
Click to expand...
Click to collapse
If I manage Multitouch, A Pong Clone will be there

l3v5y, thanks for the findings.
But does it mean that LEO has a dual-touch screen? not really a multi-touch?
How about the normal WM_MOUSE events? But even these exist, it means a tri-touch screen?
P.S. I'm still waiting impatiently for my damn carrier to have HD2 restock...

scilor said:
If I manage Multitouch, A Pong Clone will be there
Click to expand...
Click to collapse
i will hold you to that ...

l3v5y JUST KEEP THE Multitouch Appz coming BABY. Finally

[REF] Multitouch on the HTC Leo
I don't want to hijack this thread, but my 5 year old laptop has multitouch now with ubuntu linux for scrolling. Could it just be a driver issue. I didn't want to start a new thread either, zo just ignore this if you think this is a useless post

l3v5y said:
Code
The actual multitouch part is pretty easy to handle.
Your window will get sent two messages, one for multitouch move/begin and one for multitouch end, they're standard C++/Win32 window messages.
Code:
#define WM_MT_BEGIN (WM_APP+16391) // begins multitouch, and is sent when either mouse position changes.
#define WM_MT_END (WM_APP+16392) // ends multitouch
Click to expand...
Click to collapse
This is not true. Message numbers are assigned dynamically and you missed first message.
Right approach is:
Code:
int HTC_Zoom_Begin;
int HTC_Zooming;
int HTC_Zoom_End;
void register_messages()
{
HTC_Zoom_Begin = RegisterWindowMessage(TEXT("HTC_Zoom_Begin"));
HTC_Zoom_End = RegisterWindowMessage(TEXT("HTC_Zoom_End"));
HTC_Zooming = RegisterWindowMessage(TEXT("HTC_Zooming"));
}
Fact that your application works after SR is just coincidence. But nice try anyway.

MilaCzeque said:
This is not true. Message numbers are assigned dynamically and you missed first message.
Right approach is:
Code:
int HTC_Zoom_Begin;
int HTC_Zooming;
int HTC_Zoom_End;
void register_messages()
{
HTC_Zoom_Begin = RegisterWindowMessage(TEXT("HTC_Zoom_Begin"));
HTC_Zoom_End = RegisterWindowMessage(TEXT("HTC_Zoom_End"));
HTC_Zooming = RegisterWindowMessage(TEXT("HTC_Zooming"));
}
Fact that your application works after SR is just coincidence. But nice try anyway.
Click to expand...
Click to collapse
That makes a lot more sense, though I didn't think of that as the messages sent were always the same, so I assumed they were constants...
Will add what you have found to the first post

I've realised there are a few different "modes" which I'll investigate. I'm also building a library with a few gestures for things like rotate, pinch zoom, two finger scrolling etc. which I'll release the code for all

.Net is done
Edit:
Ok, works, but the Problem is that, PinchToZoom seem to have to BIG Problems:
If 2 Points nearly on one line (horizontal or vertical) they align,
Also the Points are not identifiable

i dont understand
is this proper multitouch or just double scrolling. if it is proper multitouch, will there be a way to have more than dual touch?

It is proper Multitouch, but only 2 Fingers are working with some bugs.
http://scilor.ac-host.net/hd2-leo-real-multitouch.html
(Video is on the way!)

As part of my never ending Weekly Develoment and hacking cleaning up i have moved this thread to Windows Software development.
Sorry L3V5Y for not Pm-ing, didn't want to disturb you since you are a busy guy

Related

WM calculator

Hi Guys,
I am thinking about programming my own calculator for Windows Mobile.
The idea is to get pretty much the same functionality as a normal windows calculator, but then in the mobile version.
Have the main functions in the screen and then at the bottom get a button to pop up a panel with other functions, sorted by calculation type.
I am still open for suggestions, what functionality to put in there.
Btw, I have been thinking about putting the Memory functionality in there or not. Let me know how often you use it.
Feel free to give me input.
Expect the first (basic) version soon.
V0.1 is there. No need to install, just copy right onto ur mobile, will make a .cab file for next update, but don't have time to do that now.
Let me know what you think, looks will change, thinking about having the same lay-out as wm6.5 calculator with the hex letters at the bottom. lemmeknow.
Using HTC calculator.
Sufficient functionality and very pretty design.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
So no suggestions : ) ) ) May be add HEX letters....
Nixweerd said:
Hi Guys,
I am thinking about programming my own calculator for Windows Mobile.
The idea is to get pretty much the same functionality as a normal windows calculator, but then in the mobile version.
Have the main functions in the screen and then at the bottom get a button to pop up a panel with other functions, sorted by calculation type.
I am still open for suggestions, what functionality to put in there.
Btw, I have been thinking about putting the Memory functionality in there or not. Let me know how often you use it.
Feel free to give me input.
Expect the first (basic) version soon.
Click to expand...
Click to collapse
what will be different in you calculator other than whats already there in the htc calculator??
I didn't know about the HTC calculator, so I don't know what functionality that one has.
But I will make one that can switch between binary, octal, decimal and hexadecimal. And I want all the functionality while in portrait mode.
can you use WM6.5 clacas a base ??
it's beautyful and colourful
only request: HEX <-> DEC conversion
gtrab said:
can you use WM6.5 clacas a base ??
it's beautyful and colourful
only request: HEX <-> DEC conversion
Click to expand...
Click to collapse
I've started completely over and implemented HEX already, I can probably recreate a similar user interface, won't be completely the same, there I have added the HEX chars (A...F) in the main screen as well, but I still think it's still easy enough to press the buttons.
YES!!!
YES!!! make one! I had the old Winmo version which was brilliant for functionality but **** for design. the htc version looks great, but i hate hate hate the fact that it doesn't have the % function on portrait which i used to use all the time! and even if you use the landscape mode for % it doesn't work the same as the Winmo eg. to add say 11.6% onto 360 was easy - 360 + 11.6 (% sign). you can't do that on the HTC
please make one
I can put some pretty kool graphic and ideas to this and many projects. How advanced are your programing skills?
K2
By the way -totally kool"r than ice when all buttons announce its value! I can also develope that.
K2
KNOTEBOOK2 said:
I can put some pretty kool graphic and ideas to this and many projects. How advanced are your programing skills?
K2
Click to expand...
Click to collapse
That would be pretty cool. At the moment I'm using standard buttons.
KNOTEBOOK2 said:
By the way -totally kool"r than ice when all buttons announce its value! I can also develope that.
K2
Click to expand...
Click to collapse
Sorry, what do you mean by this?
Its really good. please update me once its ready
Its really good. please update me once its ready
HEy!
It's a good thing that i dropped by this thread... I've been FOREVER looking for a TAPE calculator... just like in Nokia's N-series calculator...
Once you have this. This will make your calculator one of a kind..
MRU features
1. Tape Function
2. Bin, Oct, Dec, Hex
3. Currency Exchange... (It would be best if the rates can automatically be downloaded but if not then a simplified ver will do)
Optional: Floating Pt calculations. (16-bit and 32-bit)
keep us informed.. will be glad to beta test..
hmm, I've never seen that tape calculator. Good one, will try to implement something like that. I already show the calculation at the top. But to get it all underneath each other is nice as well. I might put it underneath all the buttons.
Btw, I am currently only thinking about portrait, I am someone that does not want to have a calculator that is only functional in landscape.
Bin, Oct, Dec, Hex is already implemented (still have some bugs in that part, but is working for 90%)
Haven't thought about currency exchange yet. I might add it in future versions
At the moment I am working on implementing all the functionality of the current windows (7RC) calculator excluding all the special features like the currency exchange and unit conversion.
I'm using most of the programming functions, they are most important to me, but I also want to include the statistics and scientific stuff.
Ethermind said:
Using HTC calculator.
Sufficient functionality and very pretty design.
Click to expand...
Click to collapse
Hi,
where I can get HTC calculator ?
regards
i think here
http://www.google.com/custom?hl=en&...G=Search&cx=000825531964825142534:cqr2sjirilw
Nixweerd said:
hmm, I've never seen that tape calculator. Good one, will try to implement something like that. I already show the calculation at the top. But to get it all underneath each other is nice as well. I might put it underneath all the buttons.
Click to expand...
Click to collapse
Here is a site with screen shot of the nokia calc
http://tamss60.tamoggemon.com/2008/08/23/nokia-ports-the-s40-calculator-to-s60/
I'm a sales engineer.. so that's why i'm in need of these features... when PLC programming i am using the BIT/DEC/HEX. sometimes Floating point.. but when i'm with client as sales i am calculating long lists of prices... that's when i need the tape feature..
now... if you're getting bored and in need of a challange.. Why not make your calc like Inesoft's CalcNote... I'm using this as my primary calc.. because of its handy features..
http://www.inesoft.com/eng/index.php?in=calcnote.html
just a thought
I will have a look, first thing is to get all buttons, I have now, working.
in the meantime I will think of a way to implement the tape, I could do it underneath the buttons, but that will mean it's not too big, other possibility is to use a gesture and have 1 full screen with the tape so u can see how ur going, but have to use the main screen to do the calculation. Let me know what u think.
Once I have implemented all the buttons to my liking (or not) I will put that one online, haven't worked on it a lot last couple of days, so progress is a bit slower then expected.
hmm, after looking at inesoft's calcnote I realise there is no stopwatch on my mobile... There are probably enough of those apps around, aren't there?

[.NetCF Library] Manila Interface SDK

​
* 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
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!
that's really what I want
Having been studying custom .netcf control for several days
gr8 realese.!
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
sergiorus said:
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
Click to expand...
Click to collapse
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
wow really nice! i'll try it!
thanks!
I know people hate these kinds of questions, but any news on how SOON the coming soon is?
waiting for release...thank you so much, this will be very useful!
links added
awesome
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!!
Sweet. Thanks very much. I didn't expect it this soon.
Beautiful! I think this is the one thing WinMo is missing - a decent standardisation of UI controls
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!
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.
michyprima said:
Plan for next version: ManilaTextBox, ManilaMessageBox and ManilaTrackBar
Click to expand...
Click to collapse
Amazing work! Just curious, are you thinking about making a .net cf Manila Tab Control?
jdiperla said:
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!
Click to expand...
Click to collapse
Thank you
jdiperla said:
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.
Click to expand...
Click to collapse
I will add that in next version
ND4SPD said:
Amazing work! Just curious, are you thinking about making a .net cf Manila Tab Control?
Click to expand...
Click to collapse
maybe
btw...
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
You are the man. You deserve to be in the windows mobile history books. Excellent contributions to WinMo community!
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!
nice work, i would also love to see a manilla tab
michyprima said:
Thank you
I will add that in next version
maybe
btw...
Click to expand...
Click to collapse
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.
GeirFrimann said:
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.
Click to expand...
Click to collapse
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.

ipcalc

One app I would like to see when WP7 comes out is a good, functional, yet nice looking IP calculator. This is the one that I use for my class, but it isn't for WM nor (obviously) for WP7. http://www.radmin.com/products/utilities/ipcalculator.php
I have tried getting someone to port the iPhone version http://www.addressplus.net/iphone/ipcalc/ because it looks pretty, but have gotten no responses either here or over at modaco. If someone could make a great ip calculator for WP7 then you would definitely have at least one buyer when WP7 comes out lol. (a WM 6.5.5 version to tide me over would be great too lol)
Subnet Calculator
I figured I'd give this a shot. Here's a few screenshots of what I've got so far:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
It's all working pretty well at the moment. Clicking any of the buttons will bring up a popup list of the values to select from and you can drag the sliders to adjust the settings as well.
I'm thinking of setting it up so when you swipe the screen left/right it will go to the previous/next subnet and maybe adding a main page where you can select from a class/classless calculator.
If I have sometime later tonight I'll try to make a video of it running in the emulator.
Not bad, the idea is there. I think you need some more spacing between elements to make it proper touch friendly, but looks like we got a handy app for sys-admins here!
Yeah. There's definitely not much room for fat fingers on there right now :-( I think the lists could use a little more padding between the values, and maybe there could be a little more space between the buttons and the Subnet Bits slider. It's difficult to tell what's too close for sure without playing with it on an actual device, but I should probably take another look at the design guidelines (I remember reading something about the recommended minimum spacing between elements).
Anyways, here's a quick video of it in action. The emulator runs kinda crappy on my laptop because I don't have hardware assisted virtualization, so I apologize if anything looks choppy (could just be my amateur code too, hehe).
http://screencast.com/t/YmYxMzIz
Nice work man.
That is totally awesome! I am glad someone decided to give it a go, now I really can't wait for WP7
abledanger said:
I'm thinking of setting it up so when you swipe the screen left/right it will go to the previous/next subnet and maybe adding a main page where you can select from a class/classless calculator.
Click to expand...
Click to collapse
Any progress on this?
Omega Ra said:
Any progress on this?
Click to expand...
Click to collapse
Yup. I added the main page where you can select the type of calculator. Right now I'm pulling out the code that can be shared between the two calculators into a separate class.
I rearranged the way you select the subnet class and enter the IP address as well. The class selection is now a button with a popup menu like the Subnet Mask, etc, and the IP address is now a single textbox as opposed to the 4 separate textboxes.
I'll post an updated video once I have everything working again.
awesome. This is going to be a huge help to us net-admins. Doing subnetting is annoying as hell without the calculator lol
any updated video or screens?
Yup. Here's a quick screenshot of what it's looking like now. Now that the official pivot controls are out, I'm toying with the idea of making the calculator mode selection a pivot...
abledanger said:
Yup. Here's a quick screenshot of what it's looking like now. Now that the official pivot controls are out, I'm toying with the idea of making the calculator mode selection a pivot...
Click to expand...
Click to collapse
looking good can't wait, sadly I have to wait until verizon gets WP7, but when It does (hopefully when the LTE 4G is active) then I will definitely be getting this app . One thing I might put, instead of Classed and Classless, I would put Classful and Classless. I was taught that it was refered to as classful when all the subnets have the same mask. Other than that, looks awesome!!!
Haha, showing my ignorance I suppose :'( names fixed
cool that is awesome. Thanks again for doing this.
Looks great but could do with adding slash notation for subnets
enak said:
Looks great but could do with adding slash notation for subnets
Click to expand...
Click to collapse
That's what the Mask Bits slider is for
Hi,
This looks awsome. I can't wait to start using it.
can you tell us when its going to be released?
Is it gonna work on HTC HD2 ( Windows Mobile 6.5 Pro)?
The Screen resolution is: 800x480
Thanks,
majido said:
Hi,
This looks awsome. I can't wait to start using it.
can you tell us when its going to be released?
Is it gonna work on HTC HD2 ( Windows Mobile 6.5 Pro)?
The Screen resolution is: 800x480
Thanks,
Click to expand...
Click to collapse
Thanks
I suppose I need to register for MarketPlace first, and then it would be available at the release of WP7.
In regards to WM6.5...I'd need to rewrite the application since WP7 development is a different beast. I'll look into the amount of work that would be required to port it, and if it's not too bad, I'll release it in the WM Development thread as well.
abledanger said:
Thanks
I suppose I need to register for MarketPlace first, and then it would be available at the release of WP7.
In regards to WM6.5...I'd need to rewrite the application since WP7 development is a different beast. I'll look into the amount of work that would be required to port it, and if it's not too bad, I'll release it in the WM Development thread as well.
Click to expand...
Click to collapse
awesome. Be sure to let us know if you do release it for wm6.5. I could then use it until verizon gets a wp7
edit: did a really crappy and fast paint of a screen shot to show you what I mean.

[BIG FAIL] Unmerging posts dont worry - Your Mod, ~~Tito~~

will the WP7 support for the old apps of wm?
i know, only market apps, but if we can cook, then we can add a install app existent which install apps, this if the programs have acess to the file system and register.
As far as current information goes, there is no support for legacy software, so I don't think that the libraries necessary for WM6.5 hardware would be on the phone.
Also the window-management (if one wants to call it that) would be completely different in the Windows Phone 7 series.
Another important thing is that it is based on a different kernel than Windows Mobile 6.* (which uses Win CE 5.1). I don't remember what the last number was but it could either be the Win CE 6 Kernel or as was rumored some time ago: the first use of the new Win CE 7 Kernel. This means that lots of API might have changed or be missing.
if we would manage to cook our own custom WP7 ROMs in the future then we also can get us access to the native api. however it won't be possible to run standard wm 6 applications due to GUI components missing. But we still could develop some nice little hacks, tools, services, free customization or maybe even build libraries with native functions exported (to re-use them in the Silverlight apps) to allow us develop something like a simple file explorer, task switcher or registry editor! though not sure about the Silverlight part. What are some .NET experts saying there?
Silverlight and Isolated Storage
When I first read, that there was no direct access to the FileSystem and instead the Silverlight isolated storage was to be used I wondered wether the regular Silverlight Quota's for the isolated storage would apply.
Anyone who wants to know more on what IsoStore quotas are can look for more information here: http://msdn.microsoft.com/en-us/magazine/dd458794.aspx
Suffice to say, that for Silverlight 2 there was a default quota of exactly 1 Megabyte of Storage Space (which could be expanded by querying the user). So I went to find out if this would apply to WP7s Applications as well.
Luckily there are methods for requesting exactlly this information.
This told me that I have: 1 927 Megabytes of free space and that the quota limit is set to the maximum value supported by a long variable - which implies no quota limitation.
The question remains: is this only true of the emulator image or will this apply to the final phones as well (my guess currently is that the 1.9 GB of free space imply 2 gb storage space on the emulator image and ~ 90 mb being used by the system and IE).
I hope somebody thinks this information is useful, I'll perhaps try how much i can fill this memory up and how big my programm can get in memory next.
How do I create 'pages' in VS?
I've downloaded the new VS Express and made a basic GUI app, but I can't figure out how to make pages. Please see my pic below to understand what I am refering to.
Has any one figured this out or seen any guides on how to do this?
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Don't remember where I saw it, but I think pages or "pivots" as they have been called are disabled in this release of the sdk.
Edit - It's on page 57 of the UI Design and Interaction Guide.
Yup it's meant to come in the updated release, also support for Visual Basic
Visual Basic
I just downloaded Windows Phone Developer tools and i can see only support for C#.
Does that means that they are still working on VB part or that they done with VB and i should finally start learning some real programming languages?
check this out... good behavior that works like the panoramic control for that might be released in future versions of the SDK
http://aimeegurl.com/2010/03/18/pan...ne-7-with-no-code/comment-page-1/#comment-966
hope this helps
you know what I'd like to see?
The WP7 homescreen consists of hubs, right? and swiping it to the left, gives you a list of applications. The app list doesn't seems to be finished yet, but how likely will it be, that this page will eventually be made available for UI customization? I mean, the hubs/tiles interface should still be the main screen when getting the phone out of standby, but the app page could an ideal spot for custom UI, just by a swipe of your finger. just a thought.
Quote from the developer forum
Hi folks,
I have some great news!
I received feedback from the GPM for the Microsoft VS Languages team, who indicates:
"there will definitely be support for writing VB apps for Windows Phone 7, but we are still working on the details and the timeline".
Best Regards,
Mark
mrabie said:
http://aimeegurl.com/2010/03/18/pan...ne-7-with-no-code/comment-page-1/#comment-966
hope this helps
Click to expand...
Click to collapse
Cool link!
Yay, i can postpone my VB to C switch
Thx for info
Thanks for pointing out where in the guide it said that. Also thanks to mrabie for that link. I hope the 'pivot' template released with the final version of VS is a simpler though.
You can probably get away with using VB in SL4 using the VB edition of VS2010. Just avoid using any libraries or controls that SL4 doesn't support in WP7. Then when they launch WP7 it will just be a matter of re-making your interface and copy & pasting most of the code.
Beware: I am an idealist
Silverlight limitation \ work around
I was investigating if it was possible to create a Silverlight (SL) application that can help IT people with basic task; ping, trace-route, port scan, viewer HTTP headers, etc. Unfortunately Silverlight doesn't seem to be cable of doing any of this. Very disappointing to learn.
Anyway, the only work around I can in-vision is if a program were to be installed on that network that had all these abilities and then SL could just be used as a remote control. Since many of us in this forum are tech savoy people, I'm curious as to your feelings toward such an application.
Personally, I would use it only as a last resort. I have a similar application for my iphone, but its all self contained on my phone which makes it great when I have to troubleshoot a foreign network.
Possibly you could do the part about an http-header viewer, but as silverlight and XNA currently don't give you access to the ip-stack itself, port-scanner, ping, tracert don't seem possible.
A fact, MS hopefully will address. As to an application which does this from the phone using a proxy: if i have to setup that proxy first, I'd rather stick with that machine for the occasional ping, tracert, too - but that's just me. Nice idea anyway.
Arabic support in the development tools? [Edit: resolved]
Hello
I'm new to WM development and trying to learn on the WM 7 CPT tools released last week. I try to change label text to Arabic characters but they show up as squares. Are the current tools not yet supporting such languages or is there a work around?
On a semi-related note, is anybody else experiencing some lag while playing around the emulator? It just seems quite slow. I'm running on quite a decent PC (quad core, 2gb ram etc).
How would I go about downloading a file?
How would I download a file from the internet onto the phones storage?
I got a text file in mind, and I'd like the text from the file to be displayed in a text box.
So does anyone know how I would go about doing this?
LooperNor said:
How would I download a file from the internet onto the phones storage?
I got a text file in mind, and I'd like the text from the file to be displayed in a text box.
So does anyone know how I would go about doing this?
Click to expand...
Click to collapse
You don't need to download it to the storage device to be able to display a text file from the net. I haven't developed on WP7 yet, but assuming you can use System.Net.dll and System.IO.dll:
C#:
Code:
HttpWebRequest hwr = HttpWebRequest.Create("http://www.google.com/Robots.txt");
WebResponse resp = hwr.GetResponse();
StreamReader sr = new StreamReader(resp.GetResponseStream());
this.textBox1.Text = sr.ReadToEnd();
sr.Close()
edit:
And looking at Scottgu's Twitter code example, you should be able to do:
Code:
private void Form1_Load(object sender,EventArgs e)
{
string url = "http://www.google.com/Robots.txt";
WebClient wc = new WebClient();
wc.DownloadStringCompleted += new DownloadStringCompletedEventHandler(wc_DownloadStringCompleted);
wc.DownloadStringAsync(new Uri(url));
}
void wc_DownloadStringCompleted(object sender, DownloadStringCompletedEventArgs e)
{
if (e.Error != null)
return;
string DownloadedText = e.Result;
this.textBox1.Text = DownloadedText;
}

ZX Spectrum (functional), IPhone, Linux and other emulators on WP7 phone by easy way

See post http://forum.xda-developers.com/showthread.php?p=28796038#post28796038 .
Offline javascript, html and html5 loading probably enables much emulators running in WP7 Internet Explorer.
Yes, we can use Silverlight app and IE Engine to run offline html content, but after registry tweak built-in browser can do it.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I'm still not sure, how emulator will go fast, but it may be equal the original ZX machine.
On my first attempt:
1. Emulator seems to go very slow. I do not know why, hardware is better, then desktop, where the same run very quick.
2. Emulator works with HTC7Pro hardware keyboard. Only "Enter" key does not works
3. Spectrum sometime restarts itself
4. HTML5 emulator version does show nothing on "Spectrum" screen.
News: see http://htc7pro.howto.cz/jsspeccy2/jsspeccy.html from your WP7 device.
Martin7Pro said:
1. Emulator seems to go very slow. I do not know why, hardware is better, then desktop, where the same run very quick.
Click to expand...
Click to collapse
Probably CANVAS tag absention in Internet Explorer and its emulation is too slow. Do you know someboty more about it?
Edit: Canvas is supported in IE9, but very slow rendered. Exists any way?
Martin7Pro said:
2. Emulator works with HTC7Pro hardware keyboard. Only "Enter" key does not works
Click to expand...
Click to collapse
Enter works. "=", "<", ">", "Backspace" etc does not work. I will try remape keys, on-device Spectrum Basic programming is now impossible.
Edit: "Backspace" is "Shift"+"0". "Ctrl" key miss on HTC7Pro, then "=" is impossible without code change. Who idiot makes "Smile" key instead "Ctrl"?
Edit: Line 207: {row: 7, mask: 0x02}, /* fn, HTC7Pro screws up ctrl+key too */ solves it, now I have complete ZX Keyboard with Fn instead Ctrl.
Martin7Pro said:
4. HTML5 emulator version does show nothing on "Spectrum" screen.
Click to expand...
Click to collapse
Some parts work, but Spectrum screen not. It may have simple solution. Do you know someboty more about it?
Edit: Do you understand somebody this code? Error occured in IE9 is: ArrayBuffer and Uint8Array objects are undefined.
is_ie = (typeof ActiveXObject == "function");
if (!is_ie) {
typed_array = ('ArrayBuffer' in window && 'Uint8Array' in window);
if (typed_array && 'mozResponseType' in req) {
/* firefox 6 beta */
req.mozResponseType = 'arraybuffer';
} else if (typed_array && 'responseType' in req) {
/* Chrome */
req.responseType = 'arraybuffer';
} else {
req.overrideMimeType('text/plain; charset=x-user-defined');
typed_array = false;
}
}
MSDN Uint8Array object: Not supported in the following document modes: Quirks, Internet Explorer 6 standards, Internet Explorer 7 standards, Internet Explorer 8 standards, Internet Explorer 9 standards.
Using Phone Commander and its View/Edit feature on-device javascript programming is possible and relatively comfortable.
Bellard's Linux can work, but for Internet Explorer offline loading we must change url request for binaries to javascript including, similarly to Spectrum emulator.
News
1. Both Jsspeccy ZX Spectrum emulator versions work now, include full HTC7Pro HW keyboard support. All HTML5 canvas features are supported (without touching only, must be handled as mouseclick).
2. Speed is unusable now. I mean 5times slowly then original ZX Spectrum. I hope it will solvable. If not, this emulation way is unusable on WP7 phones.
By my deep performance analysis all one frame rendering, keycodes scaning, etc, etc takes cca 4 ms. But, Z80 instructions interpreting for this one frame takes 200-300 ms. It is too much, original frame rate is 50 per sec. On desktop machine the same takes cca 1-3 ms. Is not possible Microsoft does not allowe to take more processor time to running javascript? Or WP7 IE9 has wrong JS algorithms? I mean not, becouse standard JS benchmark gives relatively good results here.
3. I will prepare xap version, usable on all interop unlocked devices (not only fully unlocked custom ROMs as now). May be other XDA people have more experiences with javascript as me and they will able to solve performance problem.
Online WP7 Spectrum emulator
For non-unlocked people I prepared online jsspeccy emulator WP7 port. It is still working very slow, but touch control is fully usable and optimalised for WP7 Mango IE9.
Go (from WP7 device only, it is not properly working from desktop explorers) to http://htc7pro.howto.cz/jsspeccy2/jsspeccy.html
Tap to blue arrow and programm. Any games are under directory picture, but mistake in WP7 IE9 does not allow multitouch using, then playing is much difficult, then on another version, optimalised for my HTC7Pro HW keyboard. You can define "joystick" keys for any games and use taping to game screen. Keys defining is better in landscape mode, all another in portrait mode only. HTC7Pro version (still not published) is working in landscape only. Both version will here for downloading after asking original jsspeccy author. Post experience from doublecore new devices, on my phone is emulating javascript very slow.

Categories

Resources