Iblend

Ok Siwu here's more abou what I remember abou the EFX way (which this does too), it puts an empty window class for the titlebar window that the empty one is in and it grabs the window title from the first one (the main one). Do you mean to say that you used 2 instances of the program instead in your test?

#27607

Originally posted by smoke@May 18 2003, 08:58 PM

Ok Siwu here's  more abou what I remember abou the  EFX way (which this does too), it puts an empty window class for the titlebar window that the empty one is in and it grabs the window title from the first one (the main one). Do you mean to say that you used 2 instances of the program instead in your test?

Actually, I first made a empty dialog class.

then I assign a hWnd target to this dialog, resize it to the original, disable the main window titlebar and put this window on the target

the bad thing is there 2 windows, one for the content, the other for the titlebar.

EDIT:

of course events like MOVE, RESIZE are implemented but i'm stuck about the active/inactive state...

i'll take a look at SetWindowLong more carefully ;)

#27610

Originally posted by smoke@May 18 2003, 12:58 PM

Ok Siwu here's  more abou what I remember abou the  EFX way (which this does too), it puts an empty window class for the titlebar window that the empty one is in and it grabs the window title from the first one (the main one). Do you mean to say that you used 2 instances of the program instead in your test?

to siwu!

That is looking just great! Yep - you are on the right track, take your time and do what needs to be done in the best and efficiant way you see it right.

-------

@Smoke -

I'm actually affraid of this type of engine efx had.

it was buggy as hell (many people can back me up on that) and i honestly dont think it was because of its early stage of developement. I remember how the shell windows where flashing or the title bar behind it started popping out to the front.

I'm far from being a programer and I can probably be proven wrong about my assumption, but I remember that adding something on top to cover it up is slow and unstable. If you take the 'system prefrences' app, by the talented hyperbole, just as an example, while dragged around, you can clearly notice an inactive window underneth which is linked to the 'skinned' window (I hope that hyperbole could change that tiny thing and end up having a single window in this incredible app).

I personaly dislike it cause in some occasions the skinned window disconnects from the base window, or in the least of cases the back window pops out while moving the window around.

it may be due to early stages but I dont know, but you guys get my point alright.

If iblend ends up like that, I'll be worried about it, again unless im proven dead wrong..

Since i'm not sure how iblend is going to work for the title bars, assuming SIWU is tweaking them directly (according to the current version of iblend, the real shell windows are dealt with directly), I would strongly suggest to continue having THIS clean code of a direct cause and effect.

Thats just my opinion about it smoke. :blush:

@SIWU -

I noticed that after a screen saver yz dock becomes weird again with iblend - I think its the reason and Im sure file exclusion will solve it - THANK YOU! :rule: :rule:

-- EDIT --- WITH mobydock DX9 iblend doesnt cause anything. Maybe there is something to look at i dunno :rolleyes:

#27611

Goku, the way siwu is doing it is simular to the EFX way. You can't do the border directly I'm sorry to tell you. You either have to do more than one window class like EFX, or you have to do with just the whole window being transparent. This is how all objects that you can see through to the wallpaper on yoru desktop work with independent grouped transperized window classes.

Things such as Y'z dock use about ~4 window classes.

I never said it wasn't buggy or such but until longhorn comes out you have to make tradeoffs if you really want to get transparent titlebars.

I have noticed things like your bugs even with shadowing applications because they also work in this similar fashion, attaching another window class to the window in order to get the effect.

I've actually used most window changers including EFX since they first came out so I'm well versed with their bugs, which actually happen more on 9x than they do on NT. I said there are benefits and drawbacks to either the VS\WB way or the EFX way.

P.S. Mobydock DX uses 3d accelleration so obviously it's transparency works in a different way than 2d transparency (transparent overlay). So that's why it's not effected by iblend. Longhorn puts all windows including the taskbar and wallpaper into DX objects so transparency in that will be different as well.

#27614

Originally posted by Goku@May 18 2003, 09:39 PM

Since i'm not sure how iblend is going to work for the title bars, assuming SIWU is tweaking them directly (according to the current version of iblend, the real shell windows are dealt with directly), I would strongly suggest to continue having THIS clean code of a direct cause and effect.

First, thank you for all Goku, and all the people here, you are helping me a lot by your comments/feedbacks.

For the titlebar blending only, the technique is rather simple, but it's not that perfect.

For the general understanding, let's see how current iBlend work:

- gets all the opened windows hWnd (hWnd = window handle)

- filter them to keep only the visible windows and those wich have a title and are not excluded

- blend them

- save the hWnd of the active window

after that, every 200ms, it checks the current active window, if the hWnd of the active window is not the same has the saved one, unblend the old, and blend the new.

now, let's see how the "real osx emulation" would work (the way I understood it):

- gets all the opened windows hWnd (hWnd = window handle)

- filter them to keep only the visible windows and those wich have a title and are not excluded

- filter the ones wich do have a titlebar

- then it's a per window technique:

-- create a window wich have the same size horizontaly, but verticaly just to have the titlebar

-- get the target's title

-- disable the titlebar of the target

-- blend the titlebar window

-- show it

and it's not finished, after that, it must:

- move the target if it is moved, all in real time

- resize if the target is resized (this include having timers to check the target integrity)

- handle the maximize/minimize events: resize the window to have a "maximized effect", but not actually really maximize it

and the two big things:

- make the target active if it is active

- don't go inactive it the target is active

- keep the Z-Order

in my opinion, the active/inactive thing is impossible, just because there can only one active window.

in the screenshot, the titlebar is active BECAUSE the notepad window isn't

here are the big issues with this technique...

but i'm not abandoning it :)

i'll jut keep thinking about it if I have an idea :)

#27618

siwu in order to work with more than just OSX style themes you'd need to do the vertical height as well. Have you tried that with other style themes?

#27619

About the Y'z Dock issue, there is two possibles causes:

1st:

iBlend tries to blend it, so it goes buggy, but the thing is, if Y'z dock doesn't appear in the get windows list, the iBlend won't try to blend it. for example Object Dock works perfectly. but it wasn't like this on earlier versions because iBlend tried to blend it only because you clicked on it.

2st:

Y'z Dock is maybe monitoring something that iBlend blend... i dunno :/

#27620

Originally posted by smoke@May 18 2003, 10:14 PM

siwu in order to work with more than just OSX style themes you'd need to do the vertical  height as well. Have you tried that with other style themes?

what do you mean ?

#27621

I mean you said:

"create a window wich have the same size horizontaly, but verticaly just to have the titlebar"

You need to do the window class to be the same size both horizontally and vertically to be compatible with more themes. Most themes don't have borderless sides or bottoms.

BTW, y'z dock seems to hide most of it's window classes. I have only seem them actually with js pager's window class grabber myself.

#27627

:own: (Y) :bow:

Dear respectable siwu!

It is ........no words!

Please tell me how this test prog works? Ive d loaded the app, but it skins the whole windows not just the caption bar! Perhaps Iam stupid to handle it!

THX! :own: :own: :own:

#27631

Siwu and smoke, thank you guys for clearing things out for me :smartass:

I'll keep lurking this place quite often. :naughty:

#27634

Originally posted by smoke@May 18 2003, 10:30 PM

I mean you said:

"create a window wich have the same size horizontaly, but verticaly just to have the titlebar"

You need to do the window class to be the same size both horizontally and vertically to be compatible with more themes. Most themes don't have borderless sides or bottoms.

BTW, y'z dock seems to hide most of it's window classes. I have only seem them actually with js pager's window class grabber myself.

it's weird because iBlend only blend visible windows. so if they are hidden, it should ignore them...

the base condition about blending is: IsVisible() and GetWindowTextLength(), means that the window do have a title, and is visible. so minimized windows, and hidden windows don't get blended...

the very first version of iBlend blended all the windows, and it was TERRIBLY slow :)

about the titlebar thing, if the form have the same size vertically, it will hide the target window :)

#27636

It shouldn't if the window z-ordering puts the titlebar window behind the client window like y'z shadow and windowfx do it.

#27637

Originally posted by maximus-gratus@May 18 2003, 10:36 PM

:own:  (Y)  :bow:

Dear respectable siwu!

It is ........no words!

Please tell me how this test prog works? Ive d loaded the app, but it skins the whole windows not just the caption bar! Perhaps Iam stupid to handle it!

THX! :own:  :own:  :own:

Well I'm glad to tell you that you're not stupid :)

actually, the screenshot you saw is a modified iBlend version to test the "titlebar only" effect. but it's too messy and there are lots of things that need to be fixed...

check my previous post about the titlebar blend technique. maybe you'll understand why it's not already in current iBlend version :)

#27638

THX Siwu! Keep working. I have no doubt, this is one of the most difficult task, to emulate the titlebar effect!

So keep on working!

Once it is done...........wow............we will have the total aqua interface in our hands!

AND IT WILL HAPPEN!!!!!!!!!!!!!!!!!!!!!

:evil: :evil: :evil: :evil: :evil: :evil: :evil: :evil: :evil: :evil:

#27641

Originally posted by smoke@May 18 2003, 11:03 PM

It shouldn't if the window z-ordering puts the titlebar window behind the client window like y'z shadow and windowfx do it.

damn, you got me an idea... instead of having a real titlebar, why can't we emulate it ?

with a bitmap and some text controls, this could pherhaps be done, and it would solve the active/inactive issue, since it's self owned by the dialog (show either active of inactive bitmap)

EDIT:

about the window, it ONLY disable the titlebar, the borders are still here. so I don't have to make them :)

#27642

Actually I had that in mind at first (making your own border) but that opens up another kettle of fish\can of worms. Just like with shellwm though I guess it works ok for some people.

#27643

Hi guys, I have great news again :)

here another release

first, the app:

iBlend v0.2.9 (16 ko)

second, the changelog:

v0.2.9 on 05/20/2003 (at 2:00 am)

-Re-cleaned the code (yes i know ;)

-Implemented filename exclusion support (DAMN YEAH !)

-Improved the exclusion system's gui :)

-Fixed Y'z dock issue (with the filename exclusion)

third, the screenshot:

screenshot-3340.jpg

and then, my comments :) :

ok, here we are for a new version of iBlend which FINALLY have a filename exclusion system

but i already see people asking: why 0.2.9 ?

well it's because of the exclusion gui...

you see, now you can exclude an app with only 1 mouse click (except for the filename, I dunno if everybody has the MS common controls...), BUT, the changes won't be saved until you do so in iBlend.cfg

i am too lazy to write a configuration saving system right now :)

that's why .9, because v0.3 will have this conf saving system :)

in the mean time, please continue giving me feedbacks, comments and wishes (and congratulations if you want ;)

#27887

Nice thanks

#27888

Very very very cool app siwu!!!

Looks like you deserve "Developer" status.

#27890

Yahoo! Awesome update you got here Mr.Siwu. Your my hero. :blush:

#27892

Forgot to tell you, the effect_on_start in iBlend.cfg is set to 0, forgot to put it back :)

#27895

Here are 3 rough drafts of an icon for iblend see what you think.

Basically blend as in coffee blend that's the idea I was using :)

ibend.png

iblend2.png

iblend3.png

#27900

here is the reshacked exe with my favorite of the 3

iblendwindow.jpg

#27902

Hey, great update. It runs even better. Keep them coming, this app is becoming a must have for my aqua arsenal.

Could you see if theres some way to do multimonitor support, like disabeling transparency on one monitor/video card, because im running a Geforce4MX and a PCI TNT2, and the PCI TNT2 cant handle the transparency.

Keep on Rockin' :own:

#27918