bm528 Font of Element

Functions Common for All Dialog Elements


 

bm529         bold

bm530         italic

bm531         underline

bm532         strike out

bm533         fixed pitch

bm534         serifs

bm535         height of characters (0 = usual)

bm536         relative width of characters (0 = usual, 1 = basic)

bm537         text slope angle (0 = usual)

bm538         character color

bm539         background color

 

All operations are related to that window or element that is selected by the element identification number . The bold , italic , underline , strike out , fixed pitch and serifs logic variables can either be set to the state required, or, by entering them without parameters, the state can be switched to the inverse value. By switching on both switches, the fixed pitch , and the serifs switch at a time the user font will be used.

 

On entering the text slope angle the text is regularly rotated around the left upper text corner (in case of a multiline text the lines will rotate individually). If, for example, the text is rotated 1/4 revolution (i.e. 90 degrees), the rows would be aligned to cover one another, thus turning invisible. A text thus rotated can be displayed by means of a multiline text form. In front of the text to be displayed several empty lines must be inserted. These lines shift the text down making the rotated text visible. On the contrary, on rotating the text down it is suitable to use a text element justified to the right or centered, for the left text portion to get indented from the left window border, thus staying visible. A more suitable solution for displaying rotated texts is, however, a program aided drawing onto the program graphic sheet, taking it as a picture and after that displaying it in a dialog window as a picture dialog element.

 

The elements for setting the character color and the background color cannot be utilized when working with normal buttons. It is recommended to use only Windows system basic colors (i.e. pastel colors) as colors to enter. In the 256 color display graphic mode only 20 Windows basic colors will be utilized to display the colors selected.