From: Alain A. <ala...@wa...> - 2016-10-12 14:27:46
|
Le 12/10/2016 à 12:19, Alexander S.Kresin a écrit : > Alain Aupeix пишет: >> ... >> @ 10,96 GET COMBOBOX oScript VAR rScript ITEMS aScripts >> ... >> // ON CHANGE {||dscript:=rScript,oName:Refresh(),combo_manage(rScript)}; >> ... >> for rg=1 to len(aScripts) >> if trim(rScript)==aScripts[rg,1] It was a typo, the test works, as trim(rScript)==rScript (no need of trim) > And, anyway, using of timers here isn't correct. You add them again > and again after every ON CHANGE. A lot of timers will appear, and each > of them try to show or hide your combobox... > Why don't you simply hide/show the combo once in ON CHANGE handler, > why the timer is needed ? Yes, no need of timer, I just used the trick you give me about two buttons I need to hide in a window and show in a case, but after the window was displayed. But I found a better way to do it Just add a line like this after the object to hide: @ 10,230 SAY "" SIZE 1,1 ON INIT {||oFolders:hide()} It displays nothing (what I want) but immediatly hide the combo Really better than a timer Thanks A+ -- ------------------------------------------------------------------------ Alain Aupeix http://jujuland.pagesperso-orange.fr/ http://pissobi-lacassagne.pagesperso-orange.fr/ ------------------------------------------------------------------------ U.buntu 12.04 | G.ramps 3.4.9-1 | H.arbour 3.2.0dev (2016-10-04 13:22) | Hw.Gui 2.19-6 (2619) ------------------------------------------------------------------------ |