I don't see any way to create bubble help for a field that brings variables or calculations into the message. So I'm looking at OnFlyover to do the following:
On my form, I have a status area that shows "Printed" with a check box following. If it is checked, it means a certain report was printed. When the report is printed, it captures date, time, and rep who printed it.
I don't want to take screen real estate with the date, time, and rep. Rather, I would like to have the mouse hovering to show the date, time, and rep.
As I have it set right now, it has the following code in the OnFlyover:
DIM SHARED diaDetailsC_result as N
DIM SHARED diaDetailsC_OK_Button as L
diaDetailsC_OK_Button = .F.
title_var = "Printed Details"
message_text_var = a5_eval_expression("=iif(printed,dtoc(prindate)+\" \"+trim(printime)+\" by \"+trim(prinrep),\"\")",local_variables())
diaDetailsC_result=ui_msg_box(title_var,message_text_var)
This has the effect of showing a message box with the title "Printed Details" and the three variables date, time, and rep in the body of the message box. It also has the "OK" button and the red X close button.
I would like to eliminate the "OK" button and the red X close button and just show the information while hovering over the check box. Once the mouse pointer is taken away from the check box, I would like the message to disappear.
There are probably various ways to do this. One is to leave it the way it is but have something in the OnFlyoverleave that will remove the message box from view. I'm just trying to avoid the user having to click on OK or the red X to close the box.
My goal is to have several status indicators like the Printed state, and have it available for the user to hover over any status check box and see the details, behaving the same way that bubble help works (though I don't see bubble help being viable for this situation due to variables and calculations being needed in the message).
Any thoughts on this? Thanks.
Jeff
On my form, I have a status area that shows "Printed" with a check box following. If it is checked, it means a certain report was printed. When the report is printed, it captures date, time, and rep who printed it.
I don't want to take screen real estate with the date, time, and rep. Rather, I would like to have the mouse hovering to show the date, time, and rep.
As I have it set right now, it has the following code in the OnFlyover:
DIM SHARED diaDetailsC_result as N
DIM SHARED diaDetailsC_OK_Button as L
diaDetailsC_OK_Button = .F.
title_var = "Printed Details"
message_text_var = a5_eval_expression("=iif(printed,dtoc(prindate)+\" \"+trim(printime)+\" by \"+trim(prinrep),\"\")",local_variables())
diaDetailsC_result=ui_msg_box(title_var,message_text_var)
This has the effect of showing a message box with the title "Printed Details" and the three variables date, time, and rep in the body of the message box. It also has the "OK" button and the red X close button.
I would like to eliminate the "OK" button and the red X close button and just show the information while hovering over the check box. Once the mouse pointer is taken away from the check box, I would like the message to disappear.
There are probably various ways to do this. One is to leave it the way it is but have something in the OnFlyoverleave that will remove the message box from view. I'm just trying to avoid the user having to click on OK or the red X to close the box.
My goal is to have several status indicators like the Printed state, and have it available for the user to hover over any status check box and see the details, behaving the same way that bubble help works (though I don't see bubble help being viable for this situation due to variables and calculations being needed in the message).
Any thoughts on this? Thanks.
Jeff
Comment