Toolbar

The IDE toolbar with no project open. Every button is greyed out, from save and find through the start, break, stop and stepping controls to the build, alignment, resize and z-order groups; the zoom box beside the PREVIEW button is empty, and there is no Global Search box at the right. Only the build configuration box, reading win32, is active. The same toolbar with a project open but not running. Start is a green triangle, Restart the compiler a blue circular arrow, and Clean and Build are white, while Break and Stop stay grey. A Global Search box now sits at the right, and the zoom box is still empty. The same toolbar with a form open in the designer. Switch Between Form And Code has become a red circle holding a white lightning bolt and the zoom box reads 100%; Start is still green and the debugging buttons are still grey. The same toolbar while the project runs. Start has gone grey, Break is blue and Stop is a red square; the red form and code button and the 100% zoom box are unchanged.

  • Save All Changes (CTRL + S)
  • Find In Project… (CTRL + SHIFT + F)
  • Switch Between Form And Code
  • Undo
  • Redo
  • Start / Continue (F5)
  • Break Into Code (CTRL + BREAK)
  • Stop
  • Step Over (SHIFT + F8 / F10)
  • Step Into (F8 / F11)
  • Step Out (CTRL + SHIFT + F8 / SHIFT + F11)
  • Choose a build configuration
  • Restart the compiler
  • Clean (Deregister & delete build)
  • Build
  • Comment Selection (CTRL + K)
  • Uncomment Selection (CTRL + SHIFT + K)
  • Indent Block (CTRL + [)
  • Outdent Block (CTRL + ])
  • Align controls to the LEFT (ALT + ARROWLEFT)
  • Align controls to the TOP (ALT + ARROWUP)
  • Align controls to the RIGHT (ALT + ARROWRIGHT)
  • Align controls to the DOWN (ALT + ARROWDOWN)
  • Resize controls to the WIDEST (CTRL + SHIFT + ARROWRIGHT)
  • Resize controls to the TALLEST (CTRL + SHIFT + ARROWDOWN)
  • Resize controls to the NARROWEST (CTRL + SHIFT + ARROWLEFT)
  • Resize controls to the SHORTEST (CTRL + SHIFT + ARROWUP)
  • Toggle the grid indicators ON/OFF
  • Bring the selected control to the FRONT of the z-order
  • Send the selected control to the BACK of the z-order
  • Form designer zoom ratio
  • Launch the form in isolation to test the functionality
  • Change IDE Theme
  • Global Search

Build configuration

The build configuration box chooses whether the project is compiled as 32-bit or 64-bit code:

  • win32 builds a 32-bit executable or DLL.
  • win64 builds a 64-bit one. 64-bit Office, for example, can load only a 64-bit DLL.

CTRL + F1 switches to win64, and CTRL + F2 switches to win32. The keys are the default bindings of the IDE commands tbBuild_SwitchToWin64 and tbBuild_SwitchToWin32, and Manage Keyboard Shortcuts can change them.

The IDE remembers the choice for each project, and sets the box back to it when the project is opened again. It keeps the choice in its own settings, under the path of the .twinproj file, not in the project. A project with no remembered choice uses whatever the box shows, and a newly started IDE shows win32.

The box also sets the Win64 compiler constant — 1 in win64, 0 in win32 — and so decides which branch of an #If Win64 block the editor treats as active and which it greys out. Compiler Constants shows the same code in both modes.

The default Build Output Path puts win32 or win64 in the file name, so the two builds do not overwrite each other.

The box has a third entry, safeMode. It opens the project’s files without starting the compiler services, and the IDE describes it as a way to investigate, fix or recover code before saving it and restarting in normal mode. The IDE also switches to safeMode by itself when the compiler keeps crashing, and says Compiler crash loop detected. Restarting in SAFE mode.