I initially created a login dialog box with all sub-widgets resting on a 
container inside it. Then I decided to move the buttons by 
addButton()/addFooterButton().

If I do:

Ext::Button* pBtnLogin = new Ext::Button("Login");
addButton(pBtnLogin);

or

(Just to show I subclassed Ext::Dialog)

class DialogLogin : public Ext::Dialog
{
private:
   Ext::Button* m_pBtnLogin;
};

m_pBtnLogin = new Ext::Button("Login");

With the snippet above, it does not show anything on the browser. But 
it's working when I do:

addButton(new Ext::Button("Login"));

Further more, when I check on the output of the latest line, I got this 
unwanted behaviour -

The dialog displays on the lower right of the browser; and when I drag 
it at the center, the lower right side of the dialog is stuck at that 
position, and the the dialog expands to where I drag it. And yet, I've 
already added setResizable(false) and setSizeGripEnabled(false).

I'm not sure, if this only happens with my build; but I hope you can 
recreate the problem at your side from my description.


-- 
ABC-90106446


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to