From: Alain A. <ala...@wa...> - 2016-10-05 14:18:36
|
Hi I have a combobox in a window that I hide using set timer, as I used it elsewhere for ownerbuttons I hide it before creating the window in ON CHANGE, I call a functions which look at a value to know if it must be hidden or shown qout(trim(rScript)) => dir qout(aScripts[rg,4]) => .t. oModDlg, oFolders and oTm2 are public // =============================================================== Function combo_manage(rScript) // =============================================================== local rg for rg=1 to len(aScripts) if trim(rScript)==aScripts[rg,1] qout(trim(rScript)) qout(aScripts[rg,4]) if aScripts[rg,4] SET TIMER oTm2 of oModDlg VALUE 100 ACTION oModDlg:oFolders:show() else SET TIMER oTm2 of oModDlg VALUE 100 ACTION oModDlg:oFolders:hide() endif exit endif next return nil // =============================================================== Where do I fail ? 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-02 19:20) | Hw.Gui 2.19-6 (2615) ------------------------------------------------------------------------ |