Resize_2
First thing to say here the example closes with no problem when clicking the close button.
But there was a error in the example causing it not to show the text boxes.
Global:
- Code: Select all
Public Declare Sub "QPlainTextEdit" void setGeometry(int x, int y, int w, int h);
Public Declare Sub "QPlainTextEdit" void resize(int w, int h);
MainWindow:
- Code: Select all
plainTextEdit.setGeometry(4, 4, Me!width - 6, ( Me!height / 2) - ButtonDown!height)
The values of x, y, w and h must be Integer values and as you can see i calculated the height by taking the height of the
form divided by 2 and it can happen that the result is not an integer causing Q7B not to show the textEditbox.
So i corrected it with,
- Code: Select all
plainTextEdit_2.setGeometry(4, Integer(( Me!height / 2) - ButtonDown!height) + 4, Me!width - 6, Integer(( Me!height / 2) - 6))
Now the result is alway an Integer, problem fixed.
For Simplecalculater i did the same as you (other variable names as you) and it worked.
Oh wait,
seems to do nothing except display the number we have clicked on.
As the name say's Simple
Bernd made it so that you can click 1 number after that click an operator and click again a number.