Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Floating container
Message
De
22/11/2000 11:11:31
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Floating container
Divers
Thread ID:
00444638
Message ID:
00444638
Vues:
49
Hi All,

I have a problem with the placement of a floating container over a grid. The purpose of this container is for data entry. Direct entry into the grid is not possible since I require comboboxes that have different elements in the arrays that populate them, depending on other factors in each record. The problem I am having is that when in EDIT mode I use the RELATIVEROW of the grid to know where to place the container. The user just needs to click on the row they want to modify and the container will be placed over that row. And it's appropriate control will get the focus. This is how I do the placement.

.cntreghrs.TOP = .grdreghrs.TOP + 19 + ((.grdreghrs. RELATIVEROW - 1) * .grdreghrs.ROWHEIGHT)

This works great provided I block the scrolling of the grid. If I don't and the user scrolls the RELATIVEROW of the visible portion of the grid the container can tend to float away.

If I am in ADD new record mode. And after my APPEND BLANK. I can place the container with:

.cntreghrs.TOP = .grdreghrs.TOP + 19 + (MIN(13, RECCOUNT('reg_hrs_cursor') - 1) * .grdreghrs.ROWHEIGHT)

Since there are 14 visible rows in the grid I can control where the container will appear by using the MIN() function.

The problem now is. They want to be able to do both Add & Edit at will and there is no distinction between the 2. I am unable to control the placement of the container because I now need 1 calculation. And I'm stumped. Any help is appreciated. By the way. The container is only visible in either of these 2 modes.

TIA
MIke
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform