Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - arturo.tramontini

#1
I would add to the edit box a different text color when they are enabled or disabled.
there is an easy way to add this property to editbox?
(only with the application program, without touching the library TGUI v0.7)

I saw that if the edit boxes are added to a panel, these inherit the enabled / disabled state of the panel.

However, they do not have a visual indication of this state.

currently, I change the color of text one by one.



I saw that you can make a class that inherits the EditBox and add a method (for example add ebxC ())

The compilation does not give error.
But I do not know if / or how it can be added to a panel.

if there was a simple solution and you give me an example I would be grateful.
Anyway thank you very much.

Arturo

(translated from Italian by Google)
#2
    i have the following code:
   
   
   tgui::ListBox::Ptr listBox =  theme->load("ListBox");
    listBox->setPosition(10, 240);
    listBox->setSize(410-10, 420);
    listBox->setItemHeight(16);
    gui.add(listBox);
   
   
   how can i change TextColor Normal and Hover ?
   i see that there is a getRenderer()  and a ListBoxRenderer()
   but i'm not be able to use it because of my lack in knowledge of c++ syntax.
   
   if possible, can you help me with a little example for how change colors?
   (for example making normal text color black  and hover white)