On Sep 6, 2006, at 4:27 PM, Robert Poland wrote:
Is there a special way to create a "Global" property that doesn't
need a prefix to access it? I have been creating them in the
TextWindow.
These properties are not Global. They are only addressable without a
class name within the window itself. To have a true Global property
or method you must put them in a module. The application subclass is
almost the same except that you must use the app. identifier to
address them.
I thought I had created a Module but it appears that I have added a
class.
There is a great difference between a module and a class. They can
both contain methods, properties and constants but have entirely
different scope capabilities. Also, a class must be instantiated
whereas a module is automatically instantiated at startup.
Question: How do I "Self.SetFocus" or whatever to get the Focus
back?
Back from what? Here again, the details are missing.
It appears that you are really having problems but from what
little you have provided, you haven't made it easy to determine
the exact nature of the problem.
If you can't provide relevant code or a project we can download,
it will be very hard to help you. I am sure you see the problem. I
simply cannot get a grasp of the total picture.
I rephrase the above; I was forced to create a new class so I could
get the Event Handler, Open Document. After a file in imported
(InFile) the focus is apparently on class1 although there is no
window assigned to it. It I click on the "Finder" then back to the
TextWindow focus is returned and the program continues.
Still confused about this.
Here's the code in question.
If you tried to attach anything it will not make it to the lists.
Your text will, but that's all.
You say "relevant code or a project we can download" Where can I
put it so it can be downloaded?
If your server provides a web site you could put it there. Relevant
code can also be pasted into your text to the lists.
You can send me the project in question (email a stuffed/archived
version) and I will host it on my web site if you so wish. I will
also look at it as well and see if I can help. I have to "hit the
sack" now as I need at least 5 hours sleep before I have to go to my
real job tonight. I will do the rest after I get back.
Terry
_______________________________________________
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>