Nate Lowrie wrote:

> Note that OnHit is generally the controls main event.  On a button
> that means when it is pressed.  On a list control it is when a list
> item is selected.  On a dTextBox it is when you enter text and hit the
> enter key.  It is a convenient thing to know.  If you need specific
> events, for instance on mouse over, then you can bind them with
> bindEvent.  However, only the Hit event may be bound from the control
> instantiation.


This isn't true; you can:

txt = dabo.ui.dTextBox(frm, OnMouseLeftClick=myLeftClickFunc)

or with any other Dabo event.


> On one last note, I think that you should make the dTextBox read only.
>  Coming from a correct code standpoint, if the users are entering the
> dTextBox value through the dFileDialog, you should never want them to
> type in the dTextBox directly.  Makes error checking easier because
> you only have to check for NULL and if the file is still there.  I am
> nit-picking, but it makes for good code.

As a user I appreciate being able to enter text freely as well as being 
able to press a button to pick an item. For getting files and 
directories, it is *much faster* for me to type '~/my_file.txt' than it 
is to bring up a dialog and use the mouse to navigate to it.

-- 
pkm ~ http://paulmcnett.com


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/dabo-users/[EMAIL PROTECTED]

Reply via email to