|
| Iniciado por guest, 27,nov. 2015 15:11 - 3 respuestas |
| |
| | | |
|
| |
| Publicado el 27,noviembre 2015 - 15:11 |
Hi,
Is it possible to add a popup menu to a tablecel based on a condition. I can see it is possible to add a popup menu. But I would like to do that by programming.
If the tablecel before the cel that neds to have a popup menu is value 1 then a popup should be availeble ( by mouse clik) If valu is 2 then there should not popup a popupwindow on the cel.
Is this possible?
Thanks
Allard |
| |
| |
| | | |
|
| | |
| |
| Publicado el 27,noviembre 2015 - 15:15 |
Hi Allard
sure it 's possible: - you manage the click code - you test the value - if necessary, you display a popup menu wherever you want (displaypopmenu, from the top of my head)
Best regards |
| |
| |
| | | |
|
| | |
| |
| Publicado el 27,noviembre 2015 - 15:39 |
Hi,
Wel the click event is not availeble in a table cel. However I mananget to get it to work
code
IF TABLE_Dagboekregels.COL_BTW = 3 THEN TABLE_Dagboekregels.COL_Debetbedrag..PopupMenu = False
ELSE TABLE_Dagboekregels.COL_Debetbedrag..PopupMenu = True END
A bug is then it takes the first popup that one has made. Not the popup that is added in the 7 tab GUI of the table column.
Is it possible to delete pop up windows . I cannot find that. I can Add Moduify but not delete. For now I use the one that it selects to do the job. But I think thisis a bug Hope this is solved in version 20 for Iam about to buy the upgrade, ha ha
regards Allard |
| |
| |
| | | |
|
| | |
| |
| Publicado el 27,noviembre 2015 - 16:20 |
Hi,
Yes it is, and there are several possibilities to address that issue. You can choose, for instance, to do the following
1) In the corresponding table, define a right click code that captures the user click (in the 'right button down' event of the table); 2) If the user clicked the pretended column, verify that the cell value corresponds to the value you want, and define the right click popup menu; 3) If the user does not clicked the desired cell, simples define the default popupmenu.
You can use the following code (in the right button down event of the table):
Row is int = TableInfoXY(TABLE_Table2, tiLineNumber, MouseXPos(), MouseYPos()) Column is string = TableInfoXY(TABLE_Table2, tiColName, MouseXPos(), MouseYPos()) IF ROW > 0 AND Column = "COL_Column1" THEN // COL_Column1 is the pretended column // describe here the conditions of the cell using an 'if' TABLE_Table2..PopupMenu = MENU_PopupMenu1 // popum menu ELSE // default menu TABLE_Table2..PopupMenu = Null END
Hope it helps,
Bruno |
| |
| |
| | | |
|
| | | | |
| | |
|