Hi everyone,
I have a text on the FXText widget. I''d like to color different
characters with different colors. By example, I want that an A be
painted with green, a B with blue, etc. How can I do this?
And I have a FXTable widget. I''d like to color the cells with
different colors, depending of its content.. The method setCellColor of
this class just let me color following the specified rules.
Waiting for help,
My very thanks!
-----------------------------------------
Ronaldo Rodrigues Ferreira
rrferreira at inf.ufrgs.br
Universidade Federal do Rio Grande do Sul
Instituto de Inform?tica
-----------------------------------------
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
On Friday 03 February 2006 13:31, Ronaldo Rodrigues Ferreira wrote:> Hi everyone, > > I have a text on the FXText widget. I''d like to color different > characters with different colors. By example, I want that an A be > painted with green, a B with blue, etc. How can I do this? > > And I have a FXTable widget. I''d like to color the cells with > different colors, depending of its content.. The method setCellColor of > this class just let me color following the specified rules. > > > > Waiting for help,Take a look at Adie. It uses FXText''s style buffer and style table. - Jeroen -- +----------------------------------------------------------------------------+ | Copyright (C) 21:00 02/ 5/2006 Jeroen van der Zijp. All Rights Reserved. | +----------------------------------------------------------------------------+
Hello,
I am writing an interface to a database. While the code is loading the
initial data, the program freezes for some 4 or 5 seconds. I would like to
inform the user that we are loading the data, so I use a little popup (the
code follows).
My problem is that the popup does not show as it should; the little
rectangle comes up, but instead of being filled with a label, it is filled
with the desktop background.
Any idea of how should I do?
class LoadingPopup
# Helper class showing a little popup with the given text
def initialize(app, text)
@text=text
@app= app
end
def show
@popup=FXPopup.new(@app.mainWindow) do |thePopup|
w=@app.mainWindow
frame=FXHorizontalFrame.new(thePopup)
FXLabel.new(frame, @text)
thePopup.create
thePopup.show
thePopup.popup(nil, w.x+w.width/2, w.y+w.height/2)
end
end
def hide
@popup.destroy
end
end
On 2/6/06, elKano <d.cano.lagneaux at gmail.com> wrote:> Hello, > I am writing an interface to a database. While the code is loading the > initial data, the program freezes for some 4 or 5 seconds. I would like to > inform the user that we are loading the data, so I use a little popup (the > code follows). > My problem is that the popup does not show as it should; the little > rectangle comes up, but instead of being filled with a label, it is filled > with the desktop background. > > Any idea of how should I do?loading the data in a different thread is a good idea. it gives the fox mainloop a chance to proceed with screenupdate. i had a similar problem and have done it this way, but fox still may need some time to update the screen. maybe calling thepopup.update after popping it may also help. others will correct me if i am wrong ;) hth, -- henon [snipped]