GUI & SI_SETTING_CHANGED_EVENT

Post questions, comments and feedback to our 3Dconnexion Windows Development Team.

Moderator: Moderators

Post Reply
icebeat
Posts: 9
Joined: Wed Aug 12, 2015 8:25 am

GUI & SI_SETTING_CHANGED_EVENT

Post by icebeat » Wed Aug 12, 2015 9:25 am

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.

jwick
Moderator
Moderator
Posts: 2531
Joined: Wed Dec 20, 2006 2:25 pm
Location: USA
Contact:

Re: GUI & SI_SETTING_CHANGED_EVENT

Post by jwick » Fri Aug 14, 2015 12:48 am

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.

icebeat
Posts: 9
Joined: Wed Aug 12, 2015 8:25 am

Post by icebeat » Fri Aug 14, 2015 7:47 am

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:

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>
Thanks,
Carlos.

jwick
Moderator
Moderator
Posts: 2531
Joined: Wed Dec 20, 2006 2:25 pm
Location: USA
Contact:

Re: GUI & SI_SETTING_CHANGED_EVENT

Post by jwick » Mon Aug 17, 2015 5:45 am

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

icebeat
Posts: 9
Joined: Wed Aug 12, 2015 8:25 am

Re: GUI & SI_SETTING_CHANGED_EVENT

Post by icebeat » Mon Aug 17, 2015 8:10 am

Hi Jim,

Do you know when these function are going to be released ?

Thanks,

Carlos.

jwick
Moderator
Moderator
Posts: 2531
Joined: Wed Dec 20, 2006 2:25 pm
Location: USA
Contact:

Re: GUI & SI_SETTING_CHANGED_EVENT

Post by jwick » Mon Aug 17, 2015 8:28 am

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.

Post Reply