RE: Storing Dialogs to a file

From: [at]} <Wojtek>
Date: Tue, 24 Jun 2003 11:05:58 -0400 (EDT)

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

Robert:

  I would appreciate it if post the code or send it to us.
We are going in the same direction. The Dialog.TreeNode
already has a pointer of type ANYPTR declared to point
to some arbitrary data. We want to use this pointer
to access our histograms. We still need to write the code
to traverse the entire Dialog.Tree to save it to disk.

This makes me wonder why Dialogs are not persistent?
One can obviously store a Form to disk, and in most cases
the BB panels are read from disk. However, I am not sure
I understand why we have to go through writing our own
code to Externalize/Internalize the Dialog.Tree. I thought
this was already provided by the framework. But it is not.
Not sure why.

Another observation is that Dialog.Tree does not print to paper,
either, but this is an obvious bug in the Tree, already reported
to the technical support.

>
> I have some 'Calculator' Forms which I wanted to save complete
> with the numbers in the Field Controls. Since the source of the
> Form SubSystem is public I extended FormModels.Model to include
> a variable myPtr* : Stores.Store. By assigning the 'Calculator'
> data to myPtr its Externalize (etc) routine is called when the form
> is Saved/Copied.
>
> I use FormModels.SetDir to enable my forms, which are then provided
> by the usual Menu item Controls->New Form.
>
> I can post the code if anyone is interested.

--------------------------------------------

To unsubscribe from this mailing list, send a message containing the word "unsubscribe" to:
   blackbox-request{([at]})nowhere.xy

To 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.xy

Current 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-781688539_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"

e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt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sIHJlY29nbml6ZSB5b3UgYXMg
c3Vic2NyaWJlciBhbmQgZm9yd2FyZCB5b3VyIHBvc3RpbmcgaW1tZWRpYXRlbHksIHdpdGhvdXQg
Y3JlYXRpbmcgYW55IG92ZXJoZWFkLlxwYXINClxwYXINCmIpIElmLCBmb3Igc29tZSByZWFzb24s
IHlvdSBjYW5ub3QgcG9zdCBmcm9tIHRoZSBhZGRyZXNzLCBieSB3aGljaCB5b3UgYXJlIHN1YnNj
cmliZWQsIHlvdXIgbWVzc2FnZSB3aWxsIGJlIG1vZGVyYXRlZCB0byBhdm9pZCBzcGFtLiBQbGVh
c2UgdW5kZXJzdGFuZCB0aGF0IG1vZGVyYXRpb24gd2lsbCBvZnRlbiBjYXVzZSBzb21lIGRlbGF5
LCBpbiBwYXJ0aWN1bGFyIG92ZXIgd2Vla2VuZHMgb3IgaG9seWRheXMuXHBhcg0KfQ==


----boundary-LibPST-iamunique-781688539_-_---
Received on Tue Jun 24 2003 - 17:05:58 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:29:10 UTC