Silverfrost Logo About Us | Contact Us
 

WINSTYLE@

Platform

Win32, x64

Purpose

Provide a default style for all subsequent winio@ windows.

Syntax

SUBROUTINE WINSTYLE@(FORMAT)
CHARACTER*(*) FORMAT

Description

Provides a default style for all subsequent winio@ windows. FORMAT is the same as the first argument of winio@ but has no other arguments. Its use is restricted to the following format codes:

  • %fn Font name
  • %bf Bold font
  • %it Italic font
  • %ul Underlined font
  • %ts Text size (in the new form %ts[value] where value is a floating point number)
  • %tc Text colour
  • %fb Button font
  • %ww Window style
  • %sy Dialog style
  • %es Escape key closes the window

A terminating ampersand (&) for continuation may be used but is not required.

Example

call winstyle@("%ww[not_fixed_size]")
call winstyle@("%es")
call winstyle@("%fn[Tahoma]")
call winstyle@("%fb")
call winstyle@("%ts[1.5]%it")
call winstyle@("%tc[blue]%bg[#f0f0f0]")
i = winio@("Hello");
i = winio@("Hello again!&");
i = winio@("%2nl%cn%tt[OK]");

Notes

Added to FTN95 at version 8.20

See also

winio@

 

 

Copyright © 1999-2018 Silverfrost Limited