P3Speller submatrix index in data file

Locked
stefan
Posts: 13
Joined: 22 Oct 2009, 16:43

P3Speller submatrix index in data file

Post by stefan » 16 Feb 2012, 14:49

Is there any indication in a P3Speller generated data file as to what the index of the current menu is at any given time during the session, when using submatrices?

mellinger
Posts: 1341
Joined: 12 Feb 2003, 11:06

Re: P3Speller submatrix index in data file

Post by mellinger » 16 Feb 2012, 14:58

No, there is not. It is however not difficult to add a state variable that contains this information. Just declare such a variable in the constructor of the P3SpellerTask class, and set it to the index of the matrix at the beginning of P3SpellerTask::LoadMenu().

Regards,
Juergen

mellinger
Posts: 1341
Joined: 12 Feb 2003, 11:06

Re: P3Speller submatrix index in data file

Post by mellinger » 04 Apr 2012, 05:04

As of rev. 3901, there is now a SpellerMenu state variable that contains the one-based index of the current menu. It may also be set from outside (e.g., via the AppConnector protocol, or by operator scripting) in order to switch menus.

-Juergen

stefan
Posts: 13
Joined: 22 Oct 2009, 16:43

Re: P3Speller submatrix index in data file

Post by stefan » 05 Apr 2012, 14:35

Good news, thanks!

Locked

Who is online

Users browsing this forum: No registered users and 0 guests