1. carlos efrain
  2. PowerBuilder
  3. Friday, 14 October 2022 05:33 AM UTC

Buenas noches a todos

 

Existe alguna forma de que cuando le de clic a una campo de un datawindos me abra una label con cierto datos

 

A continuación anexo un pantallazo ejemplo

 

Att


Carlos 

Attachments (2)
carlos efrain Accepted Answer Pending Moderation
  1. Friday, 14 October 2022 18:18 PM UTC
  2. PowerBuilder
  3. # 1

Gracias Marco

 

Se puede pasar el anterior código al MouseMove?

 

gracias

Comment
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Friday, 14 October 2022 14:11 PM UTC
  2. PowerBuilder
  3. # 2

Hola Carlos;


   Sí, en el evento "Clicked" del DataWindow Control tiene un puntero al objeto debajo del mouse llamado "DWO". Luego puede usar esa información para abrir una ventana de respuesta relacionada con los detalles que necesita mostrar.

    Por ejemplo, "DWO.Name" le permite introspeccionar el nombre del objeto donde el usuario de la aplicación hizo clic con el mouse.

HTH
Saludos .. Chris

Comment
There are no comments made yet.
Marco Meoni Accepted Answer Pending Moderation
  1. Friday, 14 October 2022 08:42 AM UTC
  2. PowerBuilder
  3. # 3

Hello Carlos,

say you click on the DW "emp_fname" column:

  1. identify that column in the clicked event
  2. display the text in whatever message box, window, textbox, you want

Best,

.m

 

Choose Case dwo.name
Case 'emp_fname'
// your logig to create the message do display
String ls_msg
ls_msg = "Hello you have cliecked on first name"

// open a (response) window passing the text to display...
OpenWithParm(w_somewindow, ls_msg)

// ...or a messagebox
Messagebox("Hello", "you have cliecked on first name")

// ...or a "floating" textbox
st_message.x = xpos
st_message.y = ypos
st_message.Text = ls_msg
st_message.Visible = True

// ...or use a yellow tooltip
this.Object.emp_fname.Tooltip.enabled = true
this.Object.emp_fname.Tooltip.title = "you have clicked!"
this.Object.emp_fname.Tooltip.tip = ls_msg
End Choose

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.