Search found 13 matches: diffeence

Return to advanced search

Re: Diffeence between oSay:SetText() and oSay:VarPut()

What is the status?
Best regrards,
Otto
by Otto
Mon Jan 30, 2012 2:29 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Diffeence between oSay:SetText() and oSay:VarPut()
Replies: 12
Views: 3465

Re: Diffeence between oSay:SetText() and oSay:VarPut()

Mr.Antonio or any Seniors of this forum,

Can you please confirm that the above given change in the METHOD SetText() of CLASS SAY does not effect other functionality of the SAY.
OR
Is this problem already solved in the latest FWH versions

Regards
Anser
by anserkk
Tue Jan 26, 2010 2:42 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Diffeence between oSay:SetText() and oSay:VarPut()
Replies: 12
Views: 3465

Re: Diffeence between oSay:SetText() and oSay:VarPut()

anserkk wrote: May be some seniors here would be able to confirm it.

:D
Mr. Antonio.. Please..!!

Regards
Fafi
by fafi
Thu Jan 21, 2010 12:25 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Diffeence between oSay:SetText() and oSay:VarPut()
Replies: 12
Views: 3465

Re: Diffeence between oSay:SetText() and oSay:VarPut()

Dear Mr.Fafi, The following 1 line code on the SAY code is working fine. This will force the oSay:Refresh() to work as expected (update the Text change in the Say Object) I don't know whether this would cause some other problem in the CLASS SAY. May be some seniors here would be able to confirm it. ...
by anserkk
Thu Jan 21, 2010 10:59 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Diffeence between oSay:SetText() and oSay:VarPut()
Replies: 12
Views: 3465

Re: Diffeence between oSay:SetText() and oSay:VarPut()

Dear Mr.Fafi, You are right. Value in ::bGet is assigned only during initialization and via Method VarPut() Your solution on SAY class works fine. METHOD SetText( cText ) CLASS TSay ....if !empty(alltrim(::cCaption))  // add by fafi    SetWindowText( ::hWnd, ::cCaption &#...
by anserkk
Thu Jan 21, 2010 10:38 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Diffeence between oSay:SetText() and oSay:VarPut()
Replies: 12
Views: 3465

Re: Diffeence between oSay:SetText() and oSay:VarPut()

Dear Sir.. >> 1) Click SetText() (Works fine) >> 2) Click VarPut() (works Fine) >> 3) Click SetText() ( Says are not updated ) because the last var is : "Complete the Test" look at this : METHOD Refresh() INLINE If( ::bGet != nil, ::SetText( Eval( ::bG...
by fafi
Thu Jan 21, 2010 8:38 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Diffeence between oSay:SetText() and oSay:VarPut()
Replies: 12
Views: 3465

Re: Diffeence between oSay:SetText() and oSay:VarPut()

Dear Mr.Fafi, Modified the SAY Class as per your suggestion. These are my observations after implementing the suggested change on the SAY Class If I run the " SetText() " before running the " VarPut() ", it is updating the SAY properly. Once I run "Test No:1 VarPut()" t...
by anserkk
Thu Jan 21, 2010 7:45 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Diffeence between oSay:SetText() and oSay:VarPut()
Replies: 12
Views: 3465

Re: Diffeence between oSay:SetText() and oSay:VarPut()

Dear Mr. Anser Please ! change class say.prg : METHOD SetText( cText ) CLASS TSay   local hDC   if empty(cText)  // add by fafi       return nil   endif   DEFAULT ::lTransparent := .f.   ::cCaption := If( ...
by fafi
Thu Jan 21, 2010 5:46 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Diffeence between oSay:SetText() and oSay:VarPut()
Replies: 12
Views: 3465

Re: Diffeence between oSay:SetText() and oSay:VarPut()

Dear Mr.James, At last I am able to create a sample which shows the problem which I have explained above. I am experiencing the same problem in my real app. Please run this code to see the problem. There are 2 buttons available to do the test. Test 1 : Uses oSay:VarPut() Test 2 : Uses oSay:SetText()...
by anserkk
Thu Jan 21, 2010 5:31 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Diffeence between oSay:SetText() and oSay:VarPut()
Replies: 12
Views: 3465

Re: Diffeence between oSay:SetText() and oSay:VarPut()

Anser,

If you look at the souce for SetText() and VarPut() you will see that SetText() handles redrawing the background also. Perhaps it is an issue with this that is the problem, especially if you are using a bitmap or brush background and have transparent text.

Regards,
James
by James Bott
Wed Jan 20, 2010 5:44 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Diffeence between oSay:SetText() and oSay:VarPut()
Replies: 12
Views: 3465

Re: Diffeence between oSay:SetText() and oSay:VarPut()

Dear Mr.James,

I have used oSay:SetText("New Value") in my application prg's. In this forum, by mistake I typed oSay:SetText:="some text". :oops:

I tried sysrefresh() too.

Regards
Anser
by anserkk
Wed Jan 20, 2010 5:35 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Diffeence between oSay:SetText() and oSay:VarPut()
Replies: 12
Views: 3465

Re: Diffeence between oSay:SetText() and oSay:VarPut()

Anser,

Have you tried a sysRefresh()?

Also, this syntax:

oSay:SetText:="Started Process 1"

Should be:

oSay:SetText("Started Process 1")

James
by James Bott
Wed Jan 20, 2010 5:11 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Diffeence between oSay:SetText() and oSay:VarPut()
Replies: 12
Views: 3465

Diffeence between oSay:SetText() and oSay:VarPut()

Hi, I am having a peculiar problem with the update of the Tsay object. I am passing a SAY object as parameter to different functions. The say object is supposed to show the status of my different routines on a MDI Child Window. I tried oSay:SetText("New Value of the Satus")  // Doe...
by anserkk
Wed Jan 20, 2010 12:06 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Diffeence between oSay:SetText() and oSay:VarPut()
Replies: 12
Views: 3465

Return to advanced search