Hi all,
I'm using the latest PFC in my PB2021 development. In the u_dw object, I over-ride the anscestor pfc script for lbuttondown, lbuttonup, rbuttondown, and rbuttonup events. In the descendent dw, I add the following code to the rbuttonup event:
//Over-ride
// Don't do anything if a valid row isn't clicked
if IsNull( row ) then
return
end if
//If this is the first row, only allow insert
if this.Rowcount() = 0 then
im_popup.m_calform.m_testpoints.m_append.Enabled = FALSE
im_popup.m_calform.m_testpoints.m_delete.Enabled = FALSE
im_popup.m_calform.m_testpoints.m_creategroup.Enabled = FALSE
im_popup.m_calform.m_testpoints.m_renamegroup.Enabled = FALSE
im_popup.m_calform.m_testpoints.m_cutrows.Enabled = FALSE
im_popup.m_calform.m_testpoints.m_copyrows.Enabled = FALSE
im_popup.m_calform.m_testpoints.m_pasterows.Enabled = FALSE
end if
im_popup.of_SetParent( this )
im_popup.m_calform.m_testpoints.PopMenu( iw_frame.PointerX(), iw_frame.PointerY() )
This works fine. The m_insert and m_append call user events, not the pfc events. After the user event executes, another pop-up menu shows up... I don't know where it's coming from... the options on the strange pop-up are:
copy
paste
delete
select all
right to left reading order
show unicode control characters
insert unicode control characters
open IME
reconversion
Any ideas?
~~~Tracy