I would like to begin with the statement that I am not against the use of frameworks, if they work for you, that's great. However, I do get the feeling that there are people out there that think less of programmers that don't use frameworks. Admittedly, there are probably a significant number of ColdFusion programmers out there that don't use frameworks because perhaps they don't grasp the architecture of the framework, or they get scared off by all the big words that framework enthusiasts are so fond of, or they are just never have time to do the research to find out what the frameworks have to offer.
The answer is to use the Ext.BasicDialog.center() function, then get the windows Ext.Element object using the Ext.BasicDialog.getEl() function. The Ext.Element object has the getX() and getY() methods, which will give you access to the windows X and Y coordinates. You can use those, in combination with the Ext.BasicDialog.moveTo() function, to move the window to your desired position relative to the center.
At last nights Orange County ColdFusion Users Group meeting (occfug.org) I presented on the topic of integrating the Google Maps API into a ColdFusion application. I made a custom tag for the presentation that generates a Google API powered map, and I am posting it here for all the people that wanted access to the source code.
Several years ago, I had a boss that scolded me for replacing a faulty cat5 network cable between an expensive server and a switch without shutting the server down first. He yelled at me saying "You never unplug ANYTHING from my servers without shutting them down first!!"... then I laughed at him which made him even more furious =). How he got it in his head that it was necessary is beyond me, but it still cracks me up every time I think about it... hee hee... what a knuckle-head. Nonetheless, from that point on, I turned of his computers every time I needed to plug in a mouse, or some USB device, or anything, and then
When you work for a large company like I do, inevitably, there are going to be at least a few people that march to the beat of a different drummer. Over the years of my professional career, I have worked with "Not-Funny Comedian" guy, "Tries Too Hard to be Everyone's Friend" guy, "Tucks His T-shirts Into His Underwear" guy, "Idiot that Thinks He's a Genius" guy, and various people of that nature (and yes I have used those nick names in actual conversations with my fellow employees). But over the last few months, a new champion has risen to the top of my "Strangest Co-Workers Ever" list. He is known, by many here at the office, as: "Trench Coat Mafia" Guy.
Today is my birthday. I'm 0011001000111000 binary years old, but I don't feel like I'm a day over 28. Of course, tomorrow that may change, I guess we'll have to wait and see.
The CFWindow tag is built using the Ext.BasicDialog object. This object has several public events that you can add listeners to. You can use the Ext.BasicDialog objects on() function to add listeners to these events that will fire a specific function when the specified event occurs. You can program the listener functions to react as necessary to the various events. Here is a list of the events that you can set up listeners for: