|
 |
|
10-21-2005, 12:03 PM
|
#136
|
|
FLAC
Join Date: Jun 2005
Location: Anoka County, MN
Posts: 1,021
|
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?
|
|
|
|
Sponsored links
|
|
Advertisement
|
|
10-21-2005, 12:06 PM
|
#137
|
|
Constant Bitrate
Join Date: Aug 2005
Location: Jersey
Posts: 222
|
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?
|
|
|
10-21-2005, 01:48 PM
|
#138
|
|
Banned
Join Date: Nov 2004
Location: L.A.
Posts: 1,944
|
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.
|
|
|
10-21-2005, 01:50 PM
|
#139
|
|
Constant Bitrate
Join Date: Aug 2005
Location: Jersey
Posts: 222
|
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.
|
|
|
10-21-2005, 01:52 PM
|
#140
|
|
Banned
Join Date: Nov 2004
Location: L.A.
Posts: 1,944
|
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.
|
|
|
10-21-2005, 02:54 PM
|
#141
|
|
Banned
Join Date: Nov 2004
Location: L.A.
Posts: 1,944
|
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:
|
|
|
10-21-2005, 05:02 PM
|
#142
|
|
Banned
Join Date: Nov 2004
Location: L.A.
Posts: 1,944
|
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.
|
|
|
10-21-2005, 05:06 PM
|
#143
|
|
Constant Bitrate
Join Date: Aug 2005
Location: Jersey
Posts: 222
|
are the presets in text so that the end user can edit them? or are they graphics?
|
|
|
|
Sponsored links
|
|
Advertisement
|
|
10-21-2005, 05:08 PM
|
#144
|
|
Banned
Join Date: Nov 2004
Location: L.A.
Posts: 1,944
|
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).
|
|
|
10-21-2005, 05:11 PM
|
#145
|
|
Constant Bitrate
Join Date: Aug 2005
Location: Jersey
Posts: 222
|
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.
|
|
|
10-24-2005, 12:34 AM
|
#146
|
|
Banned
Join Date: Nov 2004
Location: L.A.
Posts: 1,944
|
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.
|
|
|
10-24-2005, 12:43 AM
|
#147
|
|
My Village Called
Join Date: Jul 2004
Location: Berkeley, CA
Posts: 10,517
|
Yay! Progress
Post some tease screenshots
|
|
|
10-24-2005, 12:49 AM
|
#148
|
|
FLAC
Join Date: Jun 2005
Location: Anoka County, MN
Posts: 1,021
|
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.
|
|
|
10-24-2005, 01:03 AM
|
#149
|
|
Banned
Join Date: Nov 2004
Location: L.A.
Posts: 1,944
|
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
|
|
|
10-24-2005, 01:05 AM
|
#150
|
|
Banned
Join Date: Nov 2004
Location: L.A.
Posts: 1,944
|
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
|
|
|
|
Sponsored links
|
|
Advertisement
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 12:55 AM.
| |