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


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

Blinking Icon

Started by"Jozo" <racunalo@os.t-com.hr>
First post2011-11-07 14:09 +0100
Last post2011-11-08 19:55 +0100
Articles 8 — 3 participants

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


Contents

  Blinking Icon "Jozo" <racunalo@os.t-com.hr> - 2011-11-07 14:09 +0100
    Re: Blinking Icon "Stephen Quinn" <stevejqNO@bigpondSPAM.net.au> - 2011-11-08 00:45 +1100
      Re: Blinking Icon "Jozo" <racunalo@os.t-com.hr> - 2011-11-07 16:56 +0100
        Re: Blinking Icon "Urs Eggmann" <Urs.Eggmann@shinternet.ch> - 2011-11-07 21:31 +0100
        Re: Blinking Icon "Urs Eggmann" <Urs.Eggmann@shinternet.ch> - 2011-11-08 01:44 +0100
        Re: Blinking Icon "Urs Eggmann" <Urs.Eggmann@shinternet.ch> - 2011-11-08 11:23 +0100
          Re: Blinking Icon "Jozo" <racunalo@os.t-com.hr> - 2011-11-08 18:38 +0100
            Re: Blinking Icon "Urs Eggmann" <Urs.Eggmann@shinternet.ch> - 2011-11-08 19:55 +0100

#2378 — Blinking Icon

From"Jozo" <racunalo@os.t-com.hr>
Date2011-11-07 14:09 +0100
SubjectBlinking Icon
Message-ID<j98lb4$s3o$1@ss408.t-com.hr>
Hi all !

Does anybody help me create blinking icon in bBrowser.
Namely, I have a column that contains the icons and I would like an icon 
flashes or changes such as its two states, such as eye open and closes.
Is it in general possible ?

Jozo 

[toc] | [next] | [standalone]


#2379

From"Stephen Quinn" <stevejqNO@bigpondSPAM.net.au>
Date2011-11-08 00:45 +1100
Message-ID<cgRtq.5411$NR2.1295@viwinnwfe01.internal.bigpond.com>
In reply to#2378
Jozo

Look up AutoRefresh() into bBrowser help
May suit may not<g>

CYA
Steve 

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


#2380

From"Jozo" <racunalo@os.t-com.hr>
Date2011-11-07 16:56 +0100
Message-ID<j98v3v$h6n$1@ss408.t-com.hr>
In reply to#2379
Although "AutoRefresh" is very useful that's not what I wanted.

I wish that my icon (in cell of bBrowser) is flashing (for example pulsing,
something like an animation).
I have for example the window where I use a timer with two icons, one small
and one large. When they are alternately displayed, it looks as the icon is
pulsing.
Here is the code:

CLASS MyWindow  INHERIT DataWindow
...
 PROTECT oIcoSmall AS Icon
 PROTECT oIcoBig  AS Icon

METHOD PostInit(oWindow,iCtlID,oServer,uExtra) CLASS MyWindow
 oIcoSmall := IcoSmall{}
 oIcoBig := IcoBig{}
 SELF:IconSm:= oIcoSmall
 SetTimer(SELF:Handle(), IDT_ICONCHANGE, 1000, NULL_PTR)
 RETURN NIL

METHOD Dispatch(oEvent) CLASS MyWindow
 IF (oEvent:uMsg == WM_TIMER) .and. (oEvent:wParam == IDT_ICONCHANGE)
       IF (SELF:IconSm == oIcoBig)
             SELF:IconSm := oIcoSmall
        ELSE
           SELF:IconSm := oIcoBig
      ENDIF
 ENDIF
 RETURN SUPER:Dispatch(oEvent)

So, this example is only for window where I just wanted to explain what I
want.

Jozo

----- Original Message ----- 
From: "Stephen Quinn" <stevejqNO@bigpondSPAM.net.au>
Newsgroups: comp.lang.clipper.visual-objects
Sent: Monday, November 07, 2011 2:45 PM
Subject: Re: Blinking Icon


> Jozo
>
> Look up AutoRefresh() into bBrowser help
> May suit may not<g>
>
> CYA
> Steve
>
> 

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


#2381

From"Urs Eggmann" <Urs.Eggmann@shinternet.ch>
Date2011-11-07 21:31 +0100
Message-ID<9hqtgjFa6lU1@mid.individual.net>
In reply to#2380
Hi Jozo,

In my App "BlinkingIcon" it is not really a icon but a bitmap, that is shown
alternatively in a custom control.
The bitmaps are defined in a array, so you can show more than two blink
states. My provider does not allow binaries, please use the download link
from the homepage of the usergroup Bodensee:
www.voug-bodensee.net/zip-download/demoblinkingicon.zip

Have fun!
regards
Urs

"Jozo" <racunalo@os.t-com.hr> schrieb im Newsbeitrag
news:j98v3v$h6n$1@ss408.t-com.hr...
> Although "AutoRefresh" is very useful that's not what I wanted.
>
> I wish that my icon (in cell of bBrowser) is flashing (for example
> pulsing,
> something like an animation).
> I have for example the window where I use a timer with two icons, one
> small
> and one large. When they are alternately displayed, it looks as the icon
> is
> pulsing.
> Here is the code:
>
> CLASS MyWindow  INHERIT DataWindow
> ...
> PROTECT oIcoSmall AS Icon
> PROTECT oIcoBig  AS Icon
>
> METHOD PostInit(oWindow,iCtlID,oServer,uExtra) CLASS MyWindow
> oIcoSmall := IcoSmall{}
> oIcoBig := IcoBig{}
> SELF:IconSm:= oIcoSmall
> SetTimer(SELF:Handle(), IDT_ICONCHANGE, 1000, NULL_PTR)
> RETURN NIL
>
> METHOD Dispatch(oEvent) CLASS MyWindow
> IF (oEvent:uMsg == WM_TIMER) .and. (oEvent:wParam == IDT_ICONCHANGE)
>       IF (SELF:IconSm == oIcoBig)
>             SELF:IconSm := oIcoSmall
>        ELSE
>           SELF:IconSm := oIcoBig
>      ENDIF
> ENDIF
> RETURN SUPER:Dispatch(oEvent)
>
> So, this example is only for window where I just wanted to explain what I
> want.
>
> Jozo
>
> ----- Original Message ----- 
> From: "Stephen Quinn" <stevejqNO@bigpondSPAM.net.au>
> Newsgroups: comp.lang.clipper.visual-objects
> Sent: Monday, November 07, 2011 2:45 PM
> Subject: Re: Blinking Icon
>
>
>> Jozo
>>
>> Look up AutoRefresh() into bBrowser help
>> May suit may not<g>
>>
>> CYA
>> Steve
>>
>>
>

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


#2383

From"Urs Eggmann" <Urs.Eggmann@shinternet.ch>
Date2011-11-08 01:44 +0100
Message-ID<9hrcbeFvnbU1@mid.individual.net>
In reply to#2380
Hi Jozo,

Sorry, I didn't read cared´fully. I'm working on a better sample. Give me 
some hours...
Urs

"Jozo" <racunalo@os.t-com.hr> schrieb im Newsbeitrag 
news:j98v3v$h6n$1@ss408.t-com.hr...
> Although "AutoRefresh" is very useful that's not what I wanted.
>
> I wish that my icon (in cell of bBrowser) is flashing (for example 
> pulsing,
> something like an animation).
> I have for example the window where I use a timer with two icons, one 
> small
> and one large. When they are alternately displayed, it looks as the icon 
> is
> pulsing.
> Here is the code:
>
> CLASS MyWindow  INHERIT DataWindow
> ...
> PROTECT oIcoSmall AS Icon
> PROTECT oIcoBig  AS Icon
>
> METHOD PostInit(oWindow,iCtlID,oServer,uExtra) CLASS MyWindow
> oIcoSmall := IcoSmall{}
> oIcoBig := IcoBig{}
> SELF:IconSm:= oIcoSmall
> SetTimer(SELF:Handle(), IDT_ICONCHANGE, 1000, NULL_PTR)
> RETURN NIL
>
> METHOD Dispatch(oEvent) CLASS MyWindow
> IF (oEvent:uMsg == WM_TIMER) .and. (oEvent:wParam == IDT_ICONCHANGE)
>       IF (SELF:IconSm == oIcoBig)
>             SELF:IconSm := oIcoSmall
>        ELSE
>           SELF:IconSm := oIcoBig
>      ENDIF
> ENDIF
> RETURN SUPER:Dispatch(oEvent)
>
> So, this example is only for window where I just wanted to explain what I
> want.
>
> Jozo
>
> ----- Original Message ----- 
> From: "Stephen Quinn" <stevejqNO@bigpondSPAM.net.au>
> Newsgroups: comp.lang.clipper.visual-objects
> Sent: Monday, November 07, 2011 2:45 PM
> Subject: Re: Blinking Icon
>
>
>> Jozo
>>
>> Look up AutoRefresh() into bBrowser help
>> May suit may not<g>
>>
>> CYA
>> Steve
>>
>>
> 

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


#2390

From"Urs Eggmann" <Urs.Eggmann@shinternet.ch>
Date2011-11-08 11:23 +0100
Message-ID<9hse8iFm3qU1@mid.individual.net>
In reply to#2380
Hi Jozo,

I have modified a inherited bBrowser to show a blinking icon in a additional 
column, depending on a logical value of a certain field.
I have used parts of the code in Joachims standard sample for showing icons, 
combined with a timer.
You can download the sample (Adjust path for dbf-file) at:
www.voug-bodensee.net/zip-download/demoblinkingicon-2.zip

regards
Urs

"Jozo" <racunalo@os.t-com.hr> schrieb im Newsbeitrag 
news:j98v3v$h6n$1@ss408.t-com.hr...
> Although "AutoRefresh" is very useful that's not what I wanted.
>
> I wish that my icon (in cell of bBrowser) is flashing (for example 
> pulsing,
> something like an animation).
> I have for example the window where I use a timer with two icons, one 
> small
> and one large. When they are alternately displayed, it looks as the icon 
> is
> pulsing.
> Here is the code:
>
> CLASS MyWindow  INHERIT DataWindow
> ...
> PROTECT oIcoSmall AS Icon
> PROTECT oIcoBig  AS Icon
>
> METHOD PostInit(oWindow,iCtlID,oServer,uExtra) CLASS MyWindow
> oIcoSmall := IcoSmall{}
> oIcoBig := IcoBig{}
> SELF:IconSm:= oIcoSmall
> SetTimer(SELF:Handle(), IDT_ICONCHANGE, 1000, NULL_PTR)
> RETURN NIL
>
> METHOD Dispatch(oEvent) CLASS MyWindow
> IF (oEvent:uMsg == WM_TIMER) .and. (oEvent:wParam == IDT_ICONCHANGE)
>       IF (SELF:IconSm == oIcoBig)
>             SELF:IconSm := oIcoSmall
>        ELSE
>           SELF:IconSm := oIcoBig
>      ENDIF
> ENDIF
> RETURN SUPER:Dispatch(oEvent)
>
> So, this example is only for window where I just wanted to explain what I
> want.
>
> Jozo
>
> ----- Original Message ----- 
> From: "Stephen Quinn" <stevejqNO@bigpondSPAM.net.au>
> Newsgroups: comp.lang.clipper.visual-objects
> Sent: Monday, November 07, 2011 2:45 PM
> Subject: Re: Blinking Icon
>
>
>> Jozo
>>
>> Look up AutoRefresh() into bBrowser help
>> May suit may not<g>
>>
>> CYA
>> Steve
>>
>>
> 

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


#2393

From"Jozo" <racunalo@os.t-com.hr>
Date2011-11-08 18:38 +0100
Message-ID<j9bpf3$khk$1@ss408.t-com.hr>
In reply to#2390
Hi Urs,
thank you for your great idea with a supplement:

Your code covers two states (logic field SINGLE = TRUE or FALSE), :
IF SELF:LShowIcon
    oColumn := bDataColumn{SELF ,SELF:oServer, {|Server, oicoImage1, 
oicoImage2| IIF(Server:SINGLE, oicoImage1, oicoImage2)}, #Expression, 
oImage, NULL_OBJECT}
    ...
    SELF:LShowIcon := FALSE
ELSE
    oColumn := bDataColumn{SELF ,SELF:oServer, {|Server, oicoImage1, 
oicoImage2| IIF(Server:SINGLE, oicoImage1, oicoImage2)}, #Expression, 
NULL_OBJECT , NULL_OBJECT }
    ....
    SELF:LShowIcon := TRUE
ENDIF

I wanted more, where one icon is blinking and others do not blink,  for 
example charachter field SEX (M, F, C):
IF SELF:LShowIcon
    bDataColumn{SELF ,SELF:oServer, {|Server, oImg1, oImg2, oImg3| 
IIF(Server:SEX="F", oImg1, Iif(Server:SEX="M",oImg2, oImg3))}, #Expression, 
oImg1, oImg2, oImg3}    ...
    SELF:LShowIcon := FALSE
ELSE
    oColumn := bDataColumn{SELF ,SELF:oServer, {|Server, oImg1, oImg2, 
oImg3| IIF(Server:SEX="F", NULL_OBJECT, Iif(Server:SEX="M",oImg2, oImg3))}, 
#Expression, oImg1, oImg2, oImg3  }
    ....
    SELF:LShowIcon := TRUE
ENDIF

Finally, such a simple code, and I struggled all day.
I would hope to Brian and Joachim easily solved.

Thank you again for your responses and efforts

Jozo


"Urs Eggmann" <Urs.Eggmann@shinternet.ch> wrote in message 
news:9hse8iFm3qU1@mid.individual.net...
> Hi Jozo,
>
> I have modified a inherited bBrowser to show a blinking icon in a 
> additional column, depending on a logical value of a certain field.
> I have used parts of the code in Joachims standard sample for showing 
> icons, combined with a timer.
> You can download the sample (Adjust path for dbf-file) at:
> www.voug-bodensee.net/zip-download/demoblinkingicon-2.zip
>
> regards
> Urs
>
> "Jozo" <racunalo@os.t-com.hr> schrieb im Newsbeitrag 
> news:j98v3v$h6n$1@ss408.t-com.hr...
>> Although "AutoRefresh" is very useful that's not what I wanted.
>>
>> I wish that my icon (in cell of bBrowser) is flashing (for example 
>> pulsing,
>> something like an animation).
>> I have for example the window where I use a timer with two icons, one 
>> small
>> and one large. When they are alternately displayed, it looks as the icon 
>> is
>> pulsing.
>> Here is the code:
>>
>> CLASS MyWindow  INHERIT DataWindow
>> ...
>> PROTECT oIcoSmall AS Icon
>> PROTECT oIcoBig  AS Icon
>>
>> METHOD PostInit(oWindow,iCtlID,oServer,uExtra) CLASS MyWindow
>> oIcoSmall := IcoSmall{}
>> oIcoBig := IcoBig{}
>> SELF:IconSm:= oIcoSmall
>> SetTimer(SELF:Handle(), IDT_ICONCHANGE, 1000, NULL_PTR)
>> RETURN NIL
>>
>> METHOD Dispatch(oEvent) CLASS MyWindow
>> IF (oEvent:uMsg == WM_TIMER) .and. (oEvent:wParam == IDT_ICONCHANGE)
>>       IF (SELF:IconSm == oIcoBig)
>>             SELF:IconSm := oIcoSmall
>>        ELSE
>>           SELF:IconSm := oIcoBig
>>      ENDIF
>> ENDIF
>> RETURN SUPER:Dispatch(oEvent)
>>
>> So, this example is only for window where I just wanted to explain what I
>> want.
>>
>> Jozo
>>
>> ----- Original Message ----- 
>> From: "Stephen Quinn" <stevejqNO@bigpondSPAM.net.au>
>> Newsgroups: comp.lang.clipper.visual-objects
>> Sent: Monday, November 07, 2011 2:45 PM
>> Subject: Re: Blinking Icon
>>
>>
>>> Jozo
>>>
>>> Look up AutoRefresh() into bBrowser help
>>> May suit may not<g>
>>>
>>> CYA
>>> Steve
>>>
>>>
>>
>
> 

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


#2394

From"Urs Eggmann" <Urs.Eggmann@shinternet.ch>
Date2011-11-08 19:55 +0100
Message-ID<9htc9cFklkU1@mid.individual.net>
In reply to#2393
Hi Jozo,
Thanks for your feed back!
It was fun, from midnight to three in teh morning, while sleepless, to try a 
solution for yout problem....
Regards
Urs


"Jozo" <racunalo@os.t-com.hr> schrieb im Newsbeitrag 
news:j9bpf3$khk$1@ss408.t-com.hr...
> Hi Urs,
> thank you for your great idea with a supplement:
>
> Your code covers two states (logic field SINGLE = TRUE or FALSE), :
> IF SELF:LShowIcon
>    oColumn := bDataColumn{SELF ,SELF:oServer, {|Server, oicoImage1, 
> oicoImage2| IIF(Server:SINGLE, oicoImage1, oicoImage2)}, #Expression, 
> oImage, NULL_OBJECT}
>    ...
>    SELF:LShowIcon := FALSE
> ELSE
>    oColumn := bDataColumn{SELF ,SELF:oServer, {|Server, oicoImage1, 
> oicoImage2| IIF(Server:SINGLE, oicoImage1, oicoImage2)}, #Expression, 
> NULL_OBJECT , NULL_OBJECT }
>    ....
>    SELF:LShowIcon := TRUE
> ENDIF
>
> I wanted more, where one icon is blinking and others do not blink,  for 
> example charachter field SEX (M, F, C):
> IF SELF:LShowIcon
>    bDataColumn{SELF ,SELF:oServer, {|Server, oImg1, oImg2, oImg3| 
> IIF(Server:SEX="F", oImg1, Iif(Server:SEX="M",oImg2, oImg3))}, 
> #Expression, oImg1, oImg2, oImg3}    ...
>    SELF:LShowIcon := FALSE
> ELSE
>    oColumn := bDataColumn{SELF ,SELF:oServer, {|Server, oImg1, oImg2, 
> oImg3| IIF(Server:SEX="F", NULL_OBJECT, Iif(Server:SEX="M",oImg2, 
> oImg3))}, #Expression, oImg1, oImg2, oImg3  }
>    ....
>    SELF:LShowIcon := TRUE
> ENDIF
>
> Finally, such a simple code, and I struggled all day.
> I would hope to Brian and Joachim easily solved.
>
> Thank you again for your responses and efforts
>
> Jozo
>
>
> "Urs Eggmann" <Urs.Eggmann@shinternet.ch> wrote in message 
> news:9hse8iFm3qU1@mid.individual.net...
>> Hi Jozo,
>>
>> I have modified a inherited bBrowser to show a blinking icon in a 
>> additional column, depending on a logical value of a certain field.
>> I have used parts of the code in Joachims standard sample for showing 
>> icons, combined with a timer.
>> You can download the sample (Adjust path for dbf-file) at:
>> www.voug-bodensee.net/zip-download/demoblinkingicon-2.zip
>>
>> regards
>> Urs
>>
>> "Jozo" <racunalo@os.t-com.hr> schrieb im Newsbeitrag 
>> news:j98v3v$h6n$1@ss408.t-com.hr...
>>> Although "AutoRefresh" is very useful that's not what I wanted.
>>>
>>> I wish that my icon (in cell of bBrowser) is flashing (for example 
>>> pulsing,
>>> something like an animation).
>>> I have for example the window where I use a timer with two icons, one 
>>> small
>>> and one large. When they are alternately displayed, it looks as the icon 
>>> is
>>> pulsing.
>>> Here is the code:
>>>
>>> CLASS MyWindow  INHERIT DataWindow
>>> ...
>>> PROTECT oIcoSmall AS Icon
>>> PROTECT oIcoBig  AS Icon
>>>
>>> METHOD PostInit(oWindow,iCtlID,oServer,uExtra) CLASS MyWindow
>>> oIcoSmall := IcoSmall{}
>>> oIcoBig := IcoBig{}
>>> SELF:IconSm:= oIcoSmall
>>> SetTimer(SELF:Handle(), IDT_ICONCHANGE, 1000, NULL_PTR)
>>> RETURN NIL
>>>
>>> METHOD Dispatch(oEvent) CLASS MyWindow
>>> IF (oEvent:uMsg == WM_TIMER) .and. (oEvent:wParam == IDT_ICONCHANGE)
>>>       IF (SELF:IconSm == oIcoBig)
>>>             SELF:IconSm := oIcoSmall
>>>        ELSE
>>>           SELF:IconSm := oIcoBig
>>>      ENDIF
>>> ENDIF
>>> RETURN SUPER:Dispatch(oEvent)
>>>
>>> So, this example is only for window where I just wanted to explain what 
>>> I
>>> want.
>>>
>>> Jozo
>>>
>>> ----- Original Message ----- 
>>> From: "Stephen Quinn" <stevejqNO@bigpondSPAM.net.au>
>>> Newsgroups: comp.lang.clipper.visual-objects
>>> Sent: Monday, November 07, 2011 2:45 PM
>>> Subject: Re: Blinking Icon
>>>
>>>
>>>> Jozo
>>>>
>>>> Look up AutoRefresh() into bBrowser help
>>>> May suit may not<g>
>>>>
>>>> CYA
>>>> Steve
>>>>
>>>>
>>>
>>
>>
>
> 

[toc] | [prev] | [standalone]


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


csiph-web