Tony,Remember, you are only limited by your imaginations and the knowledge of the product. Nothing is impossible in R:BASE!
Here's are two approaches to accomplish your goal of getting the component ID of any object, such as Push Button, Bit Button, Variable Edit, Variable Memo, etc.
-- First Approach Using On Mouse Enter EEP ... and On Mouse Leave EEP ... See attached External Form File (See attached CtrlUnderMouse.rff)Just drop this external form into your database folder and then RUN the external form CtrlUnderMouse.rff
Mouse over on any form controls and watch the resulting Component ID.-- Second and the most eloquent approach would be to take advantage of RBTI_FORM_CLICKED System Variable.
RBTI_FORM_CLICKED is exactly what you need. . Create the Custom Form Action. . Each button executes the same form action. . In the action, there are IFs to check the value if RBTI_FORM_CLICKED. . Now you can run your application your way! Have fun implementing these cool approaches in your application! Very Best R:egards, Razzak At 07:19 PM 2/11/2021, Tony Luck wrote:
Anyone know how to get the value of a componentID dynamically. Its listed in the Object inspector as CompID and has the value. I've looked in the GETPROPERTY list and can't see how to extract the value.I want to use the componentID in a universal routine as the mouse hovers over a group of bit buttons to identify which button it is without having to hardcode the componentID for each individual bit button. Based on which bit button the mouse is over it would trigger which routine to run which does a lot of manipulation via property commands.Something like i.e.as the mouse entersGETPROPERTY CompID vcomponent (which naturally doesn't work as the componentid is required to get the value)or SET VAR vcomponent = COMPID in objectinspector Any ideas ?
-- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/rbase-l/0Lrd0t-1lsy1F1g5N-013NUP%40mrelay.perfora.net.
CtrlUnderMouse.rff
Description: Binary data

