A Widget Library
Artifact [61b0467dd0]
Not logged in

Artifact 61b0467dd0cf048d2c054166d624071325202d46:

Ticket change [61b0467dd0] - New ticket [61882d12fbf6ae33|61882d12fb] <i>Bwidet combobox does not always show selected item in list</i>. by anonymous 2016-02-26 15:16:16.
D 2016-02-26T15:16:16.542
J assignee nobody
J closer nobody
J cmimetype text/plain
J comment Corrected\sversion\sof\smapliste\swhich\scalls\ssee\son\sthe\slistbos\swith\ssome\sdelay.\r\nThe\slistbox\sdoes\snot\sproperly\sscroll\sto\sthe\sselected\sentry\son\sFIRST\sopen!\sThe\spatch\sfixes\sthe\sproblem.\r\n\r\nproc\sComboBox::_mapliste\s{\spath\s}\s{\r\n\s\s\s\sset\slistb\s$path.shell.listb\r\n\s\s\s\sif\s{[winfo\sexists\s$path.shell]\s&&\r\n\s\s\s\s\s\s\s\s[string\sequal\s[wm\sstate\s$path.shell]\s"normal"]}\s{\r\n\t_unmapliste\s$path\r\n\s\s\s\s\s\s\s\sreturn\r\n\s\s\s\s}\r\n\r\n\s\s\s\sif\s{\s[Widget::cget\s$path\s-state]\s==\s"disabled"\s}\s{\r\n\s\s\s\s\s\s\s\sreturn\r\n\s\s\s\s}\r\n\s\s\s\sif\s{[llength\s[set\scmd\s[Widget::getMegawidgetOption\s$path\s-postcommand]]]}\s{\r\n\s\s\s\s\s\s\s\suplevel\s\\#0\s$cmd\r\n\s\s\s\s}\r\n\s\s\s\sif\s{\s![llength\s[Widget::getMegawidgetOption\s$path\s-values]]\s}\s{\r\n\s\s\s\s\s\s\s\sreturn\r\n\s\s\s\s}\r\n\r\n\s\s\s\s_recreate_popup\s$path\r\n\r\n\s\s\s\sArrowButton::configure\s$path.a\s-relief\ssunken\r\n\s\s\s\supdate\r\n\r\n\s\s\s\sset\sbw\s[Widget::cget\s$path\s-bwlistbox]\r\n\r\n\s\s\s\s$listb\sselection\sclear\s0\send\r\n\s\s\s\sset\svalues\s[Widget::getMegawidgetOption\s$path\s-values]\r\n\s\s\s\sset\scurval\s[Entry::cget\s$path.e\s-text]\r\n\s\s\s\sif\s{\s[set\sidx\s[lsearch\s-exact\s$values\s$curval]]\s==\s-1\s&&\r\n\s\s\s\s\s\s\s\s\s[set\sidx\s[lsearch\s-exact\s$values\s"$curval*"]]\s==\s-1\s}\s{\r\n\s\s\s\s\s\s\s\sset\sidx\s0\r\n\s\s\s\s}\r\n\s\s\s\sif\s{$bw}\s{\r\n\tset\sidx\s[$listb\sitems\s$idx]\r\n\s\s\s\s}\selse\s{\r\n\t$listb\sactivate\s$idx\r\n\s\s\s\s}\r\n\s\s\s\s$listb\sselection\sset\s$idx\r\n\s\s\s\s$listb\ssee\s$idx\r\n\s\s\s\s#\sAfter\sidle\sdoes\snot\swork,\smake\ssure\sselected\sitem\sis\svisible!\r\n\s\s\s\safter\s100\s[list\s$listb\ssee\s$idx];\r\n\r\n\s\s\s\sset\swidth\s[Widget::cget\s$path\s-listboxwidth]\r\n\s\s\s\sif\s{!$width}\s{\sset\swidth\s[winfo\swidth\s$path]\s}\r\n\s\s\s\sBWidget::place\s$path.shell\s$width\s0\sbelow\s$path\r\n\s\s\s\swm\sdeiconify\s$path.shell\r\n\s\s\s\sraise\s$path.shell\r\n\s\s\s\sBWidget::focus\sset\s$listb\r\n\s\s\s\sif\s{!\s$Widget::_aqua\s}\s{\r\n\s\s\s\s\s\s\s\sBWidget::grab\sglobal\s$path\r\n\s\s\s\s}\r\n}
J foundin 1.9.8
J is_private 0
J login anonymous
J priority 5\sMedium
J private_contact 720cbbf8ba21fd6982dfd8639b4ecf45d5cf11a3
J resolution None
J severity Severe
J status Open
J submitter anonymous
J subsystem bwidget
J title Bwidet\scombobox\sdoes\snot\salways\sshow\sselected\sitem\sin\slist
J type Bug
K 61882d12fbf6ae337d6e6900a26c928362160a90
U anonymous
Z f2d6494f565d6b46d004c156607f968a