Transparent/Translucent Forms & Controls - Windows Mobile Software Development

So I have been searching these forums a bit each day for the past week, and I have yet to see a working solution for SmartPhones AND PPC's alike. I have tried P/Invoking AlphaBlend, SetBkMode, etc. but to no avail. I am not a great coder, so I may be using them wrong.
If anyone knows how to get this to work on SmartPhone's and PPC's, could they please share their knowledge
Thank you!

Cyclonezephyrxz7 said:
So I have been searching these forums a bit each day for the past week, and I have yet to see a working solution for SmartPhones AND PPC's alike. I have tried P/Invoking AlphaBlend, SetBkMode, etc. but to no avail. I am not a great coder, so I may be using them wrong.
If anyone knows how to get this to work on SmartPhone's and PPC's, could they please share their knowledge
Thank you!
Click to expand...
Click to collapse
What exactly do you want to do?

I want to be able to make forms / controls that have Opacity less than 255 ... (I want to do this in C#) ... take, for instance, SMSBubbles, it displays a small bubble at the bottom of the screen about a new text message...how would i be able to achieve that and still maintain the background to be transparent. Also look at SmartToolKit, when you pop open the Start Menu, the back (what is not covered by the menu) remains updating (etc.) but you still get the menu..
I want to do something along those lines...
any help is greatly appreciated

Have you checked out this blog entry?
blogs.commentor.dk/post/Transparent-Controls-in-NETCF.aspx

Or a library: http://beemobile4.net/?sitecateg=products&productID=5

Thanks for the replies, the first I tried implementing, but it didn't work as I would have hoped (The second, well I don't want to pay 45+$ for it...heh)
So I re-tried P/Invoking SetBkMode in the onPaintBackground method:
Code:
protected override void onPaintBackground(PaintEventArgs e)
{
setBkModeCE(e.Graphics.getHDC(), BkMode.TRANSPARENT);
}
I also made sure to P/Invoke
Code:
SetCursor(IntPtr cursor)
...main loop starts here...
SetCursor(IntPtr.Zero)
to get rid of the wait cursor.
While this works perfectly in terms of eliminating the background, it doesn't actually make it transparent. What it does, i can do by taking a screenshot and applying it as the bg (It doesn't update). I suppose I can use a timer and have it update the background on Events of all sorts, on user-activity, and every minute, but that seems like it is a hassle.
That may be the only way to actually do it, I don't know, but it just seems that there is a better way to do it (and be able to conserve RAM).

I used this library in one of my apps: http://code.msdn.microsoft.com/uiframework
Sourcecode is available, written in C# so its easily adaptable to your needs too.

Related

Home screens for the Dash ?

Is there a decent source for some alternate home screens for the Dash ?
I know there are quite a few home screens for the Q out there, but I find that although many look very nice, they often don't work very well with the Dash. Specifically, they generally do not support a home screen option to jump/click to the Comm Mgr the way that the Tmobile Dash default does. Also many do not properly handled missed calls. And the color palettes end up being suboptimal for the Dash -- e.g. they can render the setup pages for Outlook almost useless.
So how about some Dash-specific home screens ? Otherwise I gather that I can hack my own by snarfing some of the Q images or other images from where-ever and piece together more Dash-appropriate XML from the default Dash home screen.
Try searching the forum, this has been extensively covered.
Dash Home Screens
Here is a link where I found some great home screens.
http://www.kooldezine.com/Q.htm
Thanks for your replies. Indeed I did do a search (even before posting ) but didn't really find what I wanted (perhaps I don't really understand). Mostly what I found were tutorials on how to hack screen files and otherwise pointers to sites with mostly Q screens, which all had the problems mentioned in my OP (i.e. various incompatibilities).
So... I hacked my own... I started with the included Dash default screen, T-MobileDefaultBlue because its the only one I knew that worked the way it was supposed to. I made minor adjustments with two main objectives: 1) I wanted to be able to see the time easily... not some teenie little font, 2) I wanted it to be compatible with most any background image (the default screen doesn't work well with background images at all). I threw in an indicator of voicemails. Here it is, if anyone is interested. It uses a background image "dashhome.jpg" so anyone can easily change the background image. I also made 2 other versions that use a black font and a blue font, in case those colors would be better with certain background images (snowy or sunny scenes). Hope this helps someone:
dashhome.home.xml
dashhome.jpg
dashblack.home.xml
dashblue.home.xml
One more, the version below makes the bottom button bar and other trimmings gray, which may be more neutral...
dashgray.home.xml
BTW, the default dashhome.jpg image, if anyone recognizes it, is of a "vortex" in Sedona, AZ...
You could go to MoDaCo. They've got some nice ones there, but you have to register.
~Cheers~
P.S. The way I have mine, people think it's the iPhone's cousin, .
You've been busy I think if you generalized your searches a bit (if you haven't already) you might find more if you look for 'landscape homescreen' than device specific. A good one to start with: http://www.kolumbus.fi/anders.ruohio/sp.html
With a modest purchase price, SBSH Facade opens a whole other class of homescreens: http://www.sbsh.net/forums/index.php?showforum=57
One that I did a while back for my Dash (for use with Facade), along the lines of 'less is more': http://www.sbsh.net/forums/index.php?showtopic=14372
neurocutie said:
Thanks for your replies. Indeed I did do a search (even before posting ) but didn't really find what I wanted (perhaps I don't really understand). Mostly what I found were tutorials on how to hack screen files and otherwise pointers to sites with mostly Q screens, which all had the problems mentioned in my OP (i.e. various incompatibilities)....
Click to expand...
Click to collapse
chaznet said:
One that I did a while back for my Dash (for use with Facade), along the lines of 'less is more'...
Click to expand...
Click to collapse
One thing I suppose I should make clearer... nearly all of these other home screens do not provide for WiFi status/CommMgr access (the Q screens for obvious reasons since it doesn't have WiFi). But that's one thing that I absolutely need -- I use WiFi on the Dash more than GSM. I guess that's why I had to hack my own...
Yes I know about Facade... perhaps later... I do like the "less is more" aesthetic...

Im a developer, I know some basics. Give me ideas.

As the title says, Im a developer but I dont know anything majorly complicated.
I want YOUR ideas for something to make.
Stuff I know:
Things to do with the file system - copy, paste, delete, create etc
Read/write/create text files
Simple or even more complex UIs (nothing too extreme though)
most of the basic stuff
Heres a video of stuff Ive done before:
http://www.youtube.com/watch?v=g3_5xBqf-eQ
If you have any idea for simple apps, please let me know and Ill tell you if I can make them or not
Thanks
Maybe a new app to replace and improve SmileySMS ( development is stopped, and on windows mobile we can't have smileys in sms without this buggy app).
I wish a prog for my HD2, very simple : Use Webradio (with url) as ringtone !
Hi Cris,
I am looking for an app that can do the following:
Disable the touchscreen.
Why?
It's annoying when you watch movies and accidentaly touch the screen (especially with core player).
The app would have to disable the touchscreen after a set time, so you have enough to start the movie (or other application).
A certain area of the screen would have to be defined as touchable, so that you can disable again. Maybe with a gesture? ie. swipe from bottom left hand corner to top right???
just an idea
idea
it would be amazingg if you could make an application that allows the drag down notifications panel like android has
antdawg702 said:
it would be amazingg if you could make an application that allows the drag down notifications panel like android has
Click to expand...
Click to collapse
you know what, im gonna look into this one.
I cant promise anything.
I cant say I have any idea how to do that.
but I can say that im gonna look into it ^_^
wm7
can you make a windosmobile7series for nontouchscreen windowsmobile.need help with it.its just navigaating threw it with the arrow keys
Hi Cris,
Can I suggest a application that can do 2 things which I can't find something similar to this (suggestion).
To create a application for both "Shopping List" + "Inventory".
Let me know if you interested, I can share the idea ..
Hope you can consider it .. thanks
antdawg702 said:
it would be amazingg if you could make an application that allows the drag down notifications panel like android has
Click to expand...
Click to collapse
do you have a screenshot?
how about an application like e-mail and walk for the iphone..........so that wed be able to type and walk at the same time with the background being whats in front of us fed by our camera....
I would like a app that does the following:
All for the Sense music tab!
When NOT in a call:
Long press : Play / pause
Pressed twice : Next song
(If possible:
Pressed three times: previous song
pressed shot : call)
When you are being called:
short press: pickup / hangup
PLUS
The hardware buttons (buttons on the PHONE) MUST be disabled,
But ONLY when the headset is plugged in!
With no headset plugged in everything should be as normal!
Could some developer please make this?
Maybe you can use code from the following:
http://forum.xda-developers.com/showthread.php?t=502881
http://forum.xda-developers.com/showthread.php?t=556801
Great Greet Giblet
I've actually been pitching this one around but no luck yet ... A small GPS toggle cmd app. Here's an OSS project that may have usefull code.
What I would like it to have is:
1- Commands to toggle GPS on or off
2- Stay running and output number of connected satellites and connection status (position fixed/not fixed) as a reg name/value
3- Maybe other stuff (like coordinates, hour/date, update system time... but what I really want is the first point 1 and 2).
Why would I want such an app? To add a GPS connection manager to my today screen HS++ skin (also maybe make a script that will only launch my device navigation software when it has a position fix).
PS:
Other stuff I'd like to see are either other small cmd apps or small updates/fixes of some OSS apps like GSFinder+ or even emulators (small stuff like adding onscreen controls using existing sources, emulate mutli touch or improving controls by mixing the use of oncreen keys with hw ones or minor GUI standardization and fixes related with new devices screen resolution).
cris_rowlands said:
As the title says, Im a developer but I dont know anything majorly complicated.
I want YOUR ideas for something to make.
Stuff I know:
Things to do with the file system - copy, paste, delete, create etc
Read/write/create text files
Simple or even more complex UIs (nothing too extreme though)
most of the basic stuff
Heres a video of stuff Ive done before:
http://www.youtube.com/watch?v=g3_5xBqf-eQ
If you have any idea for simple apps, please let me know and Ill tell you if I can make them or not
Thanks
Click to expand...
Click to collapse
OK here is an idea for a simple but useful application please would you consider making this
http://forum.xda-developers.com/showpost.php?p=5711236&postcount=1
Slide2Action
Hi cris, How about a simple slide to do anything? Just a scrollable list of blank sliders that you can assign a function too, eg launch an app, blank screen, reset, close all, new message, WiFi, bluetooth etc. the list could be endless. Just a scrollable action screen with sliders instead of buttons. Transparency would be a bonus for a nice visual.
well folks, youve given me plenty of ideas.
A few of them ill try to work on, sadly many of your ideas are a little beyond me
Anyway, Ive got some stuff to be doing so I wont be checking out this thread anymore.
If any developers feel they want to take up any of these, please feel free ^_^
zinconnu said:
Maybe a new app to replace and improve SmileySMS ( development is stopped, and on windows mobile we can't have smileys in sms without this buggy app).
Click to expand...
Click to collapse
I was going to make this same suggestion. I hope somebody with the skills stumbles upon this and can continue the development for this.
cris_rowlands said:
well folks, youve given me plenty of ideas.
A few of them ill try to work on, sadly many of your ideas are a little beyond me
Anyway, Ive got some stuff to be doing so I wont be checking out this thread anymore.
If any developers feel they want to take up any of these, please feel free ^_^
Click to expand...
Click to collapse
Hi Cris,
if you can consider my suggestion to develop a "shopping List" + "Inventory" apps I think is not that difficult to develop. It almost similar to like any shopping list app & you be able to keep track of the inventory list maybe with photo or pic is good enough.
pls do consider this apps, as both iPhone & WinMo still do not have such app yet. If you do build up, you will be the 1st to come out with.
Lockscreen Slider
Please try to do a Lockscreen Slider for WM 6.5
http://forum.xda-developers.com/showthread.php?t=638230
Thanks
salo1 said:
Please try to do a Lockscreen Slider for WM 6.5
http://forum.xda-developers.com/showthread.php?t=638230
Thanks
Click to expand...
Click to collapse
yes let's steal some more apple patents!!! The idea is great! Few months ago I already asked this topic in the S2U thread but no response, probably my request got overseen or the guy is just too busy with other stuff.

Background trapping mouse events on WinMo.. posibble?

Hey developers,
Believe me, I tried searching quite a lot but couldn't find an answer, never tried this kind of developing ever.
Let's say that my point is to disable part of screen - eg below 400px will not work - my app will catch those mouse events and stop them.
I tried speaking with Chainfire on IRC but he went for gaming or so and he offered me injecting dll's. I'm not sure if that would be the best idea since I'd prefer to do it on background rather than loading it with all apps.
I was thinking another few minutes and how about loading it as driver or some kind of touchscreen filter and running inside device.exe or any other kernel process (or just as background process, doesn't matter those few kB in memory).
Thanks for any push in any way of doing this, believe me, you won't regret the result . OndraSter
Not sure this is possible with the Win32 HWnd stuff, you can catch and handle Window Messages only within the Window said messages are posted to. Never seen a way to do it system wide. Would probably involve replacing some fairly fundamental components. Same sort of thing we are looking at to get multi-touch working correctly on the HD2.
I heard someone got it working with keyboard, but mouse not because of lack LL_MOUSE stuff etc
maybe develop a driver, like i.e. Touch response does.
Yep that was one of two things that came to my mind - driver or service...
But I have no idea where to start with it though...

Flash + VB.NET : embedded Flash way to big

Hi there,
i have just recently upgraded to an HTC HD2 phone from an age-old-phone.
Now i wanted to create my own application but i found it very hard to step into mobile-development. After downloading a bazillion tools and trying to do stuff with flash and VB.NET it took me two days to even get the simplest of app to be working. I still find it weird that there is no real solution to simply create an app that looks nice and still works out of the box. VB.NET does not support transparencies unless you write own controls for it (which i am not experienced enough). Flash can not really create an app that runs in itself (or can it - there was this beta-thingy that git cancelled?)
Anyway, what i have settled for now is a VB-APP that does some of the work i want to achieve and embeds a WebBrowser-Control that launches Flash for the main UI. I even got it to work, but, for whatever reason i can not get my flash-swf to fill the webbrowser-control. Setting the flash movie to 100% lets me only see roughly 25% of the upper left corner of my app. The same happens when setting straight pixel values. The closest i get to Full-Screen is with a width-setting of 28% and a height of 50%, which i am certain will not even look half decent on an other phone.
Does anoyone have a solution for this? Maybe it is real simple but i can't see it.
Thanks in advance.

Multitasking on wp7

Have a look at this
http://www.youtube.com/watch?v=jipqNtc_PPU&feature=player_embedded
Our own developer Jaxbot is up to his tricks again, and this time, it's paid off: Finder of a hack that brought instant resuming to Windows Phone 7, he has been developing a full fast app switching/multitasking solution for Windows Phone 7.
Shown in the video above, the preview of the application is triggered by pressing the half shutter button (pressing the camera button halfway, not to the point where the camera would launch), and allows the user to jump between desired applications. The applications run in the background to a degree, as shown with the timer, and no time is required to bring the applications back from their background state. It's all very technical, but rest assure that he will be sharing some more details in the future.
Keep in mind the application is a preview-the interface and how it functions may very well change before release, and no release date is available. But if you're interested in having it on your device, share some thoughts about how you think it should look, function, etc, in the comments below.
Without further ado, watch the video above for a demonstration of fast app switching on Windows Phone 7.
Click to expand...
Click to collapse
Source
Yeah, checked the article out yesterday. Hopefully he'll be releasing something to everyone soon. It's the one thing I'm dying without No third party alarms (as the one MS provides kind of blows) and all this resuming nonsense is becoming slightly annoying.
That looks pretty slick! Would love to see this one in the wild soon, now if I could only get Pandora I would be set.
kwill said:
Yeah, checked the article out yesterday. Hopefully he'll be releasing something to everyone soon. It's the one thing I'm dying without No third party alarms (as the one MS provides kind of blows) and all this resuming nonsense is becoming slightly annoying.
Click to expand...
Click to collapse
Its still work in progress, there are limitations... people work as hard as they can to overcome these limitations and make it work for all devices.
Currently I believe its not possible to automatically find the titles of the running apps, so they are manually added (hardcoded) however they can find the paths to the files... so the remaining thing is getting access to the files in these paths to extract the title and tile image.
However what you see really works, its real and should work with every app once this is accomplished.
Marvin_S said:
Its still work in progress, there are limitations... people work as hard as they can to overcome these limitations and make it work for all devices.
Currently I believe its not possible to automatically find the titles of the running apps, so they are manually added (hardcoded) however they can find the paths to the files... so the remaining thing is getting access to the files in these paths to extract the title and tile image.
However what you see really works, its real and should work with every app once this is accomplished.
Click to expand...
Click to collapse
Thanks a lot for the insight on the operation and the obstacles they have to overcome. I'll be monitoring for any progress or assistance I can provide. Although, I'm sure my non-expert help won't be of much help.
kwill said:
Thanks a lot for the insight on the operation and the obstacles they have to overcome. I'll be monitoring for any progress or assistance I can provide. Although, I'm sure my non-expert help won't be of much help.
Click to expand...
Click to collapse
you can monitor here: http://forum.xda-developers.com/showthread.php?t=1006331
and here: http://forum.xda-developers.com/showthread.php?t=1021135
btw I have nothing to do with the developments, I was just excited by the news and kept contact with Jaxbot who made this app/video with the code wrapper provided by fiinix
Looks great! I like the idea of a half shutter press. Very elegant solution.
Want that app!
Is this app on the video released?????? I can't find any link to download, although it was introduces about 2 years

Categories

Resources