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

[REBOL] Pane Pain

From: sanghabum:aol at: 30-Sep-2001 6:06

I asked this a few weeks ago, and I think maybe my question got lost in the general excitement. I still haven't worked it out for myself, so I hope you don't mind if I ask again. I have two separate panels. One's a floating control panel and the other is the user's main display. When they click a control button panel, focus should go to a field on the main display. The only way I can find to do this is to unview and view again the main display. This creates an annoying flicker. I appreciate that I may need to do this when the main display is buried or minimised, but I can't find an unflickering way to do it in other cases. There's some sample code below which also demonstrates a little mystery under (at least) Windows/98...try this: --Click "Control button" --Minimize the Main Display --Click "Control button" again And--et voila!--the Main Display cannot be unminimized! (The answer is extra code is handle the strange offset that Main Display acquires during this procedure). ====== unview/all ControlPanel: layout [ Button "Control button" [unview MainDisplay View/new MainDisplay focus UserEntry ] ] MainDisplay: layout [UserEntry: Field 500x200] view/new/Title ControlPanel "Control" view/new/offset/Title MainDisplay ControlPanel/offset + ControlPanel/size Main Display do-events ====== Anyway, any help would be appreciated, --Colin