Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #2284 > unrolled thread

PushbuttonImage refresh

Started by"Jozo" <racunalo@os.t-com.hr>
First post2011-10-17 16:26 +0200
Last post2011-10-24 10:21 +0200
Articles 12 — 4 participants

Back to article view | Back to comp.lang.clipper.visual-objects


Contents

  PushbuttonImage refresh "Jozo" <racunalo@os.t-com.hr> - 2011-10-17 16:26 +0200
    Re: PushbuttonImage refresh "Francesco F." <francescangeli.f@tiscali.it> - 2011-10-17 17:50 +0200
      Re: PushbuttonImage refresh "Jozo" <racunalo@os.t-com.hr> - 2011-10-17 21:40 +0200
        Re: PushbuttonImage refresh "Francesco F." <francescangeli.f@tiscali.it> - 2011-10-18 08:08 +0200
          Re: PushbuttonImage refresh "Jozo" <racunalo@os.t-com.hr> - 2011-10-18 10:05 +0200
            Re: PushbuttonImage refresh Paulo Oliveira <paulo@clipinfor.com> - 2011-10-18 04:26 -0700
              Re: PushbuttonImage refresh "Jozo" <racunalo@os.t-com.hr> - 2011-10-18 15:26 +0200
            Re: PushbuttonImage refresh "Francesco F." <francescangeli.f@tiscali.it> - 2011-10-18 08:52 +0200
              Re: PushbuttonImage refresh "Jozo" <racunalo@os.t-com.hr> - 2011-10-18 15:30 +0200
        Re: PushbuttonImage refresh "Francesco F." <francescangeli.f@tiscali.it> - 2011-10-18 08:22 +0200
    Re: PushbuttonImage refresh Mathias <mathias.hakansson@consultec.se> - 2011-10-23 23:12 -0700
      Re: PushbuttonImage refresh "Jozo" <racunalo@os.t-com.hr> - 2011-10-24 10:21 +0200

#2284 — PushbuttonImage refresh

From"Jozo" <racunalo@os.t-com.hr>
Date2011-10-17 16:26 +0200
SubjectPushbuttonImage refresh
Message-ID<j7hdtt$2va$1@ss408.t-com.hr>
Hello all !

Does anybady knows how refresh change of pushbutton image without method 
Repaint

I use next code :

SELF:oCCPushButtonWait:Image := MyIconWait{}
SELF:Repaint()
 but may complete window flicks and that is not nicely

Jozo 

[toc] | [next] | [standalone]


#2285

From"Francesco F." <francescangeli.f@tiscali.it>
Date2011-10-17 17:50 +0200
Message-ID<j7hirr$fvk$1@news.albasani.net>
In reply to#2284
Hi Jozo,
I don't see why Repaint()...
Just oCCPushButtonWait:Image := MyIconWait{}, that's all.
I tried just now and it works perfectly in a DataWindow.
HTH,
Francesco




Il 17/10/2011 16:26, Jozo ha scritto:
> Hello all !
>
> Does anybady knows how refresh change of pushbutton image without method
> Repaint
>
> I use next code :
>
> SELF:oCCPushButtonWait:Image := MyIconWait{}
> SELF:Repaint()
>   but may complete window flicks and that is not nicely
>
> Jozo
>
>

[toc] | [prev] | [next] | [standalone]


#2286

From"Jozo" <racunalo@os.t-com.hr>
Date2011-10-17 21:40 +0200
Message-ID<j7i0cd$4u7$1@ss408.t-com.hr>
In reply to#2285
Francesco,

> I don't see why Repaint()...
I have only tried may problem because I can't to solve otherwise.

> Just oCCPushButtonWait:Image := MyIconWait{}, that's all.
Yes, but before running window. After that, in the runtime, that is not 
working we are expect. When we change icon (image) with this line, it is not 
happening. It is happening when we go with mouse over PushButton or press, 
for example, another pushbutton.
So, I would like know how to do that it will happen immediately.
I can to send the small example.

Jozo




"Francesco F." <francescangeli.f@tiscali.it> wrote in message 
news:j7hirr$fvk$1@news.albasani.net...
> Hi Jozo,
> I don't see why Repaint()...
> Just oCCPushButtonWait:Image := MyIconWait{}, that's all.
> I tried just now and it works perfectly in a DataWindow.
> HTH,
> Francesco
>
>
>
>
> Il 17/10/2011 16:26, Jozo ha scritto:
>> Hello all !
>>
>> Does anybady knows how refresh change of pushbutton image without method
>> Repaint
>>
>> I use next code :
>>
>> SELF:oCCPushButtonWait:Image := MyIconWait{}
>> SELF:Repaint()
>>   but may complete window flicks and that is not nicely
>>
>> Jozo
>>
>>
> 

[toc] | [prev] | [next] | [standalone]


#2288

From"Francesco F." <francescangeli.f@tiscali.it>
Date2011-10-18 08:08 +0200
Message-ID<j7j55p$3lj$1@news.albasani.net>
In reply to#2286
Jozo,
in my window I've two buttons, Delete and Exit; I wrote down that line 
into the Delete method in order to change the Exit button image when 
clicking "Delete":

METHOD Delete( ) CLASS AnagraficaArticoli
LOCAL oTB AS TextBox

// line added to test
oCCExitButton:Image := Stampa{}
//
oTB := TextBox{ NIL, "OPERAZIONE IRREVERSIBILE", "Confermi la 
cancellazione ?"}
oTB:Type := BOXICONQUESTIONMARK+BUTTONYESNO
IF (oTB:show() = BOXREPLYYES)
...................

and works fine.
I don't know if there's a Repaint() or something similar executing when 
clicking a button...
Let me see your example, I'll try it later, this afternoon.

Francesco



Il 17/10/2011 21:40, Jozo ha scritto:
> Francesco,
>
>> I don't see why Repaint()...
> I have only tried may problem because I can't to solve otherwise.
>
>> Just oCCPushButtonWait:Image := MyIconWait{}, that's all.
> Yes, but before running window. After that, in the runtime, that is not
> working we are expect. When we change icon (image) with this line, it is not
> happening. It is happening when we go with mouse over PushButton or press,
> for example, another pushbutton.
> So, I would like know how to do that it will happen immediately.
> I can to send the small example.
>
> Jozo
>
>
>
>
> "Francesco F."<francescangeli.f@tiscali.it>  wrote in message
> news:j7hirr$fvk$1@news.albasani.net...
>> Hi Jozo,
>> I don't see why Repaint()...
>> Just oCCPushButtonWait:Image := MyIconWait{}, that's all.
>> I tried just now and it works perfectly in a DataWindow.
>> HTH,
>> Francesco
>>
>>
>>
>>
>> Il 17/10/2011 16:26, Jozo ha scritto:
>>> Hello all !
>>>
>>> Does anybady knows how refresh change of pushbutton image without method
>>> Repaint
>>>
>>> I use next code :
>>>
>>> SELF:oCCPushButtonWait:Image := MyIconWait{}
>>> SELF:Repaint()
>>>    but may complete window flicks and that is not nicely
>>>
>>> Jozo
>>>
>>>
>>
>
>

[toc] | [prev] | [next] | [standalone]


#2290

From"Jozo" <racunalo@os.t-com.hr>
Date2011-10-18 10:05 +0200
Message-ID<j7jbvh$cqf$1@ss408.t-com.hr>
In reply to#2288
Francesco,

I tried sent the example on this mail francescangeli.f@tiscali.it but 
without success.
Btw
 SELF:oCCPb:Caption := "&Go"
 SELF:oCCPb:TooltipText := "Alt+G - Go !"
 SELF:oCCPb:Image := IconGo{}
third line doesn't work immediately, just after movement mouse over button 
whom I change icon or press once more this button or press another button.


Jozo

"Francesco F." <francescangeli.f@tiscali.it> wrote in message 
news:j7j55p$3lj$1@news.albasani.net...
> Jozo,
> in my window I've two buttons, Delete and Exit; I wrote down that line 
> into the Delete method in order to change the Exit button image when 
> clicking "Delete":
>
> METHOD Delete( ) CLASS AnagraficaArticoli
> LOCAL oTB AS TextBox
>
> // line added to test
> oCCExitButton:Image := Stampa{}
> //
> oTB := TextBox{ NIL, "OPERAZIONE IRREVERSIBILE", "Confermi la 
> cancellazione ?"}
> oTB:Type := BOXICONQUESTIONMARK+BUTTONYESNO
> IF (oTB:show() = BOXREPLYYES)
> ...................
>
> and works fine.
> I don't know if there's a Repaint() or something similar executing when 
> clicking a button...
> Let me see your example, I'll try it later, this afternoon.
>
> Francesco
>
>
>
> Il 17/10/2011 21:40, Jozo ha scritto:
>> Francesco,
>>
>>> I don't see why Repaint()...
>> I have only tried may problem because I can't to solve otherwise.
>>
>>> Just oCCPushButtonWait:Image := MyIconWait{}, that's all.
>> Yes, but before running window. After that, in the runtime, that is not
>> working we are expect. When we change icon (image) with this line, it is 
>> not
>> happening. It is happening when we go with mouse over PushButton or 
>> press,
>> for example, another pushbutton.
>> So, I would like know how to do that it will happen immediately.
>> I can to send the small example.
>>
>> Jozo
>>
>>
>>
>>
>> "Francesco F."<francescangeli.f@tiscali.it>  wrote in message
>> news:j7hirr$fvk$1@news.albasani.net...
>>> Hi Jozo,
>>> I don't see why Repaint()...
>>> Just oCCPushButtonWait:Image := MyIconWait{}, that's all.
>>> I tried just now and it works perfectly in a DataWindow.
>>> HTH,
>>> Francesco
>>>
>>>
>>>
>>>
>>> Il 17/10/2011 16:26, Jozo ha scritto:
>>>> Hello all !
>>>>
>>>> Does anybady knows how refresh change of pushbutton image without 
>>>> method
>>>> Repaint
>>>>
>>>> I use next code :
>>>>
>>>> SELF:oCCPushButtonWait:Image := MyIconWait{}
>>>> SELF:Repaint()
>>>>    but may complete window flicks and that is not nicely
>>>>
>>>> Jozo
>>>>
>>>>
>>>
>>
>>
> 

[toc] | [prev] | [next] | [standalone]


#2293

FromPaulo Oliveira <paulo@clipinfor.com>
Date2011-10-18 04:26 -0700
Message-ID<a6df20e1-0718-4aa0-8010-28364b5a3547@z26g2000yqh.googlegroups.com>
In reply to#2290
Hi Jozo,

I solve my problem with a dummy piece of code :)
Look this method

METHOD VerificaObs( ) CLASS dtwmanutEncomendasSovSQL
	LOCAL i,k AS SHORT
	LOCAL oabArrayServer AS bArrayServer
	LOCAL cTipText:="" AS STRING


	k:=SELF:oDCbBEncLinhas:Server:NR_LIN
	i:=AScanExact(oEnc:aEncLinObs,{|aVal| aVal[2] =k})
	IF i>0
		oabArrayServer:=SELF:oEnc:aEncLinObs[i,3]
		oabArrayServer:GoTop()
		IF !oabArrayServer:EoF
			oCCPBObs:Image := OBSS{}
			DO WHILE !oabArrayServer:EoF
				cTipText+=oabArrayServer:cTexto+CRLF
				oabArrayServer:Skip()
			ENDDO
		ELSE
			oCCPBObs:Image := OBSN{}
		ENDIF
	ELSE
		oCCPBObs:Image := OBSN{}
	ENDIF

        //DUMMY, BUT WORKS TO SHOW THE IMAGE
	IF SELF:oCCPBObs:IsEnabled()
		SELF:oCCPBObs:Disable()
		SELF:oCCPBObs:Enable()
	ELSE
		SELF:oCCPBObs:Enable()
		SELF:oCCPBObs:Disable()
	ENDIF
	SELF:oCCPBObs:ToolTipText:=cTipText

Paulo Oliveira

[toc] | [prev] | [next] | [standalone]


#2297

From"Jozo" <racunalo@os.t-com.hr>
Date2011-10-18 15:26 +0200
Message-ID<j7juph$m71$1@ss408.t-com.hr>
In reply to#2293
Bravo and thanks Paulo !

Very lucid and wily.

Jozo

"Paulo Oliveira" <paulo@clipinfor.com> wrote in message 
news:a6df20e1-0718-4aa0-8010-28364b5a3547@z26g2000yqh.googlegroups.com...
> Hi Jozo,
>
> I solve my problem with a dummy piece of code :)
> Look this method
>
> METHOD VerificaObs( ) CLASS dtwmanutEncomendasSovSQL
> LOCAL i,k AS SHORT
> LOCAL oabArrayServer AS bArrayServer
> LOCAL cTipText:="" AS STRING
>
>
> k:=SELF:oDCbBEncLinhas:Server:NR_LIN
> i:=AScanExact(oEnc:aEncLinObs,{|aVal| aVal[2] =k})
> IF i>0
> oabArrayServer:=SELF:oEnc:aEncLinObs[i,3]
> oabArrayServer:GoTop()
> IF !oabArrayServer:EoF
> oCCPBObs:Image := OBSS{}
> DO WHILE !oabArrayServer:EoF
> cTipText+=oabArrayServer:cTexto+CRLF
> oabArrayServer:Skip()
> ENDDO
> ELSE
> oCCPBObs:Image := OBSN{}
> ENDIF
> ELSE
> oCCPBObs:Image := OBSN{}
> ENDIF
>
>        //DUMMY, BUT WORKS TO SHOW THE IMAGE
> IF SELF:oCCPBObs:IsEnabled()
> SELF:oCCPBObs:Disable()
> SELF:oCCPBObs:Enable()
> ELSE
> SELF:oCCPBObs:Enable()
> SELF:oCCPBObs:Disable()
> ENDIF
> SELF:oCCPBObs:ToolTipText:=cTipText
>
> Paulo Oliveira
> 

[toc] | [prev] | [next] | [standalone]


#2295

From"Francesco F." <francescangeli.f@tiscali.it>
Date2011-10-18 08:52 +0200
Message-ID<j7jpv0$fst$1@news.albasani.net>
In reply to#2290
Jozo,
the mandatory thing to know is _from where_ you execute these 3 lines...
Francesco

Il 18/10/2011 10:05, Jozo ha scritto:
> Francesco,
>
> I tried sent the example on this mail francescangeli.f@tiscali.it but
> without success.
> Btw
>   SELF:oCCPb:Caption := "&Go"
>   SELF:oCCPb:TooltipText := "Alt+G - Go !"
>   SELF:oCCPb:Image := IconGo{}
> third line doesn't work immediately, just after movement mouse over button
> whom I change icon or press once more this button or press another button.
>
>
> Jozo
>
> "Francesco F."<francescangeli.f@tiscali.it>  wrote in message
> news:j7j55p$3lj$1@news.albasani.net...
>> Jozo,
>> in my window I've two buttons, Delete and Exit; I wrote down that line
>> into the Delete method in order to change the Exit button image when
>> clicking "Delete":
>>
>> METHOD Delete( ) CLASS AnagraficaArticoli
>> LOCAL oTB AS TextBox
>>
>> // line added to test
>> oCCExitButton:Image := Stampa{}
>> //
>> oTB := TextBox{ NIL, "OPERAZIONE IRREVERSIBILE", "Confermi la
>> cancellazione ?"}
>> oTB:Type := BOXICONQUESTIONMARK+BUTTONYESNO
>> IF (oTB:show() = BOXREPLYYES)
>> ...................
>>
>> and works fine.
>> I don't know if there's a Repaint() or something similar executing when
>> clicking a button...
>> Let me see your example, I'll try it later, this afternoon.
>>
>> Francesco
>>
>>
>>
>> Il 17/10/2011 21:40, Jozo ha scritto:
>>> Francesco,
>>>
>>>> I don't see why Repaint()...
>>> I have only tried may problem because I can't to solve otherwise.
>>>
>>>> Just oCCPushButtonWait:Image := MyIconWait{}, that's all.
>>> Yes, but before running window. After that, in the runtime, that is not
>>> working we are expect. When we change icon (image) with this line, it is
>>> not
>>> happening. It is happening when we go with mouse over PushButton or
>>> press,
>>> for example, another pushbutton.
>>> So, I would like know how to do that it will happen immediately.
>>> I can to send the small example.
>>>
>>> Jozo
>>>
>>>
>>>
>>>
>>> "Francesco F."<francescangeli.f@tiscali.it>   wrote in message
>>> news:j7hirr$fvk$1@news.albasani.net...
>>>> Hi Jozo,
>>>> I don't see why Repaint()...
>>>> Just oCCPushButtonWait:Image := MyIconWait{}, that's all.
>>>> I tried just now and it works perfectly in a DataWindow.
>>>> HTH,
>>>> Francesco
>>>>
>>>>
>>>>
>>>>
>>>> Il 17/10/2011 16:26, Jozo ha scritto:
>>>>> Hello all !
>>>>>
>>>>> Does anybady knows how refresh change of pushbutton image without
>>>>> method
>>>>> Repaint
>>>>>
>>>>> I use next code :
>>>>>
>>>>> SELF:oCCPushButtonWait:Image := MyIconWait{}
>>>>> SELF:Repaint()
>>>>>     but may complete window flicks and that is not nicely
>>>>>
>>>>> Jozo
>>>>>
>>>>>
>>>>
>>>
>>>
>>
>
>

[toc] | [prev] | [next] | [standalone]


#2298

From"Jozo" <racunalo@os.t-com.hr>
Date2011-10-18 15:30 +0200
Message-ID<j7jv2g$mu4$1@ss408.t-com.hr>
In reply to#2295
Franceso,

> the mandatory thing to know is _from where_ you execute these 3 lines...
In any method, for example method of Pushbutton, but Paulo Oliveira has 
simple but lucid solution.
Thank you very much for replies.

Jozo


"Francesco F." <francescangeli.f@tiscali.it> wrote in message 
news:j7jpv0$fst$1@news.albasani.net...
> Jozo,
> the mandatory thing to know is _from where_ you execute these 3 lines...
> Francesco
>
> Il 18/10/2011 10:05, Jozo ha scritto:
>> Francesco,
>>
>> I tried sent the example on this mail francescangeli.f@tiscali.it but
>> without success.
>> Btw
>>   SELF:oCCPb:Caption := "&Go"
>>   SELF:oCCPb:TooltipText := "Alt+G - Go !"
>>   SELF:oCCPb:Image := IconGo{}
>> third line doesn't work immediately, just after movement mouse over 
>> button
>> whom I change icon or press once more this button or press another 
>> button.
>>
>>
>> Jozo
>>
>> "Francesco F."<francescangeli.f@tiscali.it>  wrote in message
>> news:j7j55p$3lj$1@news.albasani.net...
>>> Jozo,
>>> in my window I've two buttons, Delete and Exit; I wrote down that line
>>> into the Delete method in order to change the Exit button image when
>>> clicking "Delete":
>>>
>>> METHOD Delete( ) CLASS AnagraficaArticoli
>>> LOCAL oTB AS TextBox
>>>
>>> // line added to test
>>> oCCExitButton:Image := Stampa{}
>>> //
>>> oTB := TextBox{ NIL, "OPERAZIONE IRREVERSIBILE", "Confermi la
>>> cancellazione ?"}
>>> oTB:Type := BOXICONQUESTIONMARK+BUTTONYESNO
>>> IF (oTB:show() = BOXREPLYYES)
>>> ...................
>>>
>>> and works fine.
>>> I don't know if there's a Repaint() or something similar executing when
>>> clicking a button...
>>> Let me see your example, I'll try it later, this afternoon.
>>>
>>> Francesco
>>>
>>>
>>>
>>> Il 17/10/2011 21:40, Jozo ha scritto:
>>>> Francesco,
>>>>
>>>>> I don't see why Repaint()...
>>>> I have only tried may problem because I can't to solve otherwise.
>>>>
>>>>> Just oCCPushButtonWait:Image := MyIconWait{}, that's all.
>>>> Yes, but before running window. After that, in the runtime, that is not
>>>> working we are expect. When we change icon (image) with this line, it 
>>>> is
>>>> not
>>>> happening. It is happening when we go with mouse over PushButton or
>>>> press,
>>>> for example, another pushbutton.
>>>> So, I would like know how to do that it will happen immediately.
>>>> I can to send the small example.
>>>>
>>>> Jozo
>>>>
>>>>
>>>>
>>>>
>>>> "Francesco F."<francescangeli.f@tiscali.it>   wrote in message
>>>> news:j7hirr$fvk$1@news.albasani.net...
>>>>> Hi Jozo,
>>>>> I don't see why Repaint()...
>>>>> Just oCCPushButtonWait:Image := MyIconWait{}, that's all.
>>>>> I tried just now and it works perfectly in a DataWindow.
>>>>> HTH,
>>>>> Francesco
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> Il 17/10/2011 16:26, Jozo ha scritto:
>>>>>> Hello all !
>>>>>>
>>>>>> Does anybady knows how refresh change of pushbutton image without
>>>>>> method
>>>>>> Repaint
>>>>>>
>>>>>> I use next code :
>>>>>>
>>>>>> SELF:oCCPushButtonWait:Image := MyIconWait{}
>>>>>> SELF:Repaint()
>>>>>>     but may complete window flicks and that is not nicely
>>>>>>
>>>>>> Jozo
>>>>>>
>>>>>>
>>>>>
>>>>
>>>>
>>>
>>
>>
> 

[toc] | [prev] | [next] | [standalone]


#2289

From"Francesco F." <francescangeli.f@tiscali.it>
Date2011-10-18 08:22 +0200
Message-ID<j7j5v1$5a0$1@news.albasani.net>
In reply to#2286
Jozo,
in the meantime I made more tests, placing the line into EditFocusChange 
and ListBoxSelect methods and the image change happens flawlessly from 
both, no flickering at all.
HTH,
Francesco

Il 17/10/2011 21:40, Jozo ha scritto:
> Francesco,
>
>> I don't see why Repaint()...
> I have only tried may problem because I can't to solve otherwise.
>
>> Just oCCPushButtonWait:Image := MyIconWait{}, that's all.
> Yes, but before running window. After that, in the runtime, that is not
> working we are expect. When we change icon (image) with this line, it is not
> happening. It is happening when we go with mouse over PushButton or press,
> for example, another pushbutton.
> So, I would like know how to do that it will happen immediately.
> I can to send the small example.
>
> Jozo
>
>
>
>
> "Francesco F."<francescangeli.f@tiscali.it>  wrote in message
> news:j7hirr$fvk$1@news.albasani.net...
>> Hi Jozo,
>> I don't see why Repaint()...
>> Just oCCPushButtonWait:Image := MyIconWait{}, that's all.
>> I tried just now and it works perfectly in a DataWindow.
>> HTH,
>> Francesco
>>
>>
>>
>>
>> Il 17/10/2011 16:26, Jozo ha scritto:
>>> Hello all !
>>>
>>> Does anybady knows how refresh change of pushbutton image without method
>>> Repaint
>>>
>>> I use next code :
>>>
>>> SELF:oCCPushButtonWait:Image := MyIconWait{}
>>> SELF:Repaint()
>>>    but may complete window flicks and that is not nicely
>>>
>>> Jozo
>>>
>>>
>>
>
>

[toc] | [prev] | [next] | [standalone]


#2314

FromMathias <mathias.hakansson@consultec.se>
Date2011-10-23 23:12 -0700
Message-ID<28892858.1798.1319436774984.JavaMail.geo-discussion-forums@yqjh13>
In reply to#2284
Have you tried self:oCCPushButtonEait:Repaint(). Only the pushbutton should flicker now...

/Mathias

[toc] | [prev] | [next] | [standalone]


#2315

From"Jozo" <racunalo@os.t-com.hr>
Date2011-10-24 10:21 +0200
Message-ID<j83769$l3$1@ss408.t-com.hr>
In reply to#2314
I have now tried to do your instruction and works ! Simple, isn't ! I did 
not see the wood from the forest because there is not in methods in help in 
Pushbutton Class (and Button-Textcontrol-Control).

Thank you Mathias

"Mathias" <mathias.hakansson@consultec.se> wrote in message 
news:28892858.1798.1319436774984.JavaMail.geo-discussion-forums@yqjh13...
> Have you tried self:oCCPushButtonEait:Repaint(). Only the pushbutton 
> should flicker now...
>
> /Mathias
> 

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.clipper.visual-objects


csiph-web