Any Other Actions Impossible Except Validate
[1/7] from: info:id-net:ch at: 28-Oct-2002 8:09
Hi Rebolisters ! I would like to make that when 2 Fields are filled, any other actions are impossible except "press the button to validate". How can I make it. I tried to use system/view/focal-face informations to "stop" other actions but I can't find the solution. I analysed the show-popup source to inspire me but no solution at the moment... Any Idea ? Philippe Oehler
[2/7] from: g:santilli:tiscalinet:it at: 28-Oct-2002 10:27
Hi Philippe, On Monday, October 28, 2002, 8:09:35 AM, you wrote: PO> I would like to make that when 2 Fields are filled, any other actions are PO> impossible except "press the button to validate". How can I make it. I tried You can "disable" faces by putting their feels to none. Anyway, if the user can't do anything more than pressing that button, why don't you do it's action directly instead for waiting for him/her to press it? Regards, Gabriele. -- Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer Amigan -- AGI L'Aquila -- REB: http://web.tiscali.it/rebol/index.r
[3/7] from: anton:lexicon at: 28-Oct-2002 22:58
How long does it take to perform the validation? Anton.
[4/7] from: info:id-net:ch at: 28-Oct-2002 14:32
Actually, There's 6 stuff that have to be filled, 2 radio buttons, 2 obligatory field and 2 optional. But if the first two (Name and First Name) are filled and the user forget to fill the others, i want to make appear a alert message that it forgets to fill those that are not. The validation could be done in the next seconds but if the user forget, and i want to force him to choose.. either complete what it begins or leave it.. eventhough it's several hours after ...
[5/7] from: anton:lexicon at: 29-Oct-2002 1:09
Perhaps this can help: view center-face layout [ f: field button "validate" [ either f/text = "bon" [hide cover][show cover] ] c: button "next" [print "ok"] at c/offset cover: box with [ size: c/size effect: [merge grayscale] ] ] The cover idea I got from Gabriele originally. Anton.
[6/7] from: info::id-net::ch at: 29-Oct-2002 6:37
The Cover solution is great. I already use it for something else but in that case it 's very useful. Txs Phil
[7/7] from: anton:lexicon at: 30-Oct-2002 0:52
I don't think it covers all situations. The user might type some invalid characters into a field, but then not press [enter], simply tabbing out or clicking with the mouse. In this situation, the "next" button is still available. I think in some other test or function I discovered how to catch each key press in a field style so I could validate at every step. Or did I just catch the unfocus? I can't remember. If you can't figure out something like that remind me to have a look around. Anton.