RightClick event in a Browse Control
Posted: Mon Jun 22, 2020 7:18 pm
I very much appreciate all the help forum members have kindly given in the past! I really need some help with a particular problem.
Background:
I have a modal Form. On it is a Tab control that has two Pages. On Page2 there is a Browse control displaying a .DBF. Thus, the hierarchy is:
Window (MyForm)
Tab (MyTab)
Page #1 (PageItems)
Page #2 (PageStates)
Browse (BrowseStates)
Problem: I need the browse’s column #1 cell (of the row) to be changed on a right-click.
However, HMG’s Browse does not have a built-in RightClick event.
In folder “C:\HMG.3.4.4\SAMPLES\Controls\Grid\Grid_Context_Menu\” there is one right-click code sample. Unfortunately I am not successfully adapting this code for the following reasons:
1) This sample uses a “Grid” control (instead of a “Browse”).
2) these rows are populated by an ARRAY rather than directly by a .DBF table.
3) My Browse (and its cells) are nested multiple layers beneath the window.
Questions:
How can I capture a right-click in such a nested Browse of a .DBF? Is there a more appropriate sample?
What is the syntax I’d use to change the value of a right-clicked Browse cell. Or, do I need to change the field value in the .DBF record.
Thank you your guidance and suggestions.
Regards,
Red2
=========== Google into Spanish:
¡Aprecio mucho toda la ayuda que los miembros del foro han brindado amablemente en el pasado! Realmente necesito ayuda con un problema en particular.
Antecedentes:
Tengo un formulario modal. En él hay un control Tab que tiene dos páginas. En la página 2 hay un control Examinar que muestra un archivo .DBF. Por lo tanto, la jerarquía es:
Ventana (MyForm)
Pestaña (MyTab)
Página # 1 (PageItems)
Página # 2 (Estados de página)
Navegar (BrowseStates)
Problema: necesito cambiar la celda de la columna n. ° 1 de exploración (de la fila) con un clic derecho.
Sin embargo, la exploración de HMG no tiene un evento RightClick incorporado.
En la carpeta "C:\HMG.3.4.4\SAMPLES\Controls\Grid\Grid_Context_Menu\" hay una muestra de código de clic derecho. Lamentablemente, no estoy adaptando con éxito este código por los siguientes motivos:
1) Esta muestra utiliza un control "Grid" (en lugar de un "Examinar").
2) estas filas están pobladas por un ARRAY en lugar de directamente por una tabla .DBF.
3) Mi exploración (y sus celdas) están anidadas en varias capas debajo de la ventana.
Preguntas:
¿Cómo puedo capturar un clic derecho en una exploración anidada de un .DBF? ¿Hay una muestra más apropiada?
¿Cuál es la sintaxis que usaría para cambiar el valor de una celda Examinar con el botón derecho? O, ¿necesito cambiar el valor del campo en el registro .DBF.
Gracias por su orientación y sugerencias.
Background:
I have a modal Form. On it is a Tab control that has two Pages. On Page2 there is a Browse control displaying a .DBF. Thus, the hierarchy is:
Window (MyForm)
Tab (MyTab)
Page #1 (PageItems)
Page #2 (PageStates)
Browse (BrowseStates)
Problem: I need the browse’s column #1 cell (of the row) to be changed on a right-click.
However, HMG’s Browse does not have a built-in RightClick event.
In folder “C:\HMG.3.4.4\SAMPLES\Controls\Grid\Grid_Context_Menu\” there is one right-click code sample. Unfortunately I am not successfully adapting this code for the following reasons:
1) This sample uses a “Grid” control (instead of a “Browse”).
2) these rows are populated by an ARRAY rather than directly by a .DBF table.
3) My Browse (and its cells) are nested multiple layers beneath the window.
Questions:
How can I capture a right-click in such a nested Browse of a .DBF? Is there a more appropriate sample?
What is the syntax I’d use to change the value of a right-clicked Browse cell. Or, do I need to change the field value in the .DBF record.
Thank you your guidance and suggestions.
Regards,
Red2
=========== Google into Spanish:
¡Aprecio mucho toda la ayuda que los miembros del foro han brindado amablemente en el pasado! Realmente necesito ayuda con un problema en particular.
Antecedentes:
Tengo un formulario modal. En él hay un control Tab que tiene dos páginas. En la página 2 hay un control Examinar que muestra un archivo .DBF. Por lo tanto, la jerarquía es:
Ventana (MyForm)
Pestaña (MyTab)
Página # 1 (PageItems)
Página # 2 (Estados de página)
Navegar (BrowseStates)
Problema: necesito cambiar la celda de la columna n. ° 1 de exploración (de la fila) con un clic derecho.
Sin embargo, la exploración de HMG no tiene un evento RightClick incorporado.
En la carpeta "C:\HMG.3.4.4\SAMPLES\Controls\Grid\Grid_Context_Menu\" hay una muestra de código de clic derecho. Lamentablemente, no estoy adaptando con éxito este código por los siguientes motivos:
1) Esta muestra utiliza un control "Grid" (en lugar de un "Examinar").
2) estas filas están pobladas por un ARRAY en lugar de directamente por una tabla .DBF.
3) Mi exploración (y sus celdas) están anidadas en varias capas debajo de la ventana.
Preguntas:
¿Cómo puedo capturar un clic derecho en una exploración anidada de un .DBF? ¿Hay una muestra más apropiada?
¿Cuál es la sintaxis que usaría para cambiar el valor de una celda Examinar con el botón derecho? O, ¿necesito cambiar el valor del campo en el registro .DBF.
Gracias por su orientación y sugerencias.