- Windows Label

From: [at]} <skulski{>
Date: Thu, 21 Apr 2005 12:51:00 -0400 (EDT)

----boundary-LibPST-iamunique-483314942_-_-
Content-type: text/plain

Walter:

here is a line from one of my programs. I am opening a window showing a
formatted text. The title is declared as constant in my code, but you can
also use a variable string for that.

  CONST windowTitle = "DataLogger_data";

  Views.OpenAux (TextViews.dir.New(txt), windowTitle);

The procedure Views.OpenAux is documented in the Views documentation:

    PROCEDURE OpenAux (view: View; title: Title)
    Opens view in an auxiliary window with title title.

On the other hand, if I want to open a dialog box (a form, rather than a
regular view) then I follow a different path:

1. I create a form and save it to disk in Rsrc sub-directory.
2. I execute one of the StdCmds commands, either OpenToolDialog or
   OpenAuxDialog. See StdCmds docu for details.

To illustrate how the Forms work, go to Help->Examples and open
the ObxCubes example (in the Simple Views category). There is a command
there in that example:

  <ctrl-Q> "StdCmds.OpenToolDialog('Obx/Rsrc/Cubes', 'Cube Colors')"

Hope this helps,

W.


> I'm sorry by this low level question but after surfing many times into the

> docs I'm unable to find the answer,
>
> We use BlackBox to write internal test packages to our FPGA designs, but
> one
> of our customers claim to one of this packages and the package need a more
> "professional" look.
>
> I have a very simple problem
>
> How I can change the windows labels from "untitledXX" to a desired name ?
>
> Walter.

--- BlackBox
--- send subject HELP or UNSUBSCRIBE to blackbox{([at]})nowhere.xy



----boundary-LibPST-iamunique-483314942_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"

e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMFxncm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