Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide to Clip-4-Win version 3.0 - <b>@ id ... say</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
@ ID ... SAY
Use a text ("static") control in a dialog
------------------------------------------------------------------------------

Syntax
#include "windows.ch"
#include "topclass.ch"   --or--   #define  NO_C4WCLASS
#include "commands.ch"
@ ID  <nId>  SAY | TEXT | LEFTTEXT
          [ <clauses> ]
OR:

@ ID  <nId>  SAYCENTER | CENTERTEXT
          [ <clauses> ]
OR:

@ ID  <nId>  SAYRIGHT | RIGHTTEXT
          [ <clauses> ]

Arguments
See the generic @ ID ... <ControlType> command for details of
the <clauses> and/or parameters allowed.

Description
These commands let you use left-aligned, centred, or right-
aligned text in a dialog.  If you use a dialog editor, you
usually fully define headings, prompts, etc., so there's then
no need to use this command.  However, you could use this
command for a dynamic dialog, or to allow the text to be
changed at run-time in a resource dialog.

See the generic @ ID ... <ControlType> command for more
information.

Example
// A resource example, where the text is changed at run-time:
@ ID IDC_VALUE  SAY str(::nSpin)  Object ::oSay

// Part of a dynamic dialog:
@ Id IDD_TEXT    SayRight  "&Name:"   At 100,4 Size 19,12


See Also: @ ID ...

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson