Bwidget Source Code
Artifact [ddeac07c79]
Not logged in

Artifact ddeac07c799a10e9c76151cfb600fa2c5dc552cc:

Ticket change [ddeac07c79] - Ticket [d5480d1da2] ScrollableFrame: show scrollbars only when mouse in widget status still Open with 4 other changes by oehhar 2017-01-16 11:46:57.
D 2017-01-16T11:46:57.686
J icomment <h1>Test\sfor\sScrollingWindow</h1>\r\n\r\n<h2>Text\swidget</h2>\r\nHere\sis\sa\stest\sfor\sScrolledWindow\swith\sthe\stext\swidget:\r\n<verbatim>\r\npack\s[ScrolledWindow\s.sw\s-autohidescrollbar\s1]\s-side\stop\s-expand\s1\s-fill\sboth\r\ntext\s.sw.text\r\n.sw\ssetwidget\s.sw.text\r\n.sw.text\sinsert\send\s[string\srepeat\s[string\srepeat\sA\s1000]\\n\s200]\r\n</verbatim>\r\nIssues\sI\ssee:\r\n-\swhen\sthe\swindow\sis\sin\snormal\sstate,\sthe\swindow\ssize\sflickers.\sWhen\sthe\smouse\spointer\sis\swithin\sthe\sscrollbars\swhile\sdragging,\sthey\sare\sunmapped.\sOne\smay\sdrag\sthe\smouse-bars\swithout\sseeing\sthem\s;-)\r\n-\sWhen\sthe\swindow\sis\smaximized,\sthe\ssize\sdoes\snot\schange.\sWhen\sthe\smouse\spointer\sis\son\sthe\sscrollbar,\sit\sflickers.\s\r\n\r\n<h2>ScrollableFrame</h2>\r\n<verbatim>\r\nset\sfInScrolledWindow\s1\r\npack\s[ScrolledWindow\s.sw\s-autohidescrollbar\s$fInScrolledWindow]\s-side\stop\s-expand\s1\s-fill\sboth\r\nScrollableFrame\s.sw.f\s-autohidescrollbar\s[expr\s{!$fInScrolledWindow}]\r\n.sw\ssetwidget\s.sw.f\r\nset\sfc\s[.sw.f\sgetframe]\r\npack\s[frame\s$fc.f\s-width\s1000\s-height\s1000\s-background\syellow]\r\n</verbatim>\r\nWithin\sthis\stest\sscript,\sthere\sare\sthe\ssame\sissues\sas\swith\sthe\stext\swidget.\r\nIn\saddition,\sif\sthe\smouse\sis\sover\sspace\snot\scovered\sby\sScrollableFrame\swithin\sthe\sScrolledWindow,\sthe\sscrollbars\sare\serrorneously\shidden.\r\n\r\n<h1>Test\sfor\sScrollableFrame</h1>\r\n\r\nPlease\suse\sthe\supper\stest\swith:\r\n<verbatim>\r\nset\sfInScrolledWindow\s0\r\n</verbatim>\r\nThen,\sthe\supper\sdrawbacks\sare\ssolved.\r\nNevertheless,\sthe\srequired\ssize\sflickers\swith\sthe\smouse.\r\nThe\srequired\ssize\sof\sthe\sScrolledWindow\sis\snot\sconstant.\r\n\r\n<Dynamic\sconfiguration>\r\n\r\nNone\sof\sthe\spatches\ssupport:\r\n<verbatim>\r\n$f\sconfigure\s-autohidescrollbar\s0\r\n</verbatim>\r\n\r\n<hr\s/>\r\n\r\nIMHO\sthe\sdrawbacks\sshould\sbe\ssolved\sfirst.
J login oehhar
J mimetype text/x-fossil-wiki
J username oehhar
K d5480d1da2ec9898400f218af80b336e8399747d
U oehhar
Z b61e0c1e95690db6072007d061c03159