Le 12 juil. 06 à 21:43 Soir, Charles Calvert a écrit:

In VB you do this by setting Form.Enabled = False. RB doesn't seem to have such a property for forms.

Ah, yes, indeed it was a property.

It was possible using a declare.

In Win32 you'd need to use the EnableWindow function, which requires a window handle as the first argument. Window.Handle appears to return the appropriate value under Win32. I haven't tested it, but I think the declaration would be:

Declare Function EnableWindow(hWnd As Integer, bEnable As Integer) As Integer

Thank you. That's what I'm looking for.

(I just modified Integer to boolean for the bEnable parameter, since it is easier and logical, and added the target lib (by looking in others declares I've seen)).

This results as:

dim i As Integer

Declare Function EnableWindow lib "user32" (hWnd As Integer, bEnable As Boolean) As Integer

i=EnableWindow(self.Handle, False)

Thanks again_______________________________________________
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>

Reply via email to