Since there was some interest in this item, I've made some updates.
The highlighted items are each separate controls which allows
flexibility in placement in different forms.
The "clipboard" control where the clipboard contents is displayed has
been changed to a Variable Label from Variable Edit, the variable is
vClipboard
The other two controls are Static Text.
All three controls have the same ComponentID of "cidClipboard".
All three controls are designated as Hide On Startup. This reduces
clutter and information overload if there is no value in the clipboard.
The code in the Copy to Clipboard pushbutton has been updated to make
those three controls visible when there is a value in the clipboard:
--copy item code to clipboard
SET CLIPBOARD .vItem
SET VAR vClipboard = .vItem
RECALC VARIABLES
PROPERTY cidClipboard VISIBLE 'TRUE'
RETURN
Now when the form first comes up, it looks like this:
Clicking the green "Copy to Clipboard" button and then manually going
another row results in:
The "Copy to Clipboard" caption is generated in an OnRowEntry EEP:
--OnRowEntry; form PartStatusDisplay
SET VAR vCaption = (.vItem + (CHAR(013)) + 'Copy to Clipboard')
PROPERTY cidCopyToClipboard CAPTION .vCaption
RETURN
vItem is generated in a variable expression: vItem = Item (pretty
straightforward).
Doug
--
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
--
For group guidelines, visit
http://www.rbase.com/support/usersgroup_guidelines.php
---
You received this message because you are subscribed to the Google Groups "RBASE-L" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to rbase-l+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/rbase-l/059a604b-bc26-c513-826d-2124a9fbb3d4%40wi.rr.com.