Re: Win32Lib: IDE - new version

new topic     » goto parent     » topic index » view thread      » older message » newer message

Judith,

Dunno if you've already done it or not, but in case you didn't & are
interested, I made the cut'n paste in your IDE work from right mouse click
('cause that's how I like to use it);  here's what I did:

in Ide_code.ew,
after
    setCheck( CodeWinRuler, 1 )

I added:
--* create a popup menu for editing in code window:
global constant
EditPopup  = create( Popup, "", CodeWin, 0, 0, 0, 0, 0 ),
PopUp_Delete = create( MenuItem, "Delete", EditPopup, 0, 0, 0, 0, 0 ),
PopUp_Cut    = create( MenuItem, "Cut", EditPopup, 0, 0, 0, 0, 0 ),
PopUp_Copy   = create( MenuItem, "Copy", EditPopup, 0, 0, 0, 0, 0 ),
PopUp_Paste  = create( MenuItem, "Paste", EditPopup, 0, 0, 0, 0, 0 )

----------------------------------------------
then, in Ide_edit.ew,
at the very end of the procedure Editor_Mouse,
before end if,
I added:

--* right mouse click brings up popup menu for editing:
    elsif event = RightDown then

 if anchorOn = False then
      setEnable( PopUp_Delete, 0 )
      setEnable( PopUp_Cut, 0 )
      setEnable( PopUp_Copy, 0 )
 else
      setEnable( PopUp_Delete, 1 )
      setEnable( PopUp_Cut, 1 )
      setEnable( PopUp_Copy, 1 )
      setEnable( PopUp_Paste, 1 )
 end if
        popup( EditPopup, x, y )
-----------------------------------------------------------------

What I haven't looked at yet is making the Paste work to *replace* selected
text instead of *adding* it at the "anchor point".

Dan

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu