AutoRefresh when

This forum is for eXpress++ general support.
Message
Author
bwolfsohn
Posts: 649
Joined: Thu Jan 28, 2010 7:07 am
Location: Alachua, Florida USA
Contact:

Re: AutoRefresh when

#11 Post by bwolfsohn »

how would i know ??

oops.. thought that was roger asking me...
Brian Wolfsohn
Retired and traveling around the country to music festivals in my RV.
OOPS.. Corona Virus, so NOT traveling right now...
http://www.breadmanrises.com
FB travel group: The Breadman Rises

User avatar
rdonnay
Site Admin
Posts: 4813
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: AutoRefresh when

#12 Post by rdonnay »

Please run with the below dclipx.dll. (Build 258 pre-release).

It has debugging.

http://donnay-software.com:8080/donnay/dclipx.zip

Code: Select all

METHOD DC_XbpBrowse:handleEvent( nEvent, mp1, mp2 )

IF nEvent == DCGUI_EVENT_BROWSE_REFRESH

wtf ::refreshWhenBlock, ::refreshBlock

  IF ::isVisible()
    IF Empty(::refreshWhenBlock) .OR. Eval(::refreshWhenBlock)

wtf 'so refreshing'

      IF Valtype(::refreshBlock) == 'B'
        Eval(::refreshBlock,self)
      ELSE
        ::Refresh()
      ENDIF
    ENDIF
  ENDIF
ELSE
  RETURN ::XbpbrowseHandleEvent( nEvent, mp1, mp2 )
ENDIF
RETURN self
The eXpress train is coming - and it has more cars.

bwolfsohn
Posts: 649
Joined: Thu Jan 28, 2010 7:07 am
Location: Alachua, Florida USA
Contact:

Re: AutoRefresh when

#13 Post by bwolfsohn »

::refreshwhenblock is nil
::refreshblock is {||.t.}
and so refreshing is displaying.,

the browse itself, is not refreshing.

when i remove the when clause, the browse refreshes

and the debugger shows:
::refreshwhenblock is nil
::refreshblock is nil
and so refreshing is displaying.,
Brian Wolfsohn
Retired and traveling around the country to music festivals in my RV.
OOPS.. Corona Virus, so NOT traveling right now...
http://www.breadmanrises.com
FB travel group: The Breadman Rises

User avatar
rdonnay
Site Admin
Posts: 4813
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: AutoRefresh when

#14 Post by rdonnay »

It looks like the refreshBlock and refreshWhenBlock are reversed.

I'll look into this.
The eXpress train is coming - and it has more cars.

User avatar
rdonnay
Site Admin
Posts: 4813
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: AutoRefresh when

#15 Post by rdonnay »

New dclipx.dll at http://donnay-software.com:8080/donnay/dclipx.zip

---------------- New to 1.9 (build 258) ----------

1233. Fixed a problem with the REFRESHBLOCK .. WHEN clauses of @ .. DCBROWSE
being reversed and not working correctly.
The eXpress train is coming - and it has more cars.

bwolfsohn
Posts: 649
Joined: Thu Jan 28, 2010 7:07 am
Location: Alachua, Florida USA
Contact:

Re: AutoRefresh when

#16 Post by bwolfsohn »

works great... thanks..

as always..
Brian Wolfsohn
Retired and traveling around the country to music festivals in my RV.
OOPS.. Corona Virus, so NOT traveling right now...
http://www.breadmanrises.com
FB travel group: The Breadman Rises

Post Reply