OWL: Using Transfer Structures with Dialog Boxes

OWL: Using Transfer Structures with Dialog Boxes

Post by Andrew Mar » Wed, 02 Jun 1993 14:20:24



Help!

I'm trying to access information contained within a dialog box object
from within a main window object, but I cannot seem to do so.  I assume
I need to use Transfer Buffers to perform this task, but I can't seem
to accomplish it.  The problem seems to be in assigning a value to
the "TransferBuffer" data member, thus connecting the "struct" I have
defined to the purpose with the object I wish to transfer to and from.

Am I right in assuming:

(1)  The "TransferBuffer" data member should be assigned a value
in the constructor of the class it applies to - in my case, the
dialog class.

(2)  Can I define the "struct" to contain only some of the controls
in my dialog (I'm using one edit field at the moment to test it), or
do I need to place all of the controls in the "struct"

(3)  I do not need to "...EnableTransfer()" for any of the controls
unless they are in a window, and not a dialog

(4)  Should I declare an object of the Transfer Buffer in the window
class (where I wish to use the contents of the dialog), or in the
dialog class.

Any attempts in answering my questions (pref. emailed) would be most
graciously appreciated.  Forgive me if my questions/statements are
confusing as I have been trying to do this from the manuals and examples,
but there doesn't seem to be much correlation between the two.

--
Andrew Marks
Master by Research
Department of Software Development
Faculty Of Computing and Information Systems

 
 
 

OWL: Using Transfer Structures with Dialog Boxes

Post by Andrew Mar » Wed, 02 Jun 1993 18:41:49


Please disregard the previous message ... everything is now under control.

--
Andrew Marks
Master by Research
Department of Software Development
Faculty Of Computing and Information Systems

 
 
 

1. TPW : Using Transfer Buffers for Dialog Boxes

Hi there

Since about two months I am writing a TPW applcation and I am using
dialog boxes for user IO. I had a lot of problems (and still have !)
to use the transfer buffer mechanism of OWL for the dialog boxes.

First of all, the manual is buggy in the chapters (eg. p.189 of the
Windows Programming Guide : last line ComboBox InitResource wants 3
parameters NOT 2 as in the manual)
Second if I construct the controls in the order I defined them in the
transfer buffer record some of them are filled in some not. If I
change the order for the creation (New statments), e.g. all edit
control first and than the ComboBoxes, more controls are filled with
there values. but not all. Of course the programm crashes if I change
the order of the creation.

QUESTION : 1. Did any body have the same experience with the order
              of the transfer buffer and InitResource
           2. If someone could provide me better an CORRECT infos how
              to use then I would be grateful.

cheers andreas pauletti

2. Page Properties / Base Location

3. Displaying different bmp using same OWL Dialog box in TC++

4. Slowdown with NETNEWS.ATTBI.COM

5. Using Dialog boxes with OWL 2.0

6. (no subject)

7. Icon for Dialog Box using OWL

8. UMAX Astra 3400 USB Scanner

9. Controls on controls in dialog boxes using OWL

10. OWL DIALOG BOX/EDIT BOX

11. OWL Dialog transfer buffer

12. Look for design solution to transfer data from business object to a dialog box object

13. pointer to a Dialog Box function as an member of a structure