Upgrade Guides for the Genero Desktop Client / Genero Desktop Client 2.2x upgrade guide |
This section describes differences you may encounter when upgrading to GDC 2.21.
The installer and uninstaller have been rewritten using MSI technology. On Windows 7 or Vista, you will need elevated privileges to run the installer. The exe file we provide asks for elevated privileges, but this is not the case for:
While implementing the feature request support non integer font size, we noticed that any font copy was using an integer font size value. So this means that the default font size was not 8.25 as the monitor shows, but only 8. This issue is now fixed ; while this is probably not noticeable in most of the cases, this may have an impact if you designed your form exactly for a given resolution.
MAIN DEFINE cmd1 STRING DEFINE cmd2 STRING LET cmd1 = "cmd1" MENU "test" COMMAND cmd1 COMMAND cmd2 COMMAND "exit" EXIT MENU END MENU END MAIN
Figure 1. GDC behaving like TUI
MAIN DEFINE commands ARRAY[4] OF STRING DEFINE idx INT LET commands[1] = "cmd1" LET commands[2] = "cmd2" MENU "test" BEFORE MENU FOR idx = 1 TO 2 SHOW OPTION commands[idx] END FOR FOR idx = 3 TO 4 HIDE OPTION commands[idx] END FOR COMMAND commands[1] COMMAND commands[2] COMMAND commands[3] COMMAND commands[4] COMMAND "exit" EXIT MENU END MENU END MAIN
This will result in an extra button with no label on your screen:
Figure 2. Extra button with no label
FOR idx = 3 TO 4 HIDE OPTION commands[idx] END FOR
HIDE OPTION commands[3] HIDE OPTION commands[4]
HIDE OPTION "" HIDE OPTION ""
that is, hide twice the first action named "". The runtime system has no way to know you would like to hide a different option as they all have the same name. Therefore only the first action without a name is hidden, and all the other are visible.
MAIN DEFINE commands ARRAY[4] OF STRING DEFINE idx INT LET commands[1] = "cmd1" LET commands[2] = "cmd2" LET commands[3] = "cmd3" --give a name even if not used LET commands[4] = "cmd4" --give a name even if not used