Announcement

Collapse
No announcement yet.

change initial form during runtime

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • change initial form during runtime

    Hello,

    is there any way to change the initial form? So that another form appears after restart.

    thx for replays.

    I'am using Workshop 4 Pro.

    Andi
    Last edited by Trendy; 31st January 2019, 06:19 AM.

  • #2
    Hello Andi,

    If you want to have another form appear after restart you can do so by using Genie Magic. Since you've said that your using Workshop4 Pro this is readily accesible to you. I've attached a sample code for reference. I hope it helps.

    Best regards,
    Bern
    Attached Files
    Last edited by bernadette; 1st February 2019, 09:48 AM.

    Comment


    • #3
      Also I forgot to add that there's a simple way to change the form.
      This process will get the host to change the form. This however may cause some flick to the default form first before it changes to the new one, thus you can just have the initial form set to blank Form in WS4.

      To do this first you go to toolbar and then Initial Form, just select the drop down menu and choose the form that you want.

      I've attached a sample image as a reference.

      Attached Files
      Last edited by bernadette; 1st February 2019, 10:06 AM.

      Comment


      • #4
        Hello Bernadette,

        Thanks for your answer. Your second post is clear... But I have to change the Initial Form during runtime (to change this by user)

        Could you explain your code from the first answer? I See only "activateform(1)"... I cant beleave that thats will change the Initial Form?

        Best regards Andi

        Comment


        • #5
          Hello Andi,

          The sample code that I gave to you demostrate the use of the uSD card as non-volatile memory so that the program "remember" the last Form even after several power cycles.

          When you press the corresponding button to each form it will change to the designated form that you want to go to, thus having the "ActivateForm()", this function activates the form specified by the parameter. The "ActivateForm()" function is a callable functions this is a function available within Genie that may be use to the Genie Magic user.

          You can check this link to ViSi-Genie Reference Manual for additional ref: https://www.4dsystems.com.au/product...ual_R_1_11.pdf

          Chapter 6: Genie Magic Callable Function

          As for the code use to program the uSD card, you can refer to Diablo16 Processor Internal Functions Reference Manual under Media Function : https://www.4dsystems.com.au/product/4D_Workshop_4_IDE/ .

          Also you can check this appnote for further reference: https://www.4dsystems.com.au/appnote/4D-AN-00199/.

          You can just modify the code depending of course to your need.

          Best regards,
          Bern
          Last edited by bernadette; 1st February 2019, 01:04 PM.

          Comment

          Working...
          X