http://bugs.winehq.org/show_bug.cgi?id=20570
Summary: In vb6 drop down combo width cannot be altered Product: Wine Version: 1.1.32 Platform: All OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: winebug@pdadevelopments.co.nz
when running wine version(1.1.32) on osx(winebottler), it has been discovered that drop down boxes do not expand to the width of the longest data row, when the following code at www.http://www.vbforums.com/showthread.php?p=593960 is run. The problem also occurs when running wine(stable) on centos 5.3
I have just started using wine, but I am guessing that either:- i) The set statement between vb6, or the corresponding win code, and the linux(X) gui is missing, or ii) The X drop down widget does not have a modify drop down width setting, or iii) none of the above :)
Basically, SendMessage(mCombo.hwnd, CB_SETDROPPEDWIDTH, PixelWidth, 0) does not work. The drop down width stays at the initial combo box width, as set when the control was initially layed out. Or, the drop down combo width cannot be changed.
thanks
peter
http://bugs.winehq.org/show_bug.cgi?id=20570
Vitaliy Margolen vitaliy@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Platform|All |Other Severity|normal |minor
http://bugs.winehq.org/show_bug.cgi?id=20570
Alexander Scott-Johns alexander.scott.johns+winebug@googlemail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |alexander.scott.johns+wineb | |ug@googlemail.com
--- Comment #1 from Alexander Scott-Johns alexander.scott.johns+winebug@googlemail.com 2009-11-04 09:47:02 --- (In reply to comment #0)
ii) The X drop down widget does not have a modify drop down width setting, or
Wine manages and draws its own widgets. (And X itself doesn't have any widgets - you need a toolkit like Gtk or Qt for that.)
SendMessage(mCombo.hwnd, CB_SETDROPPEDWIDTH, PixelWidth, 0) does not work.
CB_SETDROPPEDWIDTH appears to be implemented (dlls/user32/combo.c, line 2165). Are you sure this is the problem?
http://source.winehq.org/git/wine.git/?a=blob;f=dlls/user32/combo.c;hb=HEAD#...
Have you tried writing a reduced testcase in C? (i.e. so it's not some weird VB problem).
http://bugs.winehq.org/show_bug.cgi?id=20570
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |source
http://bugs.winehq.org/show_bug.cgi?id=20570
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |00cpxxx@gmail.com
--- Comment #2 from Bruno Jesus 00cpxxx@gmail.com 2011-08-20 21:41:24 CDT --- I can confirm this problem in 1.3.26. The SendMessage always return CB_ERROR (as it's possible to see in the source code from previous comment) although it sets the value droppedWidth correctly.
The main problem is that the bounding box is calculated when the object is created and then no more updates are made. Even if new items are added. On Windows the droppedWidth value is used correctly after changed.
I'm building some test cases and cross testing on windows.
http://bugs.winehq.org/show_bug.cgi?id=20570
--- Comment #3 from Bruno Jesus 00cpxxx@gmail.com 2011-09-03 17:08:30 CDT --- Created an attachment (id=36218) --> (http://bugs.winehq.org/attachment.cgi?id=36218) Compiled test
This is fixed by http://source.winehq.org/git/wine.git/commit/7c76a79ffa199c892f9d555bc12e2dd...
I have added several different tests to wine and the attached .exe can be used to test too. Press combobox down button and you will see a list of items that has the same size from the combobox, then use the button below to change the combobox dropped size to 100, reopen the combobox and you will see it's larger =)
It's possible to try setting any other value too in the bottom-left textbox.
http://bugs.winehq.org/show_bug.cgi?id=20570
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |FIXED
--- Comment #4 from Austin English austinenglish@gmail.com 2011-09-06 04:19:29 CDT --- Fixed.
http://bugs.winehq.org/show_bug.cgi?id=20570
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #5 from Alexandre Julliard julliard@winehq.org 2011-09-09 12:55:17 CDT --- Closing bugs fixed in 1.3.28.