U++ framework - RDF feed
type: channel
description: Do not panic. Ask here before giving up.
items: Colored text in Button
items: Re: Colored text in Button

Colored text in Button
type: item
description: Hello, I need to change the color of the text associated to a Button. I cannot find a simple way to do it. Is it supposed to use Chameleon for this task? Thanks, Luigi
creator: forlano
date: 2024-07-23T12:33:11-00:00

Re: Colored text in Button
type: item
description: Hello Forlano, I think there IS a dedicated method for text color (i can't check right now). But you Can Always use QTF text to display whatever you wan't) All you have to do IS start you're text with thé QTF escape sequence: "\1". (I'm not dure if it's thé right séquence)
creator: Didier
date: 2024-07-25T09:08:42-00:00

Re: Colored text in Button
type: item
description: Didier wrote on Thu, 25 July 2024 11:08 Hello Forlano, All you have to do IS start you're text with thé QTF escape sequence: "\1". (I'm not dure if it's thé right séquence) Thank you. It works. This set a centered red label l = "\1[@6= " << label << "]"; btn.SetLabel(l); Luigi
creator: forlano
date: 2024-07-26T08:08:26-00:00