Re: REDRAW WINDOW not working v17?

2019-01-06 Thread Alan Tilson via 4D_Tech
Hello Chip,
Thank you for your response and I must not have been clear in the other
thread. Don't know why the thread got split?
I did try some On Timer approaches but not yours exactly.
But for me HIGHLIGHT RECORDS works by itself as a replacement for REDRAW
WINDOW!
Very simple and apparently pretty efficient.
Cheers!
Alan

On Sun, Jan 6, 2019 at 10:07 AM Chip Scheide <4d_o...@pghrepository.org>
wrote:

> Alan,
> try:
> On Click or On Data change (for your boolean)
>   set timer(1)  or some other small value
>
> in the form method, On Timer
> call process(current process)
> or Call Process(-1)
>
> Chip
> > Hello again Bernd,
> >
> > I tried several other things but never got anything to work other than my
> > original code. I even tried setting a timer and running your code there,
> > but it still didn't redraw each line of the display.
> >
> > Thanks again,
> > Alan
> >
> > On Thu, Jan 3, 2019 at 5:37 AM Alan Tilson  wrote:
> >
> >> Hello Bernd,
> >>
> >> Your solution seemed much more elegant than mine, which was to cut and
> use
> >> a named selection, but for some reason it doesn't work for me. The
> boolean
> >> variable that I'm clicking on goes grey and nothing else changes. If I
> >> click another window and come back the boolean and the rows do update.
> >>
> >> Any ideas about what might be different?
> >>
> >> I tried HIDE WINDOW / SHOW WINDOW which caused a flicker but not a
> redraw
> >> as did HIDE PROCESS / SHOW PROCESS.
> >>
> >> I also tried Open Window / CLOSE WINDOW... didn't work.
> >>
> >> This does work with some side effects, especially if the user has
> scrolled
> >> down...
> >>
> >> CUT NAMED SELECTION(Current form table->;"tempNS")
> >> USE NAMED SELECTION("tempNS")
> >> HIGHLIGHT RECORDS
> >>
> >>
> >> Thanks from North Carolina,
> >> Alan Tilson
> >>
> >> On Thu, Jan 3, 2019 at 2:18 AM Bernd Fröhlich via 4D_Tech <
> >> 4d_tech@lists.4d.com> wrote:
> >>
> >>> Alan Tilson:
> >>>
>  Has anyone had issues with REDRAW WINDOW working differently or not
> >>> working
>  in v17? I have an output form with a boolean variable in the header
> that
>  affects the text color of the fields in each line of output as well as
>  determining which of a few optional fields are displayed. If I call
> >>> REDRAW
>  WINDOW after changing the boolean variable the records list does not
>  change. If I click on another window and come back to the original
> >>> window
>  everything updates.
> 
>  This worked fine in v13.
> 
>  Am I missing something?
> >>>
> >>> 4D V6 or V7 was the last version where REDRAW WINDOW was redrawing the
> >>> whole window, then 4D began to "optimize" the redrawing. Maybe it
> >>> is faster
> >>> now, but it definitely is no longer working as expected.
> >>> My workaround:
> >>>
> >>>   // Methode: RedrawWindow
> >>>   // Angelegt: BF 16.09.03
> >>>   // Objekt: Dienstroutine
> >>>   // Beschreibung: Umgehung für das seit 4D 2003 nicht mehr zuverlässig
> >>> funktionierende Redraw Window
> >>>   // 
> >>>
> >>> C_LONGINT($lLeft;$lTop;$lRight;$lBottom)
> >>>
> >>> GET WINDOW RECT($lLeft;$lTop;$lRight;$lBottom)
> >>> SET WINDOW RECT($lLeft;$lTop;$lRight-1;$lBottom)
> >>> SET WINDOW RECT($lLeft;$lTop;$lRight;$lBottom)
> >>>
> >>>
> >>> Gives a short flicker, but is the only way I know of to actually
> redraw a
> >>> window.
> >>> Maybe someone else has found another solution without the flicker?
> >>>
> >>> Greetings from Germany,
> >>> Bernd Fröhlich
> >>> **
> >>> 4D Internet Users Group (4D iNUG)
> >>> Archive:  http://lists.4d.com/archives.html
> >>> Options: https://lists.4d.com/mailman/options/4d_tech
> >>> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> >>> **
> >>
> >>
> > **
> > 4D Internet Users Group (4D iNUG)
> > Archive:  http://lists.4d.com/archives.html
> > Options: https://lists.4d.com/mailman/options/4d_tech
> > Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> > **
> 
> Hell is other people
>  Jean-Paul Sartre
>
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: REDRAW WINDOW not working v17?

2019-01-06 Thread Alan Tilson via 4D_Tech
Hello everyone,
Thank you for your responses and I must not have been clear.
But HIGHLIGHT RECORDS works for me by itself as a replacement for REDRAW
WINDOW!
Very simple and apparently pretty efficient.
Cheers from Asheville, NC, USA!
Alan

On Fri, Jan 4, 2019 at 12:16 PM Robert McKeever via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> Have you tried GOTO PAGE(x) where x is the current page number?
>
> > On Jan 3, 2019, at 4:28 PM, Alan Tilson via 4D_Tech <
> 4d_tech@lists.4d.com> wrote:
> >
> > Hello Keisuke,
> >
> > Windows, 32 & 64 bit, although most of my experience is 64 bit.
> >
> > Yes, I reference the variable in on display detail.
> >
> > For me REDRAW WINDOW was for special cases when you wanted everything
> > reloaded/recalculated. To make is so that it doesn't fire on display
> detail
> > seems pretty strange. What does it do?
> >
> > And YES! HIGHLIGHT RECORDS does work by itself!
> >
> > Much appreciated,
> > Alan Tilson
> >
> >
> >
> > On Thu, Jan 3, 2019 at 7:11 PM Keisuke Miyako via 4D_Tech <
> > 4d_tech@lists.4d.com> wrote:
> >
> >> a few pieces of information would be appreciated:
> >>
> >> - is this Mac or Windows?
> >> - is this 64-bit only?
> >>
> >> I guess you reference the variable in your On Display Detail,
> >> but that event doesn't fire unless the detail area needs to be redrawn
> >> (activated, deactivated, selection changed).
> >>
> >> that was always the premise,
> >> although it sounds like v13 was not optimised enough to not reevaluate
> the
> >> lines after every click event (On Display Detail is very expensive).
> >>
> >> regarding your workaround code,
> >> would not a simple HIGHLIGHT RECORDS(Current form table->;"UserSet";*)
> >> suffice without the named selection stuff?
> >>
> >> 2019/01/03 0:30、Alan Tilson via 4D_Tech <4d_tech@lists.4d.com >> 4d_tech@lists.4d.com>>のメール:
> >> Am I missing something?
> >>
> >>
> >>
> >> **
> >> 4D Internet Users Group (4D iNUG)
> >> Archive:  http://lists.4d.com/archives.html
> >> Options: https://lists.4d.com/mailman/options/4d_tech
> >> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> >> **
> > **
> > 4D Internet Users Group (4D iNUG)
> > Archive:  http://lists.4d.com/archives.html
> > Options: https://lists.4d.com/mailman/options/4d_tech
> > Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> > **
>
> _
> Bob McKeever  http://www.mswl.com <
> http://www.mswl.com/>
> McKeever's Software Wizardry
> Port Coquitlam, B.C.
> bobmckee...@mac.com
>
>
>
>
> **
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: REDRAW WINDOW not working v17?

2019-01-06 Thread Chip Scheide via 4D_Tech
Alan,
try:
On Click or On Data change (for your boolean)
  set timer(1)  or some other small value

in the form method, On Timer
call process(current process)
or Call Process(-1)

Chip
> Hello again Bernd,
> 
> I tried several other things but never got anything to work other than my
> original code. I even tried setting a timer and running your code there,
> but it still didn't redraw each line of the display.
> 
> Thanks again,
> Alan
> 
> On Thu, Jan 3, 2019 at 5:37 AM Alan Tilson  wrote:
> 
>> Hello Bernd,
>> 
>> Your solution seemed much more elegant than mine, which was to cut and use
>> a named selection, but for some reason it doesn't work for me. The boolean
>> variable that I'm clicking on goes grey and nothing else changes. If I
>> click another window and come back the boolean and the rows do update.
>> 
>> Any ideas about what might be different?
>> 
>> I tried HIDE WINDOW / SHOW WINDOW which caused a flicker but not a redraw
>> as did HIDE PROCESS / SHOW PROCESS.
>> 
>> I also tried Open Window / CLOSE WINDOW... didn't work.
>> 
>> This does work with some side effects, especially if the user has scrolled
>> down...
>> 
>> CUT NAMED SELECTION(Current form table->;"tempNS")
>> USE NAMED SELECTION("tempNS")
>> HIGHLIGHT RECORDS
>> 
>> 
>> Thanks from North Carolina,
>> Alan Tilson
>> 
>> On Thu, Jan 3, 2019 at 2:18 AM Bernd Fröhlich via 4D_Tech <
>> 4d_tech@lists.4d.com> wrote:
>> 
>>> Alan Tilson:
>>> 
 Has anyone had issues with REDRAW WINDOW working differently or not
>>> working
 in v17? I have an output form with a boolean variable in the header that
 affects the text color of the fields in each line of output as well as
 determining which of a few optional fields are displayed. If I call
>>> REDRAW
 WINDOW after changing the boolean variable the records list does not
 change. If I click on another window and come back to the original
>>> window
 everything updates.
 
 This worked fine in v13.
 
 Am I missing something?
>>> 
>>> 4D V6 or V7 was the last version where REDRAW WINDOW was redrawing the
>>> whole window, then 4D began to "optimize" the redrawing. Maybe it 
>>> is faster
>>> now, but it definitely is no longer working as expected.
>>> My workaround:
>>> 
>>>   // Methode: RedrawWindow
>>>   // Angelegt: BF 16.09.03
>>>   // Objekt: Dienstroutine
>>>   // Beschreibung: Umgehung für das seit 4D 2003 nicht mehr zuverlässig
>>> funktionierende Redraw Window
>>>   // 
>>> 
>>> C_LONGINT($lLeft;$lTop;$lRight;$lBottom)
>>> 
>>> GET WINDOW RECT($lLeft;$lTop;$lRight;$lBottom)
>>> SET WINDOW RECT($lLeft;$lTop;$lRight-1;$lBottom)
>>> SET WINDOW RECT($lLeft;$lTop;$lRight;$lBottom)
>>> 
>>> 
>>> Gives a short flicker, but is the only way I know of to actually redraw a
>>> window.
>>> Maybe someone else has found another solution without the flicker?
>>> 
>>> Greetings from Germany,
>>> Bernd Fröhlich
>>> **
>>> 4D Internet Users Group (4D iNUG)
>>> Archive:  http://lists.4d.com/archives.html
>>> Options: https://lists.4d.com/mailman/options/4d_tech
>>> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
>>> **
>> 
>> 
> **
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **

Hell is other people 
 Jean-Paul Sartre
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: REDRAW WINDOW not working v17?

2019-01-04 Thread Robert McKeever via 4D_Tech
Have you tried GOTO PAGE(x) where x is the current page number?

> On Jan 3, 2019, at 4:28 PM, Alan Tilson via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Hello Keisuke,
> 
> Windows, 32 & 64 bit, although most of my experience is 64 bit.
> 
> Yes, I reference the variable in on display detail.
> 
> For me REDRAW WINDOW was for special cases when you wanted everything
> reloaded/recalculated. To make is so that it doesn't fire on display detail
> seems pretty strange. What does it do?
> 
> And YES! HIGHLIGHT RECORDS does work by itself!
> 
> Much appreciated,
> Alan Tilson
> 
> 
> 
> On Thu, Jan 3, 2019 at 7:11 PM Keisuke Miyako via 4D_Tech <
> 4d_tech@lists.4d.com> wrote:
> 
>> a few pieces of information would be appreciated:
>> 
>> - is this Mac or Windows?
>> - is this 64-bit only?
>> 
>> I guess you reference the variable in your On Display Detail,
>> but that event doesn't fire unless the detail area needs to be redrawn
>> (activated, deactivated, selection changed).
>> 
>> that was always the premise,
>> although it sounds like v13 was not optimised enough to not reevaluate the
>> lines after every click event (On Display Detail is very expensive).
>> 
>> regarding your workaround code,
>> would not a simple HIGHLIGHT RECORDS(Current form table->;"UserSet";*)
>> suffice without the named selection stuff?
>> 
>> 2019/01/03 0:30、Alan Tilson via 4D_Tech <4d_tech@lists.4d.com> 4d_tech@lists.4d.com>>のメール:
>> Am I missing something?
>> 
>> 
>> 
>> **
>> 4D Internet Users Group (4D iNUG)
>> Archive:  http://lists.4d.com/archives.html
>> Options: https://lists.4d.com/mailman/options/4d_tech
>> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
>> **
> **
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **

_
Bob McKeever  http://www.mswl.com 
McKeever's Software Wizardry
Port Coquitlam, B.C.
bobmckee...@mac.com




**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: REDRAW WINDOW not working v17?

2019-01-03 Thread Bernd Fröhlich via 4D_Tech
Alan Tilson:

> Hello again Bernd,
>
> I tried several other things but never got anything to work other than my
> original code.

Hi Alan,

sorry, I´m out of ideas.
If my workaround doesn´t help try to contact 4D.
Maybe someday we get a working REDRAW WINDOW command again...

Greetings from Germany,
Bernd Fröhlich
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: REDRAW WINDOW not working v17?

2019-01-03 Thread Alan Tilson via 4D_Tech
Hello Keisuke,

Windows, 32 & 64 bit, although most of my experience is 64 bit.

Yes, I reference the variable in on display detail.

For me REDRAW WINDOW was for special cases when you wanted everything
reloaded/recalculated. To make is so that it doesn't fire on display detail
seems pretty strange. What does it do?

And YES! HIGHLIGHT RECORDS does work by itself!

Much appreciated,
Alan Tilson



On Thu, Jan 3, 2019 at 7:11 PM Keisuke Miyako via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> a few pieces of information would be appreciated:
>
> - is this Mac or Windows?
> - is this 64-bit only?
>
> I guess you reference the variable in your On Display Detail,
> but that event doesn't fire unless the detail area needs to be redrawn
> (activated, deactivated, selection changed).
>
> that was always the premise,
> although it sounds like v13 was not optimised enough to not reevaluate the
> lines after every click event (On Display Detail is very expensive).
>
> regarding your workaround code,
> would not a simple HIGHLIGHT RECORDS(Current form table->;"UserSet";*)
> suffice without the named selection stuff?
>
> 2019/01/03 0:30、Alan Tilson via 4D_Tech <4d_tech@lists.4d.com 4d_tech@lists.4d.com>>のメール:
> Am I missing something?
>
>
>
> **
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: REDRAW WINDOW not working v17?

2019-01-03 Thread Keisuke Miyako via 4D_Tech
a few pieces of information would be appreciated:

- is this Mac or Windows?
- is this 64-bit only?

I guess you reference the variable in your On Display Detail,
but that event doesn't fire unless the detail area needs to be redrawn 
(activated, deactivated, selection changed).

that was always the premise,
although it sounds like v13 was not optimised enough to not reevaluate the 
lines after every click event (On Display Detail is very expensive).

regarding your workaround code,
would not a simple HIGHLIGHT RECORDS(Current form table->;"UserSet";*) suffice 
without the named selection stuff?

2019/01/03 0:30、Alan Tilson via 4D_Tech 
<4d_tech@lists.4d.com>のメール:
Am I missing something?



**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: REDRAW WINDOW not working v17?

2019-01-03 Thread Alan Tilson via 4D_Tech
Hello again Bernd,

I tried several other things but never got anything to work other than my
original code. I even tried setting a timer and running your code there,
but it still didn't redraw each line of the display.

Thanks again,
Alan

On Thu, Jan 3, 2019 at 5:37 AM Alan Tilson  wrote:

> Hello Bernd,
>
> Your solution seemed much more elegant than mine, which was to cut and use
> a named selection, but for some reason it doesn't work for me. The boolean
> variable that I'm clicking on goes grey and nothing else changes. If I
> click another window and come back the boolean and the rows do update.
>
> Any ideas about what might be different?
>
> I tried HIDE WINDOW / SHOW WINDOW which caused a flicker but not a redraw
> as did HIDE PROCESS / SHOW PROCESS.
>
> I also tried Open Window / CLOSE WINDOW... didn't work.
>
> This does work with some side effects, especially if the user has scrolled
> down...
>
> CUT NAMED SELECTION(Current form table->;"tempNS")
> USE NAMED SELECTION("tempNS")
> HIGHLIGHT RECORDS
>
>
> Thanks from North Carolina,
> Alan Tilson
>
> On Thu, Jan 3, 2019 at 2:18 AM Bernd Fröhlich via 4D_Tech <
> 4d_tech@lists.4d.com> wrote:
>
>> Alan Tilson:
>>
>> > Has anyone had issues with REDRAW WINDOW working differently or not
>> working
>> > in v17? I have an output form with a boolean variable in the header that
>> > affects the text color of the fields in each line of output as well as
>> > determining which of a few optional fields are displayed. If I call
>> REDRAW
>> > WINDOW after changing the boolean variable the records list does not
>> > change. If I click on another window and come back to the original
>> window
>> > everything updates.
>> >
>> > This worked fine in v13.
>> >
>> > Am I missing something?
>>
>> 4D V6 or V7 was the last version where REDRAW WINDOW was redrawing the
>> whole window, then 4D began to "optimize" the redrawing. Maybe it is faster
>> now, but it definitely is no longer working as expected.
>> My workaround:
>>
>>   // Methode: RedrawWindow
>>   // Angelegt: BF 16.09.03
>>   // Objekt: Dienstroutine
>>   // Beschreibung: Umgehung für das seit 4D 2003 nicht mehr zuverlässig
>> funktionierende Redraw Window
>>   // 
>>
>> C_LONGINT($lLeft;$lTop;$lRight;$lBottom)
>>
>> GET WINDOW RECT($lLeft;$lTop;$lRight;$lBottom)
>> SET WINDOW RECT($lLeft;$lTop;$lRight-1;$lBottom)
>> SET WINDOW RECT($lLeft;$lTop;$lRight;$lBottom)
>>
>>
>> Gives a short flicker, but is the only way I know of to actually redraw a
>> window.
>> Maybe someone else has found another solution without the flicker?
>>
>> Greetings from Germany,
>> Bernd Fröhlich
>> **
>> 4D Internet Users Group (4D iNUG)
>> Archive:  http://lists.4d.com/archives.html
>> Options: https://lists.4d.com/mailman/options/4d_tech
>> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
>> **
>
>
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: REDRAW WINDOW not working v17?

2019-01-03 Thread Alan Tilson via 4D_Tech
Hello Bernd,

Your solution seemed much more elegant than mine, which was to cut and use
a named selection, but for some reason it doesn't work for me. The boolean
variable that I'm clicking on goes grey and nothing else changes. If I
click another window and come back the boolean and the rows do update.

Any ideas about what might be different?

I tried HIDE WINDOW / SHOW WINDOW which caused a flicker but not a redraw
as did HIDE PROCESS / SHOW PROCESS.

I also tried Open Window / CLOSE WINDOW... didn't work.

This does work with some side effects, especially if the user has scrolled
down...

CUT NAMED SELECTION(Current form table->;"tempNS")
USE NAMED SELECTION("tempNS")
HIGHLIGHT RECORDS


Thanks from North Carolina,
Alan Tilson

On Thu, Jan 3, 2019 at 2:18 AM Bernd Fröhlich via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> Alan Tilson:
>
> > Has anyone had issues with REDRAW WINDOW working differently or not
> working
> > in v17? I have an output form with a boolean variable in the header that
> > affects the text color of the fields in each line of output as well as
> > determining which of a few optional fields are displayed. If I call
> REDRAW
> > WINDOW after changing the boolean variable the records list does not
> > change. If I click on another window and come back to the original window
> > everything updates.
> >
> > This worked fine in v13.
> >
> > Am I missing something?
>
> 4D V6 or V7 was the last version where REDRAW WINDOW was redrawing the
> whole window, then 4D began to "optimize" the redrawing. Maybe it is faster
> now, but it definitely is no longer working as expected.
> My workaround:
>
>   // Methode: RedrawWindow
>   // Angelegt: BF 16.09.03
>   // Objekt: Dienstroutine
>   // Beschreibung: Umgehung für das seit 4D 2003 nicht mehr zuverlässig
> funktionierende Redraw Window
>   // 
>
> C_LONGINT($lLeft;$lTop;$lRight;$lBottom)
>
> GET WINDOW RECT($lLeft;$lTop;$lRight;$lBottom)
> SET WINDOW RECT($lLeft;$lTop;$lRight-1;$lBottom)
> SET WINDOW RECT($lLeft;$lTop;$lRight;$lBottom)
>
>
> Gives a short flicker, but is the only way I know of to actually redraw a
> window.
> Maybe someone else has found another solution without the flicker?
>
> Greetings from Germany,
> Bernd Fröhlich
> **
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

REDRAW WINDOW not working v17?

2019-01-02 Thread Bernd Fröhlich via 4D_Tech
Alan Tilson:

> Has anyone had issues with REDRAW WINDOW working differently or not working
> in v17? I have an output form with a boolean variable in the header that
> affects the text color of the fields in each line of output as well as
> determining which of a few optional fields are displayed. If I call REDRAW
> WINDOW after changing the boolean variable the records list does not
> change. If I click on another window and come back to the original window
> everything updates.
> 
> This worked fine in v13.
> 
> Am I missing something?

4D V6 or V7 was the last version where REDRAW WINDOW was redrawing the whole 
window, then 4D began to "optimize" the redrawing. Maybe it is faster now, but 
it definitely is no longer working as expected.
My workaround:

  // Methode: RedrawWindow
  // Angelegt: BF 16.09.03
  // Objekt: Dienstroutine
  // Beschreibung: Umgehung für das seit 4D 2003 nicht mehr zuverlässig 
funktionierende Redraw Window
  // 

C_LONGINT($lLeft;$lTop;$lRight;$lBottom)

GET WINDOW RECT($lLeft;$lTop;$lRight;$lBottom)
SET WINDOW RECT($lLeft;$lTop;$lRight-1;$lBottom)
SET WINDOW RECT($lLeft;$lTop;$lRight;$lBottom)


Gives a short flicker, but is the only way I know of to actually redraw a 
window.
Maybe someone else has found another solution without the flicker?

Greetings from Germany,
Bernd Fröhlich
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

REDRAW WINDOW not working v17?

2019-01-02 Thread Alan Tilson via 4D_Tech
Hello,

Has anyone had issues with REDRAW WINDOW working differently or not working
in v17? I have an output form with a boolean variable in the header that
affects the text color of the fields in each line of output as well as
determining which of a few optional fields are displayed. If I call REDRAW
WINDOW after changing the boolean variable the records list does not
change. If I click on another window and come back to the original window
everything updates.

This worked fine in v13.

Am I missing something?

Thanks,
Alan
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**