1. mahmoud mahmoud
  2. PowerBuilder
  3. Saturday, 21 January 2023 18:39 PM UTC

 

hello

how are you everybody

i have aproblem and need for Helping Please;

 

 

i have 4 datawindow side by side to review items with type tabular

i insert code in mousemove event to change the name of item from black color to red color

 

i need to when mouse move to dw_1  return other datawindow color black or do something else

or when mouse move to dw_2   return other datawindow color black

or when mouse move to dw_3   return other datawindow color black

else

 

 

string ls_color1 , ls_color2 , ls_modify , ls_column , ls_error , ls_color3 , ls_color4 , ls_column2

ls_dw.accepttext()

ls_color1 = String(RGB(0,0,0))//black
ls_color2 = String(RGB(150, 0, 0))      //Red
ls_color3 = String(RGB(0, 0, 255))
ls_color4 = String(RGB(0, 0, 128))

ls_column = 'name'
ls_column2 = 'salprice'

if ll_row>0 then
		ls_modify = ls_column+".Color='0~tif (getRow() ="+string(ll_row)+","+ls_color2+", "+ls_color1+")'"
				
		
		ls_error = ls_dw.modify(ls_modify)
		if ls_error <> '' then messagebox('problems with the modify', 'modify:'+ls_modify+'~nreturn: '+ls_error)
		
		
		
	else
		ls_modify = ls_column+".Color='0~tif (getRow() ="+string(ll_row)+","+ls_color1+", "+ls_color1+")'"
end if
Accepted Answer
mahmoud mahmoud Accepted Answer Pending Moderation
  1. Saturday, 21 January 2023 19:09 PM UTC
  2. PowerBuilder
  3. # Permalink

 

Hi MR Chris Pollach @Appeon

the problem when move mouse to dw_1 row take last effect for mousemove like the screenshot more items have red color 

 

i need to when mouse move to dw_1 return other datawindow color black or do something else

or when mouse move to dw_2   return other datawindow color black

or when mouse move to dw_3   return other datawindow color black

Comment
  1. mahmoud mahmoud
  2. Sunday, 22 January 2023 12:36 PM UTC
Thank you for your interest, but I don't know much trigger

Can you give me example code



Best regards
  1. Helpful
  1. Chris Pollach @Appeon
  2. Sunday, 22 January 2023 16:28 PM UTC
User Events and the Trigger or Post commands (and syntax) are well documented in the PB help. That also includes example code as well. Just do a search on those above key words in the PB help.

If you need more "how to" information on the above as it's all new to you. Then I would suggest having a look at the free PB Fundamentals course on Appeon-U. Just focus on the User Objects & User Event chapters.

FYI: https://www.appeon.com/appeon-u

HTH
  1. Helpful 1
  1. mahmoud mahmoud
  2. Thursday, 26 January 2023 20:27 PM UTC
Thanks for you Mr Chris Pollach @Appeon

i will search about trigger

best regards
  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Saturday, 21 January 2023 19:03 PM UTC
  2. PowerBuilder
  3. # 1

Hi Muhammad;

  Thanks for the screen capture & sample code. However, you do not describe the problem???

Regards ...  Chris 

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.