Page 1 of 1

refreshing blink

Posted: Mon Apr 17, 2017 12:08 pm
by Cliff Wiernik
I am working on a report menu. It is on a tabpage with a zero height tab. I has basically 3 group boxes on it. Left mode groupbox has a listbox of report categories. The middle groupbox has a 2nd listbox of the report options for the report category selected in the first box. The right most box has a groupbox which displays a listing of report options (checkboxes and say/get fields).

No at first startup, only the left most box is displayed. When the report category is selected, it displays the 2nd groupbox with the listbox of reports and uses dc_mergegets() to put the two groups into the one getlist. When the report is selected, it builds the right groupbox and its various options, again using DC_MergeGets() to merge this new groupbox and children into the main getlist. When you click back on the middle box, it does a DC_GetDestroy() to remove the right box and if you click on the left box, it destroys both the middle and right boxes. It is when the selects are activated in the listboxes and the next box is created, that the right or right and middle listboxes appear to flash/refresh.

The content is each box is dependent on the selection in the box immediately to its left and change based on the selection.

If I just temporarily build all 3 groupboxes at once and hard code in the selections, then their is not flashing as I select the items as it is not doing a DC_MergeGets() or DC_GetDestroy().

Is this normal behavior or is there someway to get ride of the flashing. My DC_GetRefresh() only refreshes the group tied to its own groupbox, not the leftmost groupbox.

In the image below, the middle items are actually in a listbox, not dropdown items as show on this earlier depiction.
reportmenuspecification.jpg
reportmenuspecification.jpg (273.64 KiB) Viewed 7840 times

Re: refreshing blink

Posted: Mon Apr 17, 2017 12:41 pm
by rdonnay
Can you put this together in a program that I can compile and link?

Re: refreshing blink

Posted: Mon Apr 17, 2017 3:07 pm
by Cliff Wiernik
I will clean it up so it does not have the other garbage in it.