On Thu, 13 Nov 2003, Stephen Brown wrote: > I thought I'd managed to understand the colourdbox but now I'm totally > confused. > If it's any help I'm using RiscOS 3.7 with the modules: > ColourDbox version = 0.23 > ColourPicker version = 0.39 > > In my program I have a simple menu setup as follows: > > Main Menu > --------- > File -> > Edit -> -- Edit Menu > Quit --------- > Foreground Colour -> Foreground Colour Dialogue > Background Colour -> Background Colour Dialogue > > The component id for Foreground colour within the edit menu is 0x100 > The component id for Background colour within the edit menu is 0x101 > I have two separate objects, one for foreground and one for background > colour defined in the resources file. > > Tests carried out: > > 1) Follow menu option Foreground Colour > -> AboutToBeShown event detected, parent component reported as 0x100 Which I assume means that you have 'About to be shown' set in the dialogue flags. > 2) Select Colour and click OK > -> ColourSelected event detected, parent component reported as 0x100 > -> Dialogue Completed event detected Which I assume means that you have 'When hidden' set in the dialogue flags. I /assume/ from the fact that you've got the completed event that you clicked with Select, not adjust. > 3) Follow menu option Background Colour > -> AboutToBeShown event detected, parent component reported as 0x101 > 2) Select Colour and click OK > -> ColourSelected event detected, parent component reported as 0x100 > ??? (expected 0x101) > -> Dialogue Complete event detected I'm making too many assumptions here to draw any real conclusions - you should either describe exactly what you have or put the Res file up somewhere so that it can be looked at with exactly what you have. However, I've managed to reproduce it here, so it looks like a bug - Example file to be used with ResTest with the above instructions can be found at : http://homepage.ntlworld.com/justin.fletcher/Usenet/Toolbox/ColourDBox/ (I've rationalised a little bit of my site, so if you've referred to things in the root of that area then they'll now be in 'Usenet' instead. Not that there's much, but the CGuide is probably useful to someone). -- Gerph ...