Who's Online
15 user(s) are online (
9 user(s) are browsing
Forums )
Members: 2
Guests: 13
emeck ,
MartinW ,
more...
Headlines
libmpg123.lha - development/library/audio
May 19, 2025
libsdl_mixer.lha - development/library/audio
May 19, 2025
arabic_console_devicepro2.lha - driver/input
May 19, 2025
reportplus.lha - utility/misc
May 19, 2025
amiarcadia.lha - emulation/gamesystem
May 18, 2025
libflac.lha - development/library/audio
May 16, 2025
libmikmod.lha - development/library/audio
May 16, 2025
retroarch_cores_installer.lha - emulation/gamesystem
May 16, 2025
libmodplug.lha - development/library/audio
May 13, 2025
libsdl2_mixer.lha - development/library/audio
May 13, 2025
Topic options
View mode
Newest First
Listbrowser background color
Posted on:
2009/5/13 18:43
#1
Supreme Council
Joined: 2006/11/16 19:25Last Login
: Today 19:19
From Sweden
Group:
Webmasters Moderators Staff members Staff members Moderators Staff members Staff members
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
Re: Listbrowser background color
Posted on:
2009/5/13 20:33
#2
Just can't stay away
Joined: 2006/11/30 11:30Last Login
: Today 20:06
From Finland
Group:
Registered Users
@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_APen , pen , TAG_END );
if ( hook ) {
/* ... */
ILayers -> DeleteBackFillHook ( hook );
}
Re: Listbrowser background color
Posted on:
2009/5/14 9:16
#3
Supreme Council
Joined: 2006/11/16 19:25Last Login
: Today 19:19
From Sweden
Group:
Webmasters Moderators Staff members Staff members Moderators Staff members Staff members
@salass00 Thanks, unfortunately the listbrowser remains dull gray. (GA_BackFill, myhook)
Edited by orgin on 2009/5/14 10:39:22
Vacca foeda. Sum, ergo edo Mr Bobo Cornwater
Re: Listbrowser background color
Posted on:
2009/5/14 10:32
#4
Amigans Defender
Joined: 2009/5/1 17:57Last Login
: Today 19:23
From Czech Republic
Group:
Registered Users Staff members Moderators
@orgin
Backfull or backfill?
Re: Listbrowser background color
Posted on:
2009/5/14 10:50
#5
Just can't stay away
Joined: 2006/11/30 11:30Last Login
: Today 20:06
From Finland
Group:
Registered Users
@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.
Re: Listbrowser background color
Posted on:
2009/5/14 10:59
#6
Home away from home
Joined: 2006/12/4 23:15Last Login
: Today 16:01
Group:
Registered Users
@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 ...
Re: Listbrowser background color
Posted on:
2009/5/14 11:06
#7
Supreme Council
Joined: 2006/11/16 19:25Last Login
: Today 19:19
From Sweden
Group:
Webmasters Moderators Staff members Staff members Moderators Staff members Staff members
@salass00 Okey, too bad, seems to me that the listbrowser gadget could use some major overhauling.
Vacca foeda. Sum, ergo edo Mr Bobo Cornwater
Re: Listbrowser background color
Posted on:
2009/5/14 11:08
#8
Supreme Council
Joined: 2006/11/16 19:25Last Login
: Today 19:19
From Sweden
Group:
Webmasters Moderators Staff members Staff members Moderators Staff members Staff members
@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
Re: Listbrowser background color
Posted on:
2009/5/14 11:10
#9
Home away from home
Joined: 2006/12/4 23:15Last Login
: Today 16:01
Group:
Registered Users
@orgin Oh yeah, hadn't though of the scroll bar angle, that makes my "hack" useless.
Re: Listbrowser background color
Posted on:
2009/5/14 11:15
#10
Home away from home
Joined: 2006/12/4 23:15Last Login
: Today 16:01
Group:
Registered Users
@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.
Re: Listbrowser background color
Posted on:
2009/5/14 17:08
#11
Not too shy to talk
Joined: 2006/11/26 17:45Last Login
: 5/16 14:45
Group:
Registered Users
@orgin
Quote:
orgin wrote: @salass00 Thanks, unfortunately the listbrowser remains dull gray. (GA_BackFill, myhook)Perhaps try REACTION_BackFill instead ?
Bye,
Thomas
Re: Listbrowser background color
Posted on:
2009/5/14 19:55
#12
Supreme Council
Joined: 2006/11/16 19:25Last Login
: Today 19:19
From Sweden
Group:
Webmasters Moderators Staff members Staff members Moderators Staff members Staff members
@thomas No difference.
Vacca foeda. Sum, ergo edo Mr Bobo Cornwater
Re: Listbrowser background color
Posted on:
2009/5/14 21:35
#13
Home away from home
Joined: 2006/12/4 23:15Last Login
: Today 16:01
Group:
Registered Users
@orgin does the background color of the containing object have any effect?
Re: Listbrowser background color
Posted on:
2009/5/14 21:44
#14
Supreme Council
Joined: 2006/11/16 19:25Last Login
: Today 19:19
From Sweden
Group:
Webmasters Moderators Staff members Staff members Moderators Staff members Staff members
@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
Currently Active Users Viewing This Thread:
1
(
0 members
and 1 Anonymous Users
)