数据窗口中,auto select text是edit列的一个属性,这是一个非常好的功能在我们使用数据窗口进行数据录入的时候。但是有一个问题让我觉得失望,就是对于edit mask的列却没有这个属性。

   一个解决方法就是,增加一个功能检查数据窗口中的这列是不是edit mask列,如果是的话就对这个文本高亮显示。

  下边的这个列子就是在temfocuschanged事件中,但是最好是放在service中。

// IF there is a row present
IF Row > 0 THEN 
	IF Describe( dwo.Name + '.Edit.Style' ) = 'editmask' THEN 
	// Select the edit controls text
		this.SelectText( 1, Len( String( &
			GetItemString( row, dwo.Name ) ) ) )
	END IF
END IF

相关文章:

  • 2022-12-23
  • 2021-11-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-07
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-10
  • 2022-12-23
  • 2021-08-18
  • 2022-12-23
相关资源
相似解决方案