AW: Dialog Tree questions

From: Zinn, Helmut <"Zinn,>
Date: Tue, 28 Jan 2003 08:10:10 +0100

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

Dear Bart,

I can't believe it. You are still working with BlackBox 1.4 Beta and
speaking about BlackBox 1.5. How can OM develop this version? Why don't you
buy version 1.4 final? There are a lot of improvements in the final
versions. Don't miss it.

Regards

Helmut

-----Ursprüngliche Nachricht-----
Von: Wijck, Bart van [mailto:Bart_van_Wijck{([at]})nowhere.xy
Gesendet: Montag, 27. Januar 2003 12:09
An: 'blackbox{([at]})nowhere.xy
Betreff: Dialog Tree questions


Hi BlackBoxers,

First question:
It's nice to have the folder & file icons in the Tree control. However that
ties the tree contol to a rather particular type of view. How can I tie in
any kind icon? This should be made standard (signal to Oberon Microsystems
for release 1.5). Does anyone have an example how to do this?

Second question:
I'm trying to associate some data via a pointer to a node in a tree control
via the treenode SetData procedure. When however later on I try to access
that data again (very simplified in the example below) I find that the
treenode Data procedure will not compile, even though it should return an
ANYPTR type. I'm probably overlooking the obvious, but what am I doing
wrong? (I'm working with 1.4 beta version).

Regards, Bart

MODULE TryTree;
IMPORT Dialog;

TYPE
  DPTR = POINTER TO DREC;
  DREC = RECORD
           val : INTEGER;
         END;

           
VAR
  Dlg* : RECORD
           Tree*: Dialog.Tree;
         END;

(*
--------------------------------------------------------------------------
*)
PROCEDURE Calc*;
VAR
  d,e : DPTR;
  pn,tn : Dialog.TreeNode;
BEGIN
  pn := NIL;
  tn := Dlg.Tree.NewChild(pn,0,'TREE ROOT');

  NEW(d); d^.val := 200;
  tn.SetData(d);

  e := tn.Data(); (* COMPILE ERROR HERE *)

  Dialog.UpdateList(Dlg.Tree);
  Dialog.Update(Dlg);
END Calc;

(*
--------------------------------------------------------------------------
*)
END TryTree.




-- 
The contents of this e-mail are intended for the named addressee only. It
contains information that may be confidential. Unless you are the named
addressee or an authorized designee, you may not copy or use it, or disclose
it to anyone else. If you received it in error please notify us immediately
and then destroy it. 
--------------------------------------------
To unsubscribe from this mailing list, send a message containing the word
"unsubscribe" to:
   blackbox-request{([at]})nowhere.xyTo get a list of valid e-mail commands and instructions on their usage, send
a message containing the word "help" to the above address.
Send any problem reports or questions related to this email list to the list
owner at
   owner-blackbox{([at]})nowhere.xyCurrent posting policy:
a) To post you should use the same address by which you are subscribed to
the mailing list. That way, the list server will recognize you as subscriber
and forward your posting immediately, without creating any overhead.
b) If, for some reason, you cannot post from the address, by which you are
subscribed, your message will be moderated to avoid spam. Please understand
that moderation will often cause some delay, in particular over weekends or
holydays.
-------------
Diese E-Mail wurde auf Viren ueberprueft.
Postmaster IG Metall
--------------------------------------------
To unsubscribe from this mailing list, send a message containing the word "unsubscribe" to:
   blackbox-request{([at]})nowhere.xyTo get a list of valid e-mail commands and instructions on their usage, send a message containing the word "help" to the above address.
Send any problem reports or questions related to this email list to the list owner at
   owner-blackbox{([at]})nowhere.xyCurrent posting policy:
a) To post you should use the same address by which you are subscribed to the mailing list. That way, the list server will recognize you as subscriber and forward your posting immediately, without creating any overhead.
b) If, for some reason, you cannot post from the address, by which you are subscribed, your message will be moderated to avoid spam. Please understand that moderation will often cause some delay, in particular over weekends or holydays.
----boundary-LibPST-iamunique-1759639985_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzc1xmY2hhcnNldDAgQXJpYWw7fQ0Ke1xmMVxmbW9kZXJuIENvdXJpZXIgTmV3O30NCntcZjJc
Zm5pbFxmY2hhcnNldDIgU3ltYm9sO30NCntcZjNcZm1vZGVyblxmY2hhcnNldDAgQ291cmllciBO
ZXc7fX0NCntcY29sb3J0YmxccmVkMFxncmVlbjBcYmx1ZTA7XHJlZDBcZ3JlZW4wXGJsdWUyNTU7
fQ0KXHVjMVxwYXJkXHBsYWluXGRlZnRhYjM2MCBcZjBcZnMyMCBEZ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