It seems like fixing would be a simple matter of x and y positioning and sizing.
I do some GUI programming (in Java) and that would be how I would do it there.
Can it be that different in C++/XUL?
As an example of centering the box in reference to the Mozilla window:
int height=450;
int width=300;
newCardBox.setSize(width,height);
int setLeft=(((mozWindow.getWidth()-width)/2)+mozWindow.getX());
int setRight=(((mozWindow.getHeight()-height)/2)+mozWindow.getY());
newCardBox.setLocation(setLeft,setRight);
newCardBox.show();
Yes, its Java pseudo-code, not C++, but the logic is good. Can't something
similar to this be implemented for the New Card box?
It seems like fixing would be a simple matter of x and y positioning and sizing.
I do some GUI programming (in Java) and that would be how I would do it there.
Can it be that different in C++/XUL?
As an example of centering the box in reference to the Mozilla window: setSize( width,height) ; (((mozWindow. getWidth( )-width) /2)+mozWindow. getX()) ; (((mozWindow. getHeight( )-height) /2)+mozWindow. getY()) ; setLocation( setLeft, setRight) ;
int height=450;
int width=300;
newCardBox.
int setLeft=
int setRight=
newCardBox.
newCardBox.show();
Yes, its Java pseudo-code, not C++, but the logic is good. Can't something
similar to this be implemented for the New Card box?