[futurebasic] Fwd: CEUtil 1.8

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : January 2007 : Group Archive : Group : All Groups

From: Bernie <fb.mailing.list@...>
Date: Fri, 19 Jan 2007 23:41:22 +0000
I asked Max' permission to forward this private mail to the list.

Anyone want to respond?

Bernie


=== Begin forwarded message:

Checking out the code I noticed that the last parameter sent to the  
InstallEventHandlers is a window number def'd as LONG. Same thing  
with the Button handler as it is being passed a constant ( a LONG)  
also as _cCheckBox.

Problem, as it appears is the the Install handlers are picking this  
up as "UserData AS POINTER" and as you know they are not the same  
thing. If this is supposed to work this way then I need to understand  
it better so I'm still not totally sure here. I think Brian noticed  
something like this

Also for what it's worth. Apple guidelines say (and this may not  
apply here really) that the first window created should have a title  
of "untitled" and any after that should have the same plus their  
number so I added the following just to make sure it works here.

long if wNum == 1
SetWTitle( w, "untitled" )
xelse
SetWTitle( w, "untitled" + str$(wNum) )
end if

One final question today.

If the window and button templates, are defined within IB then is  
there a particular reason why the windows that get created have to be  
converted into FB windows types. Is this just so FB can handle them  
without writing any additional code? I'm pretty certain that the  
reason for using the event handlers is so we don't have to use  
statements like ON DIALOG, ON MENU, etc, and let the  
RunApplicationEventLoop() handle all of that. You mentioned before  
that we could mix controls from nib with FB controls but, with  
everything defined in the nib file I'm not sure why we would need to  
use the FB stuff to do this. I hope the goal here is to use as little  
FB code to handle these things as possible and let Apple do  
everything for us if they want to.

Max Taylor
The MaxClass Guy