Sponsored links

Go Back   MP3Car.com > Mp3Car Technical > Software & Software Development > Support Software > SkinBedder


Reply
 
Share Thread Tools Display Modes
Old 10-21-2005, 12:03 PM   #136
FLAC
 
PURDooM's Avatar
 
Join Date: Jun 2005
Location: Anoka County, MN
Posts: 1,021
PURDooM is on a distinguished road
Quote: Originally Posted by RPM_VR4
The focus thing sounds hard :P. I believe you can configure CF to handle that for you though by muting/unmuting it as an input device. I do plan on adding a Control_Click like auto-it has, but that is a big PITA too. For now you can just have the button run an Auto-It script and then you can do anything it can. You may even be able to use Auto-It to space on loss of focus too, but remember that whenever you push a button, RadioShark loses focus to SKINbedder for a brief period of time (before the focus() command in the button script is ran).

When switching away from an app in CF my embedded visual basic window reports window.visible = false, so I can close all the child menus in my app when the user switches tabs. Does delphi have similar functionality?
__________________
Current projects: iGmod reloaded (Latest release) (put on hiatus indefinatly)

Unlimited Internet and gps tracking for $6 a month with boost mobile!

Carputer 2: www.lmaocar.com
PURDooM is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Old 10-21-2005, 12:06 PM   #137
Constant Bitrate
 
Join Date: Aug 2005
Location: Jersey
Posts: 222
DaPCWiz is on a distinguished road
hmmm isn't htere a visibility option in the .ini files.... I don't think there is any logic I can play with tho.. hmmmmmm RPM, any thoughts?
DaPCWiz is offline   Reply With Quote
Old 10-21-2005, 01:48 PM   #138
Banned
 
RPM_VR4's Avatar
 
Join Date: Nov 2004
Location: L.A.
Posts: 1,944
RPM_VR4 is on a distinguished road
No, not directly. As I said, for now you would have to use an Auto-It script.

Make an Auto-It script file that clicks the AM/FM. Then, make the button command=Run(ClickAMFM.a3u).

As for volume, I guess you would just have to press mute before switching away. Either that or you might be able to tie muting/unmuting to focus using Auto-It.
RPM_VR4 is offline   Reply With Quote
Old 10-21-2005, 01:50 PM   #139
Constant Bitrate
 
Join Date: Aug 2005
Location: Jersey
Posts: 222
DaPCWiz is on a distinguished road
hmm that sounds like it would work, I'll work on it... I tried out the file u sent me, I'm still having a slight distortion issue... try clicking preset+ and preset-, an odd black line shows up above the buttons after they are clicked... its not a huge issue, but I can't figure out whats causing it.
DaPCWiz is offline   Reply With Quote
Old 10-21-2005, 01:52 PM   #140
Banned
 
RPM_VR4's Avatar
 
Join Date: Nov 2004
Location: L.A.
Posts: 1,944
RPM_VR4 is on a distinguished road
PD: Ok, that's good to know. I guess it should be easy to add an OnMinimize and OnRestore event to the main form. However, I'm not sure I would be able to send a key press to the radioSHARK window after it is minimized.
RPM_VR4 is offline   Reply With Quote
Old 10-21-2005, 02:54 PM   #141
Banned
 
RPM_VR4's Avatar
 
Join Date: Nov 2004
Location: L.A.
Posts: 1,944
RPM_VR4 is on a distinguished road
If you add a Wait(1000) before trying to embed, it works with the Class & Title always (of course the title contains a radio station number, so it wouldn't work if you closed radioSHARK on a different station).

I have this working fine:
Attached Images
 
RPM_VR4 is offline   Reply With Quote
Old 10-21-2005, 05:02 PM   #142
Banned
 
RPM_VR4's Avatar
 
Join Date: Nov 2004
Location: L.A.
Posts: 1,944
RPM_VR4 is on a distinguished road
Did some more work. I think my concept is done now... if an artist wants to make it look a bit better, I will complete the SKIN and include it with the next SB release.
Attached Images
 
RPM_VR4 is offline   Reply With Quote
Old 10-21-2005, 05:06 PM   #143
Constant Bitrate
 
Join Date: Aug 2005
Location: Jersey
Posts: 222
DaPCWiz is on a distinguished road
are the presets in text so that the end user can edit them? or are they graphics?
DaPCWiz is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Old 10-21-2005, 05:08 PM   #144
Banned
 
RPM_VR4's Avatar
 
Join Date: Nov 2004
Location: L.A.
Posts: 1,944
RPM_VR4 is on a distinguished road
Graphics. This skin should be delivered with blank presets (so people can add their own using a PNG editor), and also with numbers 1-6 for the presets (for the lazy/photoshop-challenged).
RPM_VR4 is offline   Reply With Quote
Old 10-21-2005, 05:11 PM   #145
Constant Bitrate
 
Join Date: Aug 2005
Location: Jersey
Posts: 222
DaPCWiz is on a distinguished road
also note, the graphic you used it made to work with my recoloring of the cF 1.4 skin (yet to be released) + 800x600. That graphic will not line up with cf at any other res.
DaPCWiz is offline   Reply With Quote
Old 10-24-2005, 12:34 AM   #146
Banned
 
RPM_VR4's Avatar
 
Join Date: Nov 2004
Location: L.A.
Posts: 1,944
RPM_VR4 is on a distinguished road
Good news people. I've made a lot of progress on the iG SKIN, and I think I almost have the main drawing bug fixed.

I made a version where the buttons do not disappear and any fully transparent parts are click-through and update properly (the fully transparent Rgn's are cut out). The only problem with that is that the alpha-blended parts do not update to the moving map. This will probably be my next release (with a full iG SKIN).

I am also making a lot of progress with WS_EX_LAYERED which I have discovered is the only way to allow per-pixel alpha-blending over a changing background window. When I set the ExStyle to WS_EX_LAYERED instead of WS_EX_TRANSPARENT, I had always received an EOS error which I had no clue how to debug, but then I found out Layered windows cannot have a parent and have to be drawn via:
Code:
UpdateLayeredWindow(SkinArray[Index].Handle, AScreenDC, @FPosition, @FSize, Bitmap.Handle, @ASourcePosition, $000000, @ABlendFunction, ULW_ALPHA);

I can not get the buttons to draw though... there is a problem with the above line. I receive no error, I just don't see the buttons. I will keep working on it though. Unfortunately, even once I do get that working I have to solve a bunch of other positioning problems... Since it doesn't have a Parent, the buttons will be drawn relative to the desktop rather than the SKINbedder window. I can fix that using the SKINbedder window position as an offset, but when SKINbedder is embedded in a front-end, its position is always 0,0 (I have experienced this problem before when I found out I could fix the alpha-blended GPS_Info and Route_List not updating bug by not setting their parent to the WindowContainer [which means they are not really embedded, just cropped and overlayed]).

All I can say is doing Win32API per-pixel alpha-blending is a PITA! (but it looks so cool )

If you have done some API programming and you think you may know how to help me with UpdateLayeredWindow or anything else, please PM me.

Last edited by RPM_VR4; 10-24-2005 at 12:39 AM.
RPM_VR4 is offline   Reply With Quote
Old 10-24-2005, 12:43 AM   #147
My Village Called
 
0l33l's Avatar
 
Join Date: Jul 2004
Location: Berkeley, CA
Posts: 10,517
0l33l is on a distinguished road
Yay! Progress

Post some tease screenshots
0l33l is offline   Reply With Quote
Old 10-24-2005, 12:49 AM   #148
FLAC
 
PURDooM's Avatar
 
Join Date: Jun 2005
Location: Anoka County, MN
Posts: 1,021
PURDooM is on a distinguished road
Well, I ran into the same problem. You cant set a parent for them. My closest solution was to make an extra window on top of everything, and make it a toolwindow with the following code:

orgparent = SetWindowLong(hwndofwindowtobind, GWL_HWNDPARENT, parent)

Instead of embedding the window, this makes the window act as a toolbox, and it follows the parents movements to an extent. Minimizing, changing order of windows (putting a window on top or behind) will always keep the window directly on top of the window it was set to follow. Then all you have to do is make your resize message handler also resize your transparent window to follow the main window, and you can nearly have the effect of a layered embedded window.
__________________
Current projects: iGmod reloaded (Latest release) (put on hiatus indefinatly)

Unlimited Internet and gps tracking for $6 a month with boost mobile!

Carputer 2: www.lmaocar.com
PURDooM is offline   Reply With Quote
Old 10-24-2005, 01:03 AM   #149
Banned
 
RPM_VR4's Avatar
 
Join Date: Nov 2004
Location: L.A.
Posts: 1,944
RPM_VR4 is on a distinguished road
Ok... but you can't really see the progress because the biggest thing is that it doesn't blink or fade up. Anyway, here's the POI page
Attached Images
 
RPM_VR4 is offline   Reply With Quote
Old 10-24-2005, 01:05 AM   #150
Banned
 
RPM_VR4's Avatar
 
Join Date: Nov 2004
Location: L.A.
Posts: 1,944
RPM_VR4 is on a distinguished road
Ok... but you can't really see the progress because the biggest thing is that it doesn't blink or fade up. Anyway, here's the POI page
RPM_VR4 is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Motorola V3 USB-connect (w/ BT Audio Gateway)... If you use a V3 RAZR come here! RoyN PhoneControl 27 10-29-2005 10:30 PM
[Release] SKINbedder BETA 2.99999 0l33l SkinBedder 450 09-23-2005 04:38 AM
[Release] iGLaunch v3 0l33l SkinBedder 145 07-05-2005 11:33 AM
[Release] SKINbedder v2 0l33l SkinBedder 242 07-05-2005 05:01 AM
[Release] SKINbedder 1.0 RPM_VR4 SkinBedder 41 06-26-2005 05:03 AM



All times are GMT -5. The time now is 12:55 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.2
Copyright © 1999 - 2008 Mp3Car.com Inc.Ad Management by RedTyger
Message Board Statistics