Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
155 user(s) are online (92 user(s) are browsing Forums)

Members: 0
Guests: 155

more...

Headlines

Forum Index


Board index » All Posts (centaurz)




Re: smartbutton docky from openamiga.org
Just popping in
Just popping in


@orgin

You were fast, I was about to start a thread on this .

Edit: BTW, for those having hearing problems, smartbutton.docky is not the docky version of the fart button.


Edited by centaurz on 2009/4/19 19:15:24
Go to top


Re: New windows bar docky, from OpenAmiga
Just popping in
Just popping in


@TSK

Quote:

Show a thumbnail when mouse pointer is on a bar (like in Winblows/Linux) ?


Yes, I'd like to add that feature, would be cool, as well as icons for window.class windows (when I resume working on winbar.docky).


@orgin

Quote:

Would it be possible to add an option to sort the bars it time order rather than by name

What a bizarre idea ! No, just joking , yes this can be done but it's not as straightforward as showing it alphabetically sorted.

As for the info about the window, there used to be OwnerOfMem() function in Exec that could have provided an alternative way of obtaining the parent process (maybe...), but it no longer works in OS4.1.
So IMHO the best that can be done is showing a thumbnail of the appicon for ReAction windows.

Go to top


Re: Composite on transparent bitmap
Just popping in
Just popping in


@salass00

Er... what makes you think I don't want to do an alpha blend ?

I'd like to blend an arbitrary ARGB32 bitmap (A) over another one (B) of which I can't assume anything since it's the render destination of a docky. Here's why :

When compositing is disabled in the GUI prefs, bitmap B is an opaque background, it is simply blitted over the dock (it is a copy of the area behind the dock, that's how fake transparency is achieved in Amidock since OS4).

When compositing is enabled, bitmap B is totally transparent (colour 0 and alpha 0), it is composited over the dock.

So to handle both cases with the same rendering code, CompositeTags() would be a good candidate, but for some reason the color of bitmap B doesn't seem to be premultiplied by its alpha channel, as stated in the autodoc. So the result is e.g. the smooth borders of a png image are blended with the transparent black of bitmap B. Too bad.

Go to top


Re: Composite on transparent bitmap
Just popping in
Just popping in


@centaurz

*bump*

Go to top


Composite on transparent bitmap
Just popping in
Just popping in


Hi,

Since there currently seems to be trojan issues with some browsers on Utilitybase, I'm posting my question here :

I'm having weird results when compositing an ARGB32 bitmap over a transparent one (alpha = 0x00), using the following code:

Quote:

IGraphics->CompositeTags(COMPOSITE_Src_Over_Dest, source, dest,
COMPTAG_SrcX, sourceLeft,
COMPTAG_SrcY, sourceTop,
COMPTAG_SrcWidth, width,
COMPTAG_SrcHeight, height,
COMPTAG_OffsetX, destLeft,
COMPTAG_OffsetY, destTop,
TAG_DONE);



The source bitmap RGB colors seem to be blended with the dest one, which should not happen since the alpha of the dest is 0.
Is there some missing tag here to specify that the destination bitmap alpha should be taken into account ? Or maybe the operator is wrong ?

Go to top


Re: File system notification problems
Just popping in
Just popping in


@orgin

Not a clue about your crash, but do you know you can dump the memory console if Intuition crashes and everything is frozen. Use command DumpDebugBuffer (the buffer is resident so it survives to soft reset). All crash logs are written there.

Go to top


Re: Popup menus in 4.x
Just popping in
Just popping in


@orgin + TSK
I mentioned the LBM_HITTEST thing because rachy's piechart.gadget has a similar method to identify the slice under the mouse pointer (maybe other Reaction classes do).

Go to top


Re: Popup menus in 4.x
Just popping in
Just popping in


@orgin

And use IIntuition->GadgetBox() to check if you're over thelistbrowser.

Edit: As for the listbrowser node, if it isn't selected first with the LMB I doubt that you can identify it. Some kind of LBM_HITTEST method would help here.

Go to top


Re: Popup menus in 4.x
Just popping in
Just popping in


@Orgin

BTW, you don't have to reply the Msg provided by the hook, it is handled by window.class.

Go to top


Re: New windows bar docky, from OpenAmiga
Just popping in
Just popping in


@orgin

Actually, for window.class instances at least it would be possible to use tag WINDOW_Icon, but I don't know a simple way of detecting if an Intution window is an object of this class.

Go to top


Re: Popup menus in 4.x
Just popping in
Just popping in


@orgin

Quote:

Unanswered questions:
What exactly do I put in struct Hook?

Set h_Entry to your hook function, and put whatever you need to access from within the hook function in h_Data.

Quote:

- why are there two function pointers?

h_SubEntry is here for legacy reasons, AFAIR it used to be the glue code for the 68k C ABI. Leave it to NULL.

Quote:

- what is h_MinNode?

Use this if you need to put the hook in a list.
Quote:


- what do I put in h_Data?

See #1.

Edit: There's an example of how to use IDCMPHook in the SDK example of the "hidden chooser".

Go to top


Re: New windows bar docky, from OpenAmiga
Just popping in
Just popping in


@nubechecorre

This may interest you then
http://openamiga.org/?function=viewproject&projectid=47

(still not ready for beta though)

And there is also quickstarter from TSK on Os4depot.


Edit: It all depends on what you call a start bar. Winbar.docky is meant to manage all opened windows whilst taking as less space as possible to fit it in a dock, but you can put it in its own dock and extend its size to the screen width as well.


Edited by centaurz on 2009/3/22 21:18:43
Go to top


Re: Application library event handling
Just popping in
Just popping in


@orgin

If you make your Reaction window an appwindow, why don't you use the AppMsgHook feature ? The hook will be called automatically by RA_HandleInput() when an AppMsg is received, so you can use the loop code provided by Chris ?

Go to top


Re: Completely detached process
Just popping in
Just popping in


@orgin

It's a guess based on vague memories and Autodocs reading .
(BTW, use GetProcSegList() to obtain the seglist).

Edit: However, can't find a function to change the seglist (Colin, where are you ? )

Go to top


Re: Completely detached process
Just popping in
Just popping in


@orgin

You could "transfer" the seglist ownership to the process (use NP_SegList tag with CreateNewProc), but you still have to prevent the program from freeing it itself.

Go to top


Re: Completely detached process
Just popping in
Just popping in


@orgin

If you get an ISI exception, the main program probably UnloadSeg()s code the spawned process is still executing.

Go to top


Re: iconmodule and fake icons
Just popping in
Just popping in


@abalaban
I had forgotten about this hook... However, like you and Thomas said, unless the hook handle all types of files you want to generate a preview for, each hook will add some more (possibly redundant) file processing in the chain. Would be better if for example Deficons called itself some kind of previewer once the type of the file is known. But it's better than patching the system .

Go to top


Re: iconmodule and fake icons
Just popping in
Just popping in


@abalaban

Nice idea
IMHO to avoid patching icon.library for such things, we would need a new plugin system that would allow some kind of "preview generator" to be called (according to the type detected by Deficons) instead of loading the icon imagery, possibly controlled by some tag. Maybe someone will hear us ...

Go to top


Re: iconmodule and fake icons
Just popping in
Just popping in


@abalaban

I'm afraid not, since icon modules only deal with real .info files (the icon imagery), and therefore will never be called by icon.library to build a "fake" icon (from what I understood, never did any icon module...).

Go to top


Re: Dockies with new SDK
Just popping in
Just popping in


@Cyborg

No, I was commenting on the fact that the docky bitmap is interpreted differently if compositing is enabled, since the alpha channel is ignored when compositing is off (like in OS4.0 Amidock). And since GUI compositing is a user setting...

For example :

(pngImage is a bitmap.object instance)

Quote:

IIntuition->DrawImage(rp, pngImage, 0, 0);


doesn't produce the same effect with and without compositing if drawing on an opaque background. With compositing on, the background is made transparent when it obviously shoudn't be.

Or perhaps it is an issue with DrawImage() copying the source alpha channel to the dest rastport ?

Go to top



TopTop
« 1 ... 3 4 5 (6) 7 »




Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project