Custom MVO INFIELD

Home Forums Problems and solutions in GDL Others Custom MVO INFIELD

Tagged: ,

Viewing 3 reply threads
  • Author
    Posts
    • #3281
      Bruce Walker
      Participant

      I have created a custom MVO, which works mostly as intended, but for some reason, the INFIELD method is not working. No matter what type of method I select, it will just give me a white box with the parameter value.

      I figure there must be a global setting I’m missing, because I copied the code out of LibraryGlobals13 (in this case, for the door swing type). Works fine in LibraryGlobals13 – but just gives me a white infield box in my MVO.

      What am I missing?

      www.brucepwalker.com
      https://www.mindmeister.com/65450406

      AC20 6005 AUS Full & AC 21 3009 NZE Full | Win 10 Pro 64 | Intel i7-7700HQ 2.80GHz | 16 Gb RAM
      NVIDIA GeForce GTX 1060 8Mb

    • #3283
      Bruce Walker
      Participant

      Code:

      “Header fields”: ! (hf)

      hf_menu_w = 280
      hf_menu_h = 25
      hf_button_h = 21
      hf_button_w = 32
      hf_gap = 1
      hf_x = 0
      hf_y = 0

      UI_STYLE 0, 1
      UI_INFIELD{3} “gs_ui_current_page”, hf_x, hf_y, hf_menu_w, hf_menu_h,
      2, “”, 2, 1,
      0, 0, 0, 0,
      1, “Site”, 1,
      2, “Cabinets”, 2
      UI_STYLE 0, 0

      hf_x = hf_menu_w + hf_gap * 2
      hf_y = 2
      UI_BUTTON UI_PREV, “<<“, hf_x, hf_y, hf_button_w, hf_button_h, gs_ui_current_page – 1
      hf_x = hf_x + hf_button_w + hf_gap
      UI_BUTTON UI_NEXT, “>>”, hf_x, hf_y, hf_button_w, hf_button_h, gs_ui_current_page + 1

      hf_y = hf_menu_h + 5
      UI_SEPARATOR 0, hf_y, ui_max_x, hf_y

      RETURN

      www.brucepwalker.com
      https://www.mindmeister.com/65450406

      AC20 6005 AUS Full & AC 21 3009 NZE Full | Win 10 Pro 64 | Intel i7-7700HQ 2.80GHz | 16 Gb RAM
      NVIDIA GeForce GTX 1060 8Mb

    • #3286
      Pavel Čapek
      Participant

      Hello Bruce,
      I beleve, you also need to define values in parameters script.

      values “gs_ui_current_page” 1, 2

      Pavel Čapek
      BIM Project

    • #3287
      Bruce Walker
      Participant

      That’s it – that’s what I was missing. I had forgotten that one needed to define values for this to work in the interface script. Thanks Pavel, much appreciated.

      www.brucepwalker.com
      https://www.mindmeister.com/65450406

      AC20 6005 AUS Full & AC 21 3009 NZE Full | Win 10 Pro 64 | Intel i7-7700HQ 2.80GHz | 16 Gb RAM
      NVIDIA GeForce GTX 1060 8Mb

Viewing 3 reply threads
  • The forum ‘Others’ is closed to new topics and replies.