realbasic-nug
[Top] [All Lists]

Re: CheckBox Background and ProgressBar fuctionality

To: <realbasic-nug@lists.realsoftware.com>
Subject: Re: CheckBox Background and ProgressBar fuctionality
From: Michael J. Hußmann <michael@michael-hussmann.de>
Date: Wed, 26 Nov 2008 17:27:35 +0100
Authentication-results: mx.google.com; spf=neutral (google.com: 74.124.194.228 is neither permitted nor denied by best guess record for domain of realbasic-nug-bounces@lists.realsoftware.com) smtp.mail=realbasic-nug-bounces@lists.realsoftware.com
Delivered-to: listarchive@realsoftware.com
In-reply-to: <mailman.1490.1227700250.25089.realbasic-nug@lists.realsoftware.com>
References: <mailman.1490.1227700250.25089.realbasic-nug@lists.realsoftware.com>
Reply-to: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Sender: realbasic-nug-bounces@lists.realsoftware.com
John Kouraklis <j_kour@hotmail.com> wrote:

> 1) I use a checkbox placed over a rectangular with a fill color. The strange
> this is that the checkbox is not transparent. I mean that I can see the
> boundaries of the checkbox having different color (that gray/silver from the
> OS) and I cant find a way to change the background color for this
> (rb2008r2,MacOS)

Composite windows do the trick, and for me, they work just fine. Maybe
I'm just lucky.

> 2) I have a lengthy procedure running and I am trying to use a progress bar
> (rb2008r1,WinXP). What happens is that the program runs but the user cant
> see the progress bar been updated because the window with the bar does not
> draw  it self. The program is busy with the procedure and the window is at
> an "Not Responding" state. After that I can see the bar full and the
> procedure to end
>
> Do I have to put it in a thread? But I don't want the user to do other
> things. He has to wait to finish. I have tried it with a timer but the same
> thing happens.

If you don't want to use a thread, calling self.UpdateNow after changing
the ProgressBar value will enforce the update. Don't update more often
than necessary.

- Michael


Michael J. Hußmann

E-mail: michael@michael-hussmann.de
WWW (personal): http://michael-hussmann.de
WWW (professional): http://digicam-experts.de


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>