--
You received this message because you are subscribed to the Google Groups "CommandFusion Software" group.
To unsubscribe from this group and stop receiving emails from it, send an email to commandfusio...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I'll have a look to see if I can spot anything.
After I was unable to change an existing button to a toggle button, I created a new page, put a button on the main page that navigated to the new page, put a button on the new page, and set its properties to simulate feedback and toggle, and assigned a digital join. I did not set any tags on this button, nor do I have tags on any of my other controls that refer the digital join for the toggle button. Also, I did not have any commands assigned to this button, nor did I set a watch on the button through js. I thought it might show me whether there was some misconfiguration on the button that I tried to convert to a toggle button. Yet for whatever reason, the toggle button on the new page behaved the same way, i.e., it acted like a momentary button - and that is when I posted the question about how a toggle button should behave.
Due to our conversation in another thread where I learned that if the tags for a control have a join number in those tags, let me pose the following question as a hypothetical:
If I set a number of controls with a tag, e.g., "receiver", then I CF.setJoin a join that is specific to only one of the controls that has the receiver tag, will all the joins attached to the controls that have the receiver tag be set? If so, then I will have to alter my attempt at generic code perhaps setting a variable in js with the join that is intended to provide that command.
Thank for your patience while I learn CF.
On Tuesday, March 3, 2015 at 12:19:44 AM UTC-5, Jarrod Bell wrote:Toggle works exactly as you described it.
Sounds like something else in your project is setting the joins back low.
--
OK we need to look into that and get a fix.
So the way to block updates to the slider whilst sliding is to use a flag that is set onPress and removed onRelease. Then when feedback comes in, if the flag is set, do not update the slider.
This is the best of both worlds, realtime feedback updates, and smooth simulated slider whilst dragging.
Maybe in a future release we can make that a simple option in a slider that has simulation mode enabled: "Prevent external slider updates whilst dragging".
I am posting to this thread because I initiated it, and also either my understanding is incomplete, or there is yet another issue with iViewer 4.0.201 on Android. As I previously stated, I am using a Galaxy Tab 3 10.1 running Android 4.4.2 .
From what I have read elsewhere, my understanding of how a toggle button should work is that when the associated digital join is 0 and the button is pressed, the value of the join should be 0 when I receive the button press event in an OnObjectPressed handler, and when the value of the digital join is 1 (i.e., the button is On), I should receive a 1 as the value of the join in an OnObjectPressed handler as I am watching for the pressed even through the digital join associated with the toggle button.
However, no matter what the associated digital join is set to, I always receive the value of that join as 1 in the OnObjectPressed handler. If I watch the OnObjectReleased event, the value of the join is always 0. This is happening for every toggle button that I create.
Am I missing something?
I am posting to this thread because I initiated it, and also either my understanding is incomplete, or there is yet another issue with iViewer 4.0.201 on Android. As I previously stated, I am using a Galaxy Tab 3 10.1 running Android 4.4.2 .
From what I have read elsewhere, my understanding of how a toggle button should work is that when the associated digital join is 0 and the button is pressed, the value of the join should be 0 when I receive the button press event in an OnObjectPressed handler, and when the value of the digital join is 1 (i.e., the button is On), I should receive a 1 as the value of the join in an OnObjectPressed handler as I am watching for the pressed even through the digital join associated with the toggle button.
However, no matter what the associated digital join is set to, I always receive the value of that join as 1 in the OnObjectPressed handler. If I watch the OnObjectReleased event, the value of the join is always 0. This is happening for every toggle button that I create.
Am I missing something?