Title: Simple display of a record not handled by dialog instruction Post by: Jeroni C. on November 13, 2008, 06:08:02 pm Hi,
We're trying to apply multiple dialogs in our program but we've found one problem. We have a typical master-detail (multiple detail really) form with some pages. In the first one, we display a record, and in the others, we display one array in each page. So we have page 1. Record1. page 2. Array 2 page 3. Array 3. The user can move through the rows of the master table and we have to refresh the details. We use the instruction dialog with the sub-dialogs 'display array 2' and 'display array 3', but we can't use a sub-dialog 'display by name' for the record on page 1 because multiple dialogs instruction does not allow this kind of sub-dialog. So, when displaying data, the active page is page 2, and not page 1 as desired. In addition, if we select page 1 and then click anywhere in this page, the control returns to the page whose array is being displayed at the moment. Regards, Jeroni Title: Re: Simple display of a record not handled by dialog instruction Post by: Sebastien F. on November 13, 2008, 06:34:04 pm There are different programming patterns for DIALOG.
I suggest that you look at the demos in FGLDIR/demo/MultipleDialogs And please read carefully the manual page of the DIALOG instruction. If you want that your master fields are active, you must use an INPUT BY NAME. If the master fields must remain disabled (not used by DIALOG), just do a DISPLAY BY NAME in the BEFORE DIALOG block. Seb Title: Re: Simple display of a record not handled by dialog instruction Post by: Reuben B. on November 14, 2008, 05:48:39 am Hi Jeroni,
Steal some ideas from the following ... Using an INPUT with UNBUFFERED and the master fields disabled enables you to use the UNBUFFERED functionality where if you change a value it is immediately refreshed on the screen. The dummy field displays on Vista as a 1 pixel that flashes, you may have to alter the style on other platforms to get something that is as invisible as I've managed to get it. By having it the first folder tab now has something it can attach the focus to so hence the first folder tab is displayed when you enter the dialog. Hope that helps, Reuben Code
Code
Code
Title: Re: Simple display of a record not handled by dialog instruction Post by: Jeroni C. on November 17, 2008, 11:07:30 am Hi Reuben,
Thanks for your idea, this solved our problem, the dummy field in XP also is a 1 pixel that flashes that is almost invisible. Regards, Jeroni |