- Standalone (SDI) applications

From: [at]} <Alexander>
Date: Sun, 11 Jun 2006 20:03:03 +0700

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

Hello, BlackBox!

  Let's leave the EXE issue where it is. I'd like to talk about
  "standalone" applications in some other sense.

  (MDI stands for "multiple document interface", SDI - "single
  document interface").
  
  When BlackBox starts, it presents a MDI application: main window,
  child windows inside, tool windows float above. Consequently, when
  you create a program based on BlackBox, it is still a MDI
  application. But if you are not developing yet another text or image
  editor, you will most probably want to create a SDI application:
  with one main form, maybe a couple of configuration dialogs, and
  that's all.

  SDI is what you get by default in Delphi and the like.
  
  Have anyone developed anything like a normal SDI application using
  BlackBox?

  I found a useful command-line parameter "/NOAPPWIN" and
  corresponding HostWindows.noAppWin variable. If the variable set
  to TRUE, the main BlackBox MDI window is not shown on startup.
  This is good.

  When I added a line like
  StdCmds.OpenToolDialog('Ftp/Rsrc/Chat', 'Chat')
  to Config.Setup procedure, the Chat window became the main window
  for my application. When the window is closed, the application is
  terminated.
  This is very good.

  Tool dialog windows are always on top of other, regular, windows.
  What I want next is to show a separate "Chat log" window, which
  shows only one TextViews.View. I want it to be under the 'Chat' tool
  window (so, it may not be another "Tool" topmost one). And I want to
  be able to resize it freely.
  Can anyone give me a hint on how to achieve that using framework?
  The problem is that when I use Views.OpenAux, the window is opened
  inside BlackBox' main MDI window. And BlackBox' main window is
  shown, which is bad. I don't need an MDI child, I need a standalone
  window.
  No combination of StdDialog.Open parameters seem to produce the
  desired result. What do I have to do? Extend HostWindows.Window
  record in some way? Is the framework flexible enough to let me avoid
  using Windows API?

  Thank you in advance.

---=====---
 Alexander

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



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

e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7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3dzLldpbmRvd1xwYXINCiAgcmVjb3JkIGlu
IHNvbWUgd2F5PyBJcyB0aGUgZnJhbWV3b3JrIGZsZXhpYmxlIGVub3VnaCB0byBsZXQgbWUgYXZv
aWRccGFyDQogIHVzaW5nIFdpbmRvd3MgQVBJP1xwYXINClxwYXINCiAgVGhhbmsgeW91IGluIGFk
dmFuY2UuXHBhcg0KXHBhcg0KLS0tPT09PT0tLS1ccGFyDQogQWxleGFuZGVyXHBhcg0KXHBhcg0K
LS0tIEJsYWNrQm94XHBhcg0KLS0tIHNlbmQgc3ViamVjdCBIRUxQIG9yIFVOU1VCU0NSSUJFIHRv
IGJsYWNrYm94QG9iZXJvbi5jaFxwYXINCn19AFZDKDY=


----boundary-LibPST-iamunique-2114797047_-_---
Received on Sun Jun 11 2006 - 15:03:03 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:27:51 UTC