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


Groups > comp.lang.clipper.visual-objects > #7283

Re: Show DataDialog and execute a method

From "Jamal" <someone@example.com>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: Show DataDialog and execute a method
Date 2014-10-09 12:03 -0400
Organization Aioe.org NNTP Server
Message-ID <m16bke$lpb$1@speranza.aioe.org> (permalink)
References <91332ea7-77f4-485c-b00d-7ca236f2fd7c@googlegroups.com> <m13k9b$8gn$1@speranza.aioe.org> <7bc686cb-ad53-4a24-8439-f3293319cdfe@googlegroups.com>

Show all headers | View raw


Paulo,

Yes, the Expose( ) callback method works but it is not the most efficient as 
it gets invoked automatically when a window requires repainting because it:

Is partially uncovered by another window
Is first shown
Increases in size
Is being restored after being iconized

I know you have:
"IF SELF:lShow
     SELF:lShow:=FALSE
"
However, the Show() method is only called once!

Your choice :)

Jamal

"Paulo Oliveira"  wrote in message 
news:7bc686cb-ad53-4a24-8439-f3293319cdfe@googlegroups.com...

METHOD Expose(oExposeEvent) CLASS dtdGerarDifInventario
LOCAL oBoundingBox AS BoundingBox
oBoundingBox := IIf(oExposeEvent == NULL_OBJECT, NULL_OBJECT, 
oExposeEvent:ExposedArea)
SUPER:Expose(oExposeEvent)
//Put your changes here
IF SELF:lShow
    SELF:lShow:=FALSE

    SELF:CriaMovimentosAcerto()

    SELF:oDCbBPositivas:Use(SELF:oabPositivos)
    SELF:oDCbBNegativas:Use(SELF:oabNegativos)
    ENDIF
RETURN NIL

This is what i done and works fine... for now.

Paulo 

Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Show DataDialog and execute a method Paulo Oliveira <paulo@clipinfor.com> - 2014-10-07 03:12 -0700
  Re: Show DataDialog and execute a method George Tritsos <GeorgeTritsos@yahoo.gr> - 2014-10-07 03:15 -0700
    Re: Show DataDialog and execute a method George Tritsos <GeorgeTritsos@yahoo.gr> - 2014-10-07 03:49 -0700
      Re: Show DataDialog and execute a method Paulo Oliveira <paulo@clipinfor.com> - 2014-10-07 04:22 -0700
  Re: Show DataDialog and execute a method D.J.W. van Kooten <vankooten@removethis.ic2.com> - 2014-10-07 15:14 +0200
  Re: Show DataDialog and execute a method Gunter <g.huebner@dsh-anklam.de> - 2014-10-08 06:36 -0700
  Re: Show DataDialog and execute a method "Jamal" <someone@example.com> - 2014-10-08 11:12 -0400
    Re: Show DataDialog and execute a method Paulo Oliveira <paulo@clipinfor.com> - 2014-10-09 06:38 -0700
      Re: Show DataDialog and execute a method "Jamal" <someone@example.com> - 2014-10-09 12:03 -0400
        Re: Show DataDialog and execute a method George Tritsos <GeorgeTritsos@yahoo.gr> - 2014-10-10 10:36 -0700

csiph-web