Git Product home page Git Product logo

Comments (2)

blippy avatar blippy commented on September 5, 2024

ITEM 1 - MENU KEYS

fallback.c should now be changed to read:

//      "*copy.sensitive:               no",
//      "*paste.sensitive:              no",
        "*copy.accelerator:            Ctrl<Key>c",
        "*paste.accelerator:            Ctrl<Key>v",
        "*copy.acceleratorText:         Ctrl-c",
        "*paste.acceleratorText:         Ctrl-v",

ITEM 2 - COPYING

Changes needed to be made in CopyCB(). Use the function decomp() to obtain a pointer to the formula expressed as a string. The functions XmClipboardStartCopy(), XmClipboardCopy(), XmClipboardEndCopy() and a number of other Motif functions are used to affect the copy to clipboard.

In the line long private_id = 0x01E0;, 01E0 is a "magic number" identifying oleo. It looks like the word "OLEO".

Most of the code was cribbed from http://www.oreilly.com/openbook/motif/vol6a/Vol6a_html/ch17.html. In a call to XmClipboardStartCopy(), the parameter CurrentTime was passed in, as per the afrorementioned webpage. However man XmClipboardStartCopy says:

A valid timestamp must be supplied; it is not sufficient to use CurrentTime.

There does not appear to be an issue with its use, however.

ITEM 3 - PASTING

XmClipboardRetrieve() was called to retrieve the contents of the clipboard into a buffer of size 80. Motif has an ability to read in the clipboard in chunks, but I think the simple solution I have adopted is sufficient.

Setting this string - which may actually be a formula - into the cell is straigtforward:

                new_value(curow, cucol, buf);

from neoleo.

blippy avatar blippy commented on September 5, 2024

Closing, as issue has been implemented.

from neoleo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.