Book a Demo

Author Topic: Control child dialog in Win32 UI simulation  (Read 5716 times)

Waschek

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Control child dialog in Win32 UI simulation
« on: January 15, 2016, 08:10:03 pm »
Hi all,
can anybody help me with controlling of child dialogs in Win32 UI simulation? If I create dialog, which is under its parent dialog in Project Browser hierarchy, for example "MyChildDialog", and I set "Style" win32 tagged value of this dialog to "child", this dialog is not showed during simulation.

Javascript command "dialog.MyChildDialog.Show=true" cannot be executed in this situation, because of "TypeError: dialog.MyChildDialog is undefined" error message. I don't know how to set visibility of this dialog, or how to control it. Also I don't know where and how can I set the relationship between parent and child dialog (is placing in Project Browser hierarchy enough?).

I can't find any help of child windows simulations, or any similar theme, or full meaning and using of tagged values of win32 dialogs.

Thanks a lot.

Marian

Aaron B

  • EA Administrator
  • EA User
  • *****
  • Posts: 941
  • Karma: +18/-0
    • View Profile
Re: Control child dialog in Win32 UI simulation
« Reply #1 on: January 18, 2016, 10:52:51 am »
I'd suggest putting both dialogs at the same level in the hierarchy.  Don't nest one dialog below the other in the Project Browser.  You could use some sort of connector between the two dialogs to indicate their parent/child relationship if needed, but it would only be for your own reference.

Example:

Dialogs
 |- MyMainDialog
 |- MyChildDialog

Waschek

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Control child dialog in Win32 UI simulation
« Reply #2 on: January 25, 2016, 07:24:34 pm »
Hi, this doesn't solve the controlling problem of child window. The same error still appears.

Dermot

  • EA Administrator
  • EA User
  • *****
  • Posts: 591
  • Karma: +7/-0
    • View Profile
Re: Control child dialog in Win32 UI simulation
« Reply #3 on: January 26, 2016, 04:29:36 pm »
There is a simple example model supplied EAExample model:
 - Project Models.Model Simulation.State Machine Models.Customer Login.Customer.Customer Login

See also the whitepaper and model on Simulation:
http://community.sparxsystems.com/white-papers/692-state-machine-simulation-in-enterprise-architect