Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
143 user(s) are online (112 user(s) are browsing Forums)

Members: 2
Guests: 141

trixie, flash, more...

Headlines

 
  Register To Post  

Listbrowser background color
Supreme Council
Supreme Council


See User information
Is there a way to set a listbrowser gadgets' background color? Preferably by just specifying a pen.

If you reply "backfill hook", be prepared to provide a complete hook function example or don't reply at all ;)

And no, the reaction backfill example in the SDK is of no use.

Vacca foeda. Sum, ergo edo

Mr Bobo Cornwater
Go to top
Re: Listbrowser background color
Just can't stay away
Just can't stay away


See User information
@orgin

For such simple backfill patterns you can use ILayers->CreateBackFillHook() to create the backfill hook.

int pen;
struct Hook *hook;
hook ILayers->CreateBackFillHook(BFHA_APenpenTAG_END);
if (
hook) {
    
/* ... */
    
ILayers->DeleteBackFillHook(hook);
}

Go to top
Re: Listbrowser background color
Supreme Council
Supreme Council


See User information
@salass00

Thanks, unfortunately the listbrowser remains dull gray. (GA_BackFill, myhook)


Edited by orgin on 2009/5/14 11:39:22
Vacca foeda. Sum, ergo edo

Mr Bobo Cornwater
Go to top
Re: Listbrowser background color
Amigans Defender
Amigans Defender


See User information
@orgin

Backfull or backfill?

Go to top
Re: Listbrowser background color
Just can't stay away
Just can't stay away


See User information
@orgin

The following simple program which uses CreateBackFillHook works correctly so it appears that the problem is at the listbrowser end:
http://www.a500.org/downloads/development/backfill_example.lha

IIRC it's possible that the GA_BackFill is only used for background areas that are around the listbrowser, like the area between the listbrowser and the scroller gadget if you let listbrowser create it for you.

Go to top
Re: Listbrowser background color
Home away from home
Home away from home


See User information
@orgin

Which part of the listbrowser are you haveing problems with?

The extra area when the list is "too short"? Perhaps you could populate it with blank nodes?


Edit: Or one big node that fill the remaining space and apply a backfill hook to that?

Hacky solution I know, but ...

Go to top
Re: Listbrowser background color
Supreme Council
Supreme Council


See User information
@salass00

Okey, too bad, seems to me that the listbrowser gadget could use some major overhauling.

Vacca foeda. Sum, ergo edo

Mr Bobo Cornwater
Go to top
Re: Listbrowser background color
Supreme Council
Supreme Council


See User information
@broadblues

"The extra area when the list is "too short"? Perhaps you could populate it with blank nodes?"

That would just create a whole set of other problems, resizing, and new nodes, scrollbars etc. I'm trying to avoid ugly workarounds.

Vacca foeda. Sum, ergo edo

Mr Bobo Cornwater
Go to top
Re: Listbrowser background color
Home away from home
Home away from home


See User information
@orgin

Oh yeah, hadn't though of the scroll bar angle, that makes my "hack" useless.

Go to top
Re: Listbrowser background color
Home away from home
Home away from home


See User information
@broadblues

i notice workbemch windows in name mode suffer from the same problem. It is a little ugly, but not the end of the world.

Go to top
Re: Listbrowser background color
Not too shy to talk
Not too shy to talk


See User information
@orgin

Quote:

orgin wrote:
@salass00

Thanks, unfortunately the listbrowser remains dull gray. (GA_BackFill, myhook)


Perhaps try REACTION_BackFill instead ?

Bye,
Thomas

Go to top
Re: Listbrowser background color
Supreme Council
Supreme Council


See User information
@thomas

No difference.

Vacca foeda. Sum, ergo edo

Mr Bobo Cornwater
Go to top
Re: Listbrowser background color
Home away from home
Home away from home


See User information
@orgin

does the background color of the containing object have any effect?

Go to top
Re: Listbrowser background color
Supreme Council
Supreme Council


See User information
@broadblues

All of the space is used by the gadget so it's not possible to see.

Vacca foeda. Sum, ergo edo

Mr Bobo Cornwater
Go to top

  Register To Post

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project