http://bugs.winehq.org/show_bug.cgi?id=22164
Summary: Extra scrollbars in Langenscheidt e-Dictionaries Product: Wine Version: unspecified Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: thuerrschmidt@gmail.com
Langenscheidt e-Dictionaries is a reference application that is mainly used in German-speaking countries, where it is called "Langenscheidt e-Wörterbücher". It works rather well with Wine, so much so that it has currently Gold status in the AppDB (http://appdb.winehq.org/objectManager.php?sClass=application&iId=10360). However, a few issues remain that need to be sorted out.
One of these issues are the extra scrollbars around the main application area. These can be seen clearly in the AppDB screenshot (http://appdb.winehq.org/screenshots.php?iAppId=10360&iVersionId=). The outermost horizontal and vertical scrollbars are not present when the application runs in any version of Windows, and they have no useful purpose in Wine. All they do is shift the main application area by one single pixel in upward/downward or right/left direction, respectively. I find them distracting when working with the application, and they take up valuable screen space on my portable computer.
From a few experiments that I have done, my guess is that there may be a
rounding error of some kind deep down in one of Wine's core libraries, possibly a ceil() where native Windows uses a floor() or the other way round. This would explain why the application has one pixel left over in each dimension when calculating the geometry of this part of its application window and, as a result, needs those extra scrollbars.
Another oddity, probably closely related, is that the publisher logo for the current book, which is displayed in the upper right corner of the main application area (in the screenshot it's a red and white Collins logo) is partly outside the visible screen area and also outside the scrollable area. This, however, changes as soon as the application window's initial maximized state changes. In the de-maximized window the full logo becomes visible, and it stays so even after the window is maximized again. This strange behavior too does not occur in Windows, only in Wine.
Langenscheidt e-Dictionaries is currently available in version 4.0, revision 20.1 (whatever that means). It can be downloaded gratis (i.e. free-as-in-beer) at http://www.langenscheidt.de/service/service_2784.html. Judging from the libraries it comes with, it is written in Visual C++ 8.0 and heavily MFC-based. The application functions as a front-end for a number of commercial electronic dictionaries published by Langenscheidt and a few other German publishers. These dictionaries come in a proprietary, closed format on CD-ROM or via paid download and have to be installed locally into the e-Dictionaries application, where they can be searched and accessed one at a time or all at once. There is also limited support for custom dictionaries. Langenscheidt e-Dictionaries is derived from its older, simpler (and in my view, better) predecessor application called PC-Bibliothek (or PC-Library in English), which also runs fine under Wine, but shows the exact same issues as described above. (To complicate matters further, there's a third member in this family of applications, called Office-Bibliothek, but that's not really relevant for this bug.)
Setting up Langenscheidt e-Dictionaries in Wine can be a bit tricky. The installer does not currently work (which is a separate issue that I won't go into here), so the application has to be installed manually by extracting all the right files from the unpacked installer exe to the right places. The interface language is German by default, but you can switch it to English via the menu (if you happend to find the right option among all the German). To see the scrollbar bug in action you need to have at least one dictionary installed, which you can get by creating a "user dictionary" and adding a few dummy entries to it.
If there's a Wine developer who wants to try and fix this bug, you shouldn't have to go through all this. Just give me a shout, and I'll provide you with a fully functioning test kit that you can simply unpack and fire up immediately. This shouldn't be a problem copyright-wise as the application itself is legally downloadable for anybody from Langenscheidt's website (see link above) and I won't share any actual dictionary content.
http://bugs.winehq.org/show_bug.cgi?id=22164
--- Comment #1 from Dmitry Timoshkov dmitry@codeweavers.com 2010-03-26 10:26:50 --- Please specify your Wine version.
http://bugs.winehq.org/show_bug.cgi?id=22164
Sebastian Thürrschmidt thuerrschmidt@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|unspecified |1.1.41
--- Comment #2 from Sebastian Thürrschmidt thuerrschmidt@gmail.com 2010-03-26 12:57:56 --- Thank you for the reminder.
This applies to all Wine versions that I have used in the past two years or so, which is nearly each and every version since the 0.9.x series, in Linux (Ubuntu), with both i32 and amd64 kernels. As of today I'm on 1.1.41 from the PPA.
http://bugs.winehq.org/show_bug.cgi?id=22164
Jerome Leclanche adys.wh@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |adys.wh@gmail.com
--- Comment #3 from Jerome Leclanche adys.wh@gmail.com 2011-11-08 11:23:33 CST --- Please retest in wine-1.3.32. If it still happens, attach a log: http://wiki.winehq.org/FAQ#get_log
Then try winetricks comctl32, shot in the dark, and retest. Post results.
http://bugs.winehq.org/show_bug.cgi?id=22164
--- Comment #4 from Sebastian Thürrschmidt thuerrschmidt@gmail.com 2011-11-08 20:10:43 CST --- Jerome, thanks for looking into this.
1) Yes, it still happens with Wine 1.3.32. The behavior described when I reported this bug is still very much the same.
2) I tried to get a log file as outlined in the FAQ (by setting up Oneiric in a virtual machine to get a clean environment, installing wine1.3 plus wine1.3-dbg from the universe repository, and then installing Langenscheidt e-Dictionaries). However, when I start the application (wine eW_lkg.exe) in gnome-terminal from its installation directory, play around with it a little and close it again, all the output I get is this line, twice:
fixme:htmlhelp:HtmlHelpW HH case HH_INITIALIZE not handled.
Plus multiple instances of this line:
err:edit:EDIT_WM_Command unknown menu item, please report
Am I doing something wrong?
3) Using native comctl32 makes no difference.
BTW, the download URL for the application is now http://www.langenscheidt.de/Service/Support/Updates_und_Patches/8767 (click on eWUpdate.zip). And its installer now works perfectly in Wine. Yay!
http://bugs.winehq.org/show_bug.cgi?id=22164
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |00cpxxx@gmail.com
--- Comment #5 from Bruno Jesus 00cpxxx@gmail.com 2011-11-08 20:28:38 CST --- Please, attach a +mdi,+scroll log. I'm trying to determine if this is a dupe of bug 9435. In console: WINEDEBUG=+mdi,+scroll wine <exe path> &> /tmp/output.txt
See the link below for a better explanation: http://wiki.winehq.org/FAQ#head-16da35b6327024d6ea576e3678488b16862d0f5e
After opening the program do the required operation for the scrollbars to appear than close the program and attach the /tmp/output.txt file.
http://bugs.winehq.org/show_bug.cgi?id=22164
--- Comment #6 from Sebastian Thürrschmidt thuerrschmidt@gmail.com 2011-11-08 20:46:15 CST --- Created attachment 37390 --> http://bugs.winehq.org/attachment.cgi?id=37390 +mdi,+scroll log
http://bugs.winehq.org/show_bug.cgi?id=22164
--- Comment #7 from Bruno Jesus 00cpxxx@gmail.com 2011-11-08 20:58:11 CST --- Created attachment 37392 --> http://bugs.winehq.org/attachment.cgi?id=37392 Scrollbar patch
Please give the attached patch a try. Instructions on how to apply the patch: http://wiki.winehq.org/Patching
http://bugs.winehq.org/show_bug.cgi?id=22164
--- Comment #8 from Sebastian Thürrschmidt thuerrschmidt@gmail.com 2011-11-08 21:52:26 CST --- I'll definitely try this path, but I have to make myself familiar with compiling Wine first. This may take some time. I'll report back then, during the weekend at the latest.
http://bugs.winehq.org/show_bug.cgi?id=22164
--- Comment #9 from Sebastian Thürrschmidt thuerrschmidt@gmail.com 2011-11-12 09:23:26 CST --- Finally I've come around to patch and compile Wine from git (it was easier than I'd thought). I am happy to confirm that the patch is indeed working. The extra scrollbars are no longer there in the Langenscheidt e-Dictionaries/e-Wörterbücher, and they are also gone from the older PC-Bibliothek/e-Library application. Also switching between maximized and windowed states of either application does no longer confuse the window geometry. Fantastic!
http://bugs.winehq.org/show_bug.cgi?id=22164
--- Comment #10 from Bruno Jesus 00cpxxx@gmail.com 2011-11-13 19:59:59 CST --- Thank you for testing the patch. As this patch indeed fixes the problem this bug is a real duplicate of 9435. This bug will be closed as duplicate and further discussion will go to bug 9435.
http://bugs.winehq.org/show_bug.cgi?id=22164
Jerome Leclanche adys.wh@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |DUPLICATE
--- Comment #11 from Jerome Leclanche adys.wh@gmail.com 2011-11-14 06:51:18 CST --- Dupe
*** This bug has been marked as a duplicate of bug 9435 ***
http://bugs.winehq.org/show_bug.cgi?id=22164
Jerome Leclanche adys.wh@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #12 from Jerome Leclanche adys.wh@gmail.com 2011-11-14 06:51:30 CST --- Closing