1) I'm trying to make a 'test rack' for testing the classes and modules
in a project. Typically, I'll make a window that shows all the
properties and methods of the class (or module), and lets me set the
(writable) properties, and observe all the readable ones. It also lists
(with StaticTexts) all the methods, and has 'fill in' EditFields for
arguments of primitive data types (Integer, String, Boolean, Single,
and/or Double). So, for example, if my class has a method, Function
DoSomething(s As String) As Boolean, then I'll have:
<CheckBox><StaticText:Caption="=
DoSomething("><AlphaNumericEditField><"StaticText:
Caption=")"><PushButton():Name=DoIt>
all lined up in the window using the snap-to guides.
Then, in the DoIt() button's Action event, I check the Index to see
if the button clicked is the one for the 'DoSomething()' method, then I
pull the .Text from the AlphaNumericEditField (an EditField subclass I
made), feed it into the DoSomething() method, get the result, and stick
that in the CheckBox.
While this works fine for primitive data types, what's a good way of
handling (testing) methods that take object references?
My thought is to make a 'dispenser' window that has a button,
'Dispense', a separator, and an array of custom canvases which draw a
little icon on them. Then use drag-and-drop to allow me to drag one of
these 'object tokens' into a custom canvas on the 'test rack' window
where the object parameter is needed.
2) Using drag-and-drop on Windows, can I use 'MacData' and
'PrivateMacData' to do drag-and-drop within the application only? I
wouldn't think that 'MacData' and 'PrivateMacData' would be available
(usable) under the Windows version of RB IDE.
William H Squires Jr
4400 Horizon Hill #4006
San Antonio, TX 78229
[EMAIL PROTECTED] <- remove the .nospam
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>