svenke Posted July 21, 2020 Posted July 21, 2020 I'm evaluating uniGui compared to TMS Core. I want to color the cells in the string grid from the mousemove event handler. How do I do that and where is the documentation for the string grids java script functions. Sincerely, Sven Quote
Sherzod Posted July 21, 2020 Posted July 21, 2020 Hello, Thank you for your interest in UniGUI. Can you please explain in more detail what you wanted? Maybe you should look at demos, for example this demo example: \FMSoft\Framework\uniGUI\Demos\Desktop\GridCellStyle Quote
svenke Posted July 21, 2020 Author Posted July 21, 2020 There was nothing in the GridCellStyle example that showed how to do what I want. As I said before, I want to color the cells in the stringgrid when the mouse passes over them when the left mouse button is pressed. This must be done in the JavaScipt event handler "mousemove". How do I access the grid from the event handler and what functions are available in the event handler to access the grid and where are they documented. What I need: 1. Accessing the grid. 2. Accessing the current cell below the mouse pointer. 3. Be able to check if the left mouse button is pressed. Quote
Sherzod Posted July 21, 2020 Posted July 21, 2020 6 hours ago, svenke said: There was nothing in the GridCellStyle example that showed how to do what I want. As I said before, I want to color the cells in the stringgrid when the mouse passes over them when the left mouse button is pressed. This must be done in the JavaScipt event handler "mousemove". How do I access the grid from the event handler and what functions are available in the event handler to access the grid and where are they documented. What I need: 1. Accessing the grid. 2. Accessing the current cell below the mouse pointer. 3. Be able to check if the left mouse button is pressed. UniStringGrid.ClientEvents.ExtEvents -> function cellclick(sender, td, cellIndex, record, tr, rowIndex, e, eOpts) { if (e.button == 0) { td.style.color = 'green' } } Quote
svenke Posted July 24, 2020 Author Posted July 24, 2020 Not really what I want. I need to do it from the event handler "movemouse". Also, where are the javascript event handlers documented? Please read my previous post again. Quote
Sherzod Posted July 24, 2020 Posted July 24, 2020 21 minutes ago, svenke said: I need to do it from the event handler "movemouse". On 7/21/2020 at 11:08 PM, Sherzod said: 3. Be able to check if the left mouse button is pressed. Sorry, your requests contradict with each other, don't they ? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.