Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[show-popup] nothing makes sense!

 [1/4] from: moliad::aei::ca at: 27-Mar-2004 11:14


hi, this is a puzzle for advanced view/face/vid users out there. I am trying to use inform and/or show-popup and it seems that unless there is the word 'hide-popup in it somewhere in the vid layout block used to create the pane, the first thing I touch, makes the popup window close, even the touching the background. now, I am puzzled, because I don't get where that gets checked, set or identified. nothing in show-popup searches for hide-popup in the layout, so how can it react to that word being somewhere in the face-structure!? to make things worse, it seems that if the 'hide-popup word is is a sub pane of the layout, it is not recognized !? and also, nothing in the layout function searches for the hide-popup word... so I have NO IDEA as to where that word is being searched for or even how it gets identified. there are no insert-event-func calls either in inform or show-popup... maybe I am way off track here, but so far, that is how the problem presents itself to me. I am at a loss of how to solve this one, I'm really missing a detail here. thanks in advance! -MAx

 [2/4] from: g:santilli:tiscalinet:it at: 27-Mar-2004 17:27


Hi Maxim, On Saturday, March 27, 2004, 5:14:35 PM, you wrote: MOA> I am trying to use inform and/or show-popup and it seems that unless there is MOA> the word 'hide-popup in it somewhere in the vid layout block used to create the MOA> pane, the first thing I touch, makes the popup window close, even the touching MOA> the background. Actually, this happens as long as there is no face with an action defined. MOA> now, I am puzzled, because I don't get where that gets checked, set or MOA> identified. It's in wake-event. Regards, Gabriele. -- Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer Amiga Group Italia sez. L'Aquila --- SOON: http://www.rebol.it/

 [3/4] from: moliad:aei:ca at: 27-Mar-2004 11:49


well, I guess I had to send the mail to find the solution... ':-P it seems my analysis was -ALMOST- correct. the culprit is the system/view/wake-event function which called hide-popup directly if it there was no button with an action func in the root pane of the popup. why its restricted to only buttons with actions and even more so only if they are in the same pane beats me, but I find that to be quite limiting. anyhow, I've patched that function and it now behaves like I would expect. I hope there aren't any current requesters which depend on that little bit of code I removed. crossing my fingers. ;-) -MAx

 [4/4] from: moliad:aei:ca at: 27-Mar-2004 12:02


ah, you're right indeed, its not just looking for buttons.. a bit misleading as the word its setting is call btn-fn ... anyhow, now that its clear, I'm going to patch glayout instead, the wake-event patch was a test more than anything... thanks for the help :-) -MAx