Article View: news.software.readers
Article #248440Re: Dialog Crashes
From: tlvp
Date: Mon, 23 Jan 2012 22:02
Date: Mon, 23 Jan 2012 22:02
171 lines
9890 bytes
9890 bytes
On Mon, 23 Jan 2012 22:51:31 +0100, Bernd Rose wrote:
> On Sun, 22 Jan 2012 16:33:03 -0500 tlvp wrote:
>
>> On Sun, 22 Jan 2012 21:21:39 +0100, Bernd Rose wrote:
>>
>>> ,,, the Double-Zoom nor
>>> the Patch solution ...
>>
>> Sorry, Bernd, but, as the French say for a transom, "vasistas?"
>
> ;-) Hm, well, lets have a look. I'll try to sum up the discussion
> on this matter from here and de.comm.software.40tude-dialog:
>
> Development of the newsreader 40tude Dialog ceased before x64 Windows
> versions hit the consumer market. Therefore, Dialog probably was never
> really tested on a x64 system. As it turns out, some GUI elements are
> /usually/ "broken" when Dialog is started on a 64-bit Windows version.
> The most frequent problems are visually missing, but in terms of mouse
> click behavior,... somewhat present pane headers (directly above the
> topmost line; containing the column names of the pane.)
>
> *But* the GUI display problem is /not/ identical on each and every
> installation of Dialog on x64 systems. Display driver, Aero/Classic
> settings, screen resolution, color-depth, and (most importantly!) the
> chosen Dialog pane layout have a saying in the occurrence or absence
> of display problems for Dialog GUI elements. Perhaps, other factors
> come into play sometimes, as well..
>
> On most systems, forcing Dialog to redraw screen elements - just after
> the program started up - somewhat "solved" the problem. (Till the next
> program start.) Because of the great scripting capabilities of Dialog,
> this task can be handed over to a script. The following line has to
> be placed *twice* in the OnStartup <Event> script:
>
> ADo('ZoomWindow');
>
> The first ADo call maximizes the current Dialog pane (usually the
> "Newsgroups" pane), while the second ADo call restores to current
> state. Because nobody (until now) reported back, that calling these
> two state changes causes a perturbing screen effect, it (IMHO) was
> never checked out, whether placing LockDisplay/UnlockDisplay around
> these two lines would prevent such screen flicker. Since some users
> seem to have applied Lock/Unlock, nevertheless, the usage at least
> seems /not/ to prevent the functionality of the double-zoom, itself.
> On /my/ usual x64 system the Double-Zoom solution does not work (while
> the patch below does). So I can not double-check, whether Lock/Unlock
> interfere with the intended functionality of that script.
>
> At least one user seemed to need to set focus on the Newsgroup pane
> before toggling the Zoom state. As it turned out, the error was
> elsewhere. Nevertheless, there /may/ be Dialog pane layouts, where
> the focus is not on the Newsgroup pane on startup. Since most GUI
> problems seem to pertain the Newsgroup column headers, setting the
> focus to that pane may be necessary. Which is done by including
>
> Ado('NewgroupPane');
>
> in the script. The "typo" New_s_groupPane *must not* be corrected.
> The /function name/ has the typo (from the beginning). If anybody
> has the need to set focus to another pane - they are accessed by:
>
> Ado('HeaderlistPane');
> resp.
> Ado('ArticlePane');
>
> Here is the complete sequence for copy/paste into the body (i.e.
> between "begin" and "end;") of an existing or a newly created
> OnStartup event script:
>
> ---------------------<OnStartup>---------------------
> // Script to toggle pane zoom state on Dialog startup
> // to resolve GUI display issues on some x64 systems
> LockDisplay
> Ado('NewgroupPane');
> ADo('ZoomWindow');
> ADo('ZoomWindow');
> UnlockDisplay
> -----------------------------------------------------
>
> For other Dialog setups a more drastic solution is necessary. The
> reasoning behind the following suggestion is, that the GUI errors
> most likely result from rounding differences between the display
> driver and system libraries on one side and Dialog GUI elements
> (which mostly means core Delphi and TBX functions) on the other
> side. - Maybe, the difference comes from "cutting" off digits with
> lower significance vs. "rounding" (when converting between 64 and
> 32 bit).
>
> Be it as it may. Standard setting (compiled into Dialog) for the
> column headers of the pane windows is to reflow to multiple lines,
> if no sufficient space exists for full display. While most columns
> save a fixed wide (default or chosen by the user), one of the
> columns tries to take "the rest" of the space. Because of the
> above mentioned conversation problems, this calculation seems
> prone to errors on x64 systems.
>
> The solution is changing the "reflow" setting to "always on /one/
> line" (with chevrons enabling scrolling, if there is not enough
> space to display all column names). This can not be done with
> changing some Dialog setting, but only by patching the Dialog.exe.
>
> Fortunately, this still is not really hard work, because of the
> existence of so-called "resource editor" programs. My favorite one
> is Resource Hacker (freeware) by Angus Johnson:
>
> http://www.angusj.com/resourcehacker
>
> After downloading and installing the Resource Hacker, Dialog.exe
> needs to be loaded into that program (menu <File><Open>). During
> the patching process Dialog *must not* be running, of course!!
> Moreover, a backup of Dialog.exe should be created before the
> next steps (to be able to return to an unpatched Dialog.exe,
> whenever the need may arise). And I suggest to *always* use the
> .41 version of the Beta 38, since it is the most stable one. It
> can be acquired here:
>
> http://dialog.datalist.org/downloads/download.html
>
> The seemingly further developed .84, OTOH, is just an Alpha version
> for an (never released) upcoming Beta 39. - With many unstable and
> unfinished changes...
>
> Back to Ressource Hacker:
> The next step is searching for the string "tbsmWrap" (without the
> quotation marks) via menu <View><Find Text>. Although in most
> cases only changes in TFRM40TDMAIN are required, I suggest doing
> the following replacements at all occurrences "for good measure".
> IMHO, they will not hurt on the other forms, either. Therefore,
> every found occurrence of "tbsmWrap" has to be replaced with the
> string "tbsmChevron" (again: without the quotation marks!). To
> continue search to the next (if any) occurrence, the <Find Next>
> function from <View> menu needs to be executed. (Hitting the F3
> key of course provides the same functionality...)
>
> When (by repeating search or by other means) the definition area
> of a form is left after a string replacement (or any other editing),
> Ressource Hacker asks, whether the changed script should be compiled.
> Answering "No" will discard any changes inside that form. So the
> answer should be "Yes". When no more occurrences of "tbsmWrap" can
> be found inside Dialog.exe (if in doubt, a double-check by repeating
> the search from top of the resources tree may be in order), the
> changes still need to be saved to disk (menu <File><Save>). Now, the
> patched Dialog.exe is ready for a test.
>
> Because it is hard to predict, which way may lead to success, I
> usually suggest to try:
> -> first: the double-zoom script /without/ the patch
> -> second: the double-zoom script with /additionally/ applied patch
> -> third: patched Dialog /without/ the double-zoom script
> in this order, until the GUI errors don't show up, anymore. If
> nothing of the above helps (including forgoing Lock-/UnlockDisplay
> inside the double-zoom script), further considerations and tests
> may be necessary. And one can always try:
>
> -> finally: sit down and weep
>
> Although this one usually leads to using another newsreader, in
> the end... ;-)
>
> HTH.
> Bernd
Many, many thanks for the profound and illuminating detail! So far, I'm not
running Dialog in a 64-bit environment, but if I begin to, ... :-) .
Elsewhere (new thread), a Dialog X-Face display question for you.
Cheers, -- tlvp
--
Avant de repondre, jeter la poubelle, SVP.
Technical Details
Message-ID:
<yfumdk3rbciz.1btsfwjftmwkc$.dlg@40tude.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.ams3.giganews.com!border2.nntp.ams3.giganews.com!border2.nntp.ams2.giganews.com!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!news2.euro.net!news.glorb.com!v102.xanadu-bbs.net!n102.xanadu-bbs.net!.POSTED!not-for-mailReferences:
<jibop7d6q60t$.dlg@sqwertz.com> <3269akflnetu$.dlg@b.rose.tmpbox.news.arcor.de> <eln7qlxd9upk$.dlg@sqwertz.com> <1chh7xpqk2vvd.dlg@b.rose.tmpbox.news.arcor.de> <oe84xiifymf6.dlg@sqwertz.com> <17gfrbo9k384c.dlg@b.rose.tmpbox.news.arcor.de> <cvkiae0ynzyk$.dlg@sqwertz.com> <1j9vsm4n3pesx.dlg@b.rose.tmpbox.news.arcor.de> <1oz13yf8mcvro.dlg@sqwertz.com> <14i93jrb4ii8s.dlg@b.rose.tmpbox.news.arcor.de> <10xfxtcvrstxg$.dlg@sqwertz.com> <afqdr1h8gfij$.dlg@b.rose.tmpbox.news.arcor.de> <rgrjhgpyni4u$.dlg@b.rose.tmpbox.news.arcor.de> <23bukqkr0yju.ft3d97cxe3ax.dlg@40tude.net> <zm1inplbshu2$.dlg@b.rose.tmpbox.news.arcor.de>Show Full Headers
Complete Article Headers
Message-ID: <yfumdk3rbciz.1btsfwjftmwkc$.dlg@40tude.net> Subject: Re: Dialog Crashes Date: Mon, 23 Jan 2012 17:02:03 -0500 From: tlvp <mPiOsUcB.EtLlLvEp@att.net> References: <jibop7d6q60t$.dlg@sqwertz.com> <3269akflnetu$.dlg@b.rose.tmpbox.news.arcor.de> <eln7qlxd9upk$.dlg@sqwertz.com> <1chh7xpqk2vvd.dlg@b.rose.tmpbox.news.arcor.de> <oe84xiifymf6.dlg@sqwertz.com> <17gfrbo9k384c.dlg@b.rose.tmpbox.news.arcor.de> <cvkiae0ynzyk$.dlg@sqwertz.com> <1j9vsm4n3pesx.dlg@b.rose.tmpbox.news.arcor.de> <1oz13yf8mcvro.dlg@sqwertz.com> <14i93jrb4ii8s.dlg@b.rose.tmpbox.news.arcor.de> <10xfxtcvrstxg$.dlg@sqwertz.com> <afqdr1h8gfij$.dlg@b.rose.tmpbox.news.arcor.de> <rgrjhgpyni4u$.dlg@b.rose.tmpbox.news.arcor.de> <23bukqkr0yju.ft3d97cxe3ax.dlg@40tude.net> <zm1inplbshu2$.dlg@b.rose.tmpbox.news.arcor.de> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.ams3.giganews.com!border2.nntp.ams3.giganews.com!border2.nntp.ams2.giganews.com!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!news2.euro.net!news.glorb.com!v102.xanadu-bbs.net!n102.xanadu-bbs.net!.POSTED!not-for-mail Newsgroups: news.software.readers Organization: TLVP Lines: 171 Reply-To: mPiOsUcB.EtLlLvEp@att.net NNTP-Posting-Host: +HYI6BHfewwiFvPPGzWEc8r3Z14 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Complaints-To: newsmaster@xanadu-bbs.net NNTP-Posting-Date: Mon, 23 Jan 2012 22:01:30 +0000 (UTC) User-Agent: 40tude_Dialog/2.0.15.41 X-Original-Bytes: 9657