new windows version comes with some bug fixes

Are there new versions?

Re: new windows version comes with some bug fixes

Postby Slowdown » Tue May 01, 2012 7:19 pm

i'll try,
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.
Kind regards,
Slowdown

OSX 10.8.x, VBox Xp, Ubuntu 32/64 bit, EOS 64 bit
Slowdown
 
Posts: 464
Joined: Sat May 01, 2010 7:11 pm
Location: Netherlands

Previous

Return to Announcements

Who is online

Users browsing this forum: No registered users and 1 guest

cron