PDA

View Full Version : Drawing issue in SB8



NewsArchive
05-12-2013, 03:37 AM
Hi Friedrich,

I'm seeing random drawing problems in the toolbar in version 8.0.4035. See:

http://www.icetips.com/images/screenshots/2013-05-11-SetupBuilder8Drawing.png

Sometimes it draws fine, but sometimes when I start it the toolbar comes up
black and the buttons/controls show up when I hover the mouse over them.
This is in a Windows 7 Ultimate (32bit) Virtual Machine. The host has no
gaming video card that's for sure<bg> but I haven't seen any problems on it
before with SB7 or other programs (been using the VM for about a year)

I'm using the latest VMware Workstation 9.x (latest build with all the
updates and bells and whatever;)

Best regards,

Arnor

NewsArchive
05-12-2013, 03:38 AM
I have seen the same thing in standard Windows 7 Home Premium
(non-VM). Believe but not sure that it happen SB7 as well.

Barton

Barton Whisler
Prosoft Inc.
Tampa, Florida

NewsArchive
05-12-2013, 03:38 AM
Hi Arnor,

Unfortunately, this drawing issue is in all C6 compiled SB versions. It's a
known issue for years and can't be fixed.

Friedrich

NewsArchive
05-12-2013, 10:19 AM
Hi Friedrich,

> Unfortunately, this drawing issue is in all C6 compiled SB versions. It's a
> known issue for years and can't be fixed.

Weird. Never seen this before. Doesn't happen in SB 7.7 on this VM.

Best regards,

--
Arnór Baldvinsson - Icetips Alta LLC
Port Angeles, Washington
www.icetips.com - www.buildautomator.com - www.altawebworks.com
Icetips product subscriptions at http://www.icetips.com/subscribe.php

NewsArchive
05-12-2013, 10:36 AM
Hi Arnór ,

If you have not seen it in SB6.x, SB7.x or SB8.x then it was only luck. This
drawing issue is in the Top 5 on our support request list since years :-(
Both VMs and non-VMs.

Friedrich

NewsArchive
05-13-2013, 12:47 AM
Hi Friedrich,

> If you have not seen it in SB6.x, SB7.x or SB8.x then it was only luck. This
> drawing issue is in the Top 5 on our support request list since years :-(
> Both VMs and non-VMs.

I do not recall seeing this, but I have seen something like this in the
past. Is this a standard clarion toolbar? In some cases I have had weird
drawing issues on windows, but InvalidateRect has always fixed that. Don't
recall having this on a toolbar.

It's possible I have seen this, but not as far back as my memory goes - I'll
stick with that<g>

Best regards,

--
Arnór Baldvinsson - Icetips Alta LLC
Port Angeles, Washington
www.icetips.com - www.buildautomator.com - www.altawebworks.com
Icetips product subscriptions at http://www.icetips.com/subscribe.php

NewsArchive
05-13-2013, 12:48 AM
Hi Arnór,

It's a MDI Child window. In all the years I tried everything possible,
including InvalidateRect and LockWindowUpdate (and more). No way to fix it
:-(

Friedrich

NewsArchive
05-13-2013, 09:45 AM
Friedrich,

> It's a MDI Child window. In all the years I tried everything possible,
> including InvalidateRect and LockWindowUpdate (and more). No way to fix it

Are you sure you're using InvalidateRect in the correct window?

That's what I used to fix the statusbar redraw issue and it worked.

GetWindowRect(PassedWindow{PROP:Handle}, StatBarFixRECT)
MapWindowPoints( , PassedWindow{PROP:Handle}, StatBarFixRECT, 2)
InvalidateRect(PassedWindow{PROP:Handle},StatBarFi xRECT)

--
Lee White

RPM Report Viewer.: http://www.cwaddons.com/products/rpm/
RPM Review........: http://www.clarionmag.com/cmag/v11/v11n06rpm.html
Report Faxing.....: http://www.cwaddons.com/products/afe/
---Enroll Today---: http://CWaddons.com

Enhanced Reporting: http://CreativeReporting.com

Product Release & Update Notices
http://twitter.com/DeveloperPLUS

Windows 8 brings us "The Oval, Bumper Car, Roller Coaster of Wait!"

NewsArchive
05-13-2013, 10:50 AM
Hi Lee,

>
> Are you sure you're using InvalidateRect in the correct window?
>

Unfortunately, yes :-( I am 100% sure. In all the years, I have invested
(at least) 400 hours in a fix or workaround (from November 2005 - February
2010). In the past, the redrawing issue was even worse (especially on
Vista+).

Friedrich

NewsArchive
05-14-2013, 01:19 AM
Friedrich,

> Unfortunately, yes :-( I am 100% sure. In all the years, I have invested
> (at least) 400 hours in a fix or workaround (from November 2005 - February
> 2010). In the past, the redrawing issue was even worse (especially on
> Vista+).

But it was sooooooooo much fun, right?!<g>

--
Lee White

RPM Report Viewer.: http://www.cwaddons.com/products/rpm/
RPM Review........: http://www.clarionmag.com/cmag/v11/v11n06rpm.html
Report Faxing.....: http://www.cwaddons.com/products/afe/
---Enroll Today---: http://CWaddons.com

Enhanced Reporting: http://CreativeReporting.com

Product Release & Update Notices
http://twitter.com/DeveloperPLUS

Windows 8 brings us "The Oval, Bumper Car, Roller Coaster of Wait!"

NewsArchive
05-14-2013, 01:19 AM
Friedrich,

Stupid question: Any reason why that can't be compiled in C8 (or even C9)?

--

Russ Eggen
RADFusion International, LLC

NewsArchive
05-14-2013, 02:00 AM
Russ,

>
> Stupid question: Any reason why that can't be compiled in C8 (or even C9)?
>

I was afraid that someone would ask for this sooner or later... <G>

First of all, the amazing build quality of Clarion8 / Clarion9 is one of its
core strengths. Comparing C6 with C8/C9 would be "comparing apples and
oranges". C6 is a thing from the past, C9 is the future. Robert and team
have done a fantastic job and without Clarion, SetupBuilder would not have
been possible.

SetupBuilder makes use of very, very low-level stuff. There is the
SetupBuilder IDE, the setup compiler, the linker, and the debugger. All
written in pure Clarion code with extensions developed in TopSpeed C,
TopSpeed Assembly, and Visual Studio 2002, 2008, 2010, 2012 (C / C# / MASM).

The last Clarion version that is compatible with the SetupBuilder source
code tree (600,000+ lines) is C6 Build 9056. The problem is that the
SetupBuilder code is very complex and includes more than 250 workarounds
(30,000+ lines) for old Clarion 6.x defects and limitations. SoftVelocity
have fixed and improved so many things and beginning with Build C6 9057, it
was not possible to compile a stable SetupBuilder system any longer. But
this has absolutely nothing to do with Clarion per-se. It's the previously
required workarounds that cause the unexpected behaviors.

Unfortunately, it is not a trivial task to "remove" the workarounds from
SetupBuilder to make it work with the latest versions of Clarion (C7/8/9).
It's like doing brain and heart surgery at the same time. We always have an
internal SetupBuilder version compiled with the newest Clarion build (at the
moment it's C9 Build 10094) and doing everything possible to provide a C9
compiled SetupBuilder in the future.

Friedrich

NewsArchive
05-14-2013, 04:05 AM
Lee,

>
> But it was sooooooooo much fun, right?!<g>
>

Hehehehe :-)

Friedrich

NewsArchive
05-14-2013, 04:10 AM
Lee,

> That's what I used to fix the statusbar redraw issue and it worked.
>
> GetWindowRect(PassedWindow{PROP:Handle}, StatBarFixRECT)
> MapWindowPoints( , PassedWindow{PROP:Handle}, StatBarFixRECT, 2)
> InvalidateRect(PassedWindow{PROP:Handle},StatBarFi xRECT)

BTW, I'll play with this again.

The funny thing is that the "wrong" toolbar color (redrawing issue) comes
from the background color of the "Solution Explorer" which is docked on the
right edge of the IDE. Some years ago I found out that it happens when the
Solution Explorer "moves" from the left to the right. Under certain unknown
circumstances, the redraw process does not work in this case (on Vista+).
Sometimes you can also reproduce this when you resize the IDE. But it's
nearly impossible to debug. It's a trial-and-error process (different
running threads are involved).

Friedrich

NewsArchive
05-14-2013, 07:16 AM
Thanks! I bet you won't do that approach again <g>.

Seriously, a C9 version sounds interesting and I think you are correct,
don't release it. Its an interesting exercise.

--

Russ Eggen
RADFusion International, LLC

NewsArchive
06-02-2013, 10:46 AM
Hi Arnór,

Just curious, do you still see the drawing issue in the latest SB8 build?

Thanks,
Friedrich