Floattext Inner Background

Discuss GUI programming with the MUI Royale plugin here
Post Reply
djrikki
Posts: 682
Joined: Wed Apr 06, 2011 12:26 am

Floattext Inner Background

Post by djrikki »

Hello, I'll ask anyway even though it doesn't appear to be possible/supported.

I want the inner background to be off-White too, not Grey, like shown in this Code box :lol:

Code: Select all

	<floattext id="log-gui" font="tiny" background="groupback"></floattext>
Image
Evolve - Rapid GUI Development tool for MUI Royale and RapaGUI
http://myevolve.wordpress.com
User avatar
airsoftsoftwair
Posts: 5443
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Floattext Inner Background

Post by airsoftsoftwair »

It's certainly against the MUI styleguide to hard-code background colours because you don't know the MUI settings. The Area.Background tag should work, though. Thore?
djrikki
Posts: 682
Joined: Wed Apr 06, 2011 12:26 am

Re: Floattext Inner Background

Post by djrikki »

Oh that does work but doesn't have the desired effect, it colours the outer frame.
Evolve - Rapid GUI Development tool for MUI Royale and RapaGUI
http://myevolve.wordpress.com
User avatar
tboeckel
Posts: 38
Joined: Fri Jun 06, 2014 6:17 am
Location: Germany

Re: Floattext Inner Background

Post by tboeckel »

I cannot tell why the custom background is applied to the wrong object, but all subclasses of List.mui set their background internally to either MUII_ListBack or MUII_ReadListBack. As Andreas already said this is something that should not be changed, as it contradicts the consistency of what the user has configured. However, if a custom background is really required then it is possible to set a different one after the object has been created. But you must make sure to set the background for the list object and not for a possibly existing surrounding listview object. With MUI4 Listview.mui is no longer required to display the embedded list and if it is used all attributes and methods of Listview.mui are directly passed to the embedded list object. But this does not apply to general attributes of Area.mui like MUIA_Background.
User avatar
airsoftsoftwair
Posts: 5443
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Floattext Inner Background

Post by airsoftsoftwair »

But you must make sure to set the background for the list object and not for a possibly existing surrounding listview object.
Ok, then it's not possible with MUI Royale because it always uses the listview object when calling any methods or using Set() or Get().

Edit: Since djrikki might wonder why we're talking about listview objects here at all: That's how Floattext is implemented in MUI. A floattext object is basically a read-only listview object.
Post Reply