Hi all,
I am given support for the 3D mouse in our software. I have created a coupe of advanced settings using a cfg file and when I change any of this options, my application received the SI_SETTING_CHANGED_EVENT. What to do now? how can I know what option changed and what is the new value ? I didn't found any information or sample.
Thanks in advance,
Carlos.
GUI & SI_SETTING_CHANGED_EVENT
Moderator: Moderators
Re: GUI & SI_SETTING_CHANGED_EVENT
That appears to be a notification sent out when one of the filters or axes orientations change in the cfg ext files. Are you using the "Action Interface" as documented in our SDK?
What are you changing exactly when this occurs?
It is probably just a notification to do something if you care about those state changes. For example, if you were displaying the setting in your GUI.
Many of these things are added because we need them for our plugins.
What are you changing exactly when this occurs?
It is probably just a notification to do something if you care about those state changes. For example, if you were displaying the setting in your GUI.
Many of these things are added because we need them for our plugins.
Hi jwick,
Thanks for respond. We are trying to emulate the advanced tabs used in the demo viewer (sui_viewer.exe). Right now we can visualize our custom options in the driver Advanced Settings. It is sending SI_SETTING_CHANGED_EVENT each time we change any of the control values. What we need is a way to Set/Get the state of each of these custom controls used.
Our second problem is how to set the text value for the label "STR_ADINA_DOLLY".
Here is the specific code for the UI:
Thanks,
Carlos.
Thanks for respond. We are trying to emulate the advanced tabs used in the demo viewer (sui_viewer.exe). Right now we can visualize our custom options in the driver Advanced Settings. It is sending SI_SETTING_CHANGED_EVENT each time we change any of the control values. What we need is a way to Set/Get the state of each of these custom controls used.
Our second problem is how to set the text value for the label "STR_ADINA_DOLLY".
Here is the specific code for the UI:
Code: Select all
<UI>
<AdvancedSettings>
<Tabs>
<Tab>
<Section>
<Name>STR_NAVIGATION_MODES</Name>
<RadioGroup ID="NavigationMode">
<RadioButton ID="ObjectMode">
<Name>STR_OBJECT_MODE</Name>
</RadioButton>
<RadioButton ID="CameraMode">
<Name>STR_CAMERA_MODE</Name>
</RadioButton>
<DefaultValue>ObjectMode</DefaultValue>
</RadioGroup>
<CheckBox ID="LockHorizon">
<Name>STR_LOCK_HORIZON</Name>
<DefaultValue>false</DefaultValue>
</CheckBox>
<CheckBox ID="Dolly">
<Name>STR_ADINA_DOLLY</Name>
<DefaultValue>true</DefaultValue>
</CheckBox>
</Section>
<Section>
<Name>STR_ROTATION_CENTER</Name>
<CheckBox ID="AutoPivot">
<Name>STR_AUTO_PIVOT</Name>
<DefaultValue>true</DefaultValue>
</CheckBox>
<CheckBox ID="SelectionFollower">
<Name>STR_USE_SELECTED_ITEM</Name>
<DefaultValue>true</DefaultValue>
</CheckBox>
</Section>
</Tab>
</Tabs>
</AdvancedSettings>
</UI>
Carlos.
Re: GUI & SI_SETTING_CHANGED_EVENT
Hi Carlos,
I currently don't have a way for you to create and distribute a multi-language string table for STR_ADINA_DOLLY etc. You put the translated string in there: "Dolly"?
There are some new functions for referencing those values: SiAppCfgGetValue, SiAppCfgSetValue, SiAppCfgAddValueChangedHandler, SiAppCfgRemoveValueChangedHandler. Unfortunately, I don't know if those are in the released SDK yet.
Jim
I currently don't have a way for you to create and distribute a multi-language string table for STR_ADINA_DOLLY etc. You put the translated string in there: "Dolly"?
There are some new functions for referencing those values: SiAppCfgGetValue, SiAppCfgSetValue, SiAppCfgAddValueChangedHandler, SiAppCfgRemoveValueChangedHandler. Unfortunately, I don't know if those are in the released SDK yet.
Jim
Re: GUI & SI_SETTING_CHANGED_EVENT
Hi Jim,
Do you know when these function are going to be released ?
Thanks,
Carlos.
Do you know when these function are going to be released ?
Thanks,
Carlos.
Re: GUI & SI_SETTING_CHANGED_EVENT
They do appear not to be in the current SDK. I won't have an update for a couple of weeks when vacations end. In the mean time, you can put a watch on that file to see what is happening to it. The file is the data base. Changes to it are all that matter.