Home > database >  PB to do calculation for seven segment digital display
PB to do calculation for seven segment digital display

Time:10-26

Learning in the teacher assigned task, asked to do a calculator, show is the requirement of seven segment digital style, has given us and 0 to 9. Number of pictures, tell us to encapsulate visualization user object, just learning a week, don't know how to do the above shows that the completely, no idea, please help

CodePudding user response:

Make a visual user object based on picturebutton, all the buttons from the user object inheritance

The above black edit box with a single line editor, didn't see where is difficult

CodePudding user response:

Should be a little difficult, after all, is to learn the operation of one week, just black above the edit box is a lack of ideas? With a single editor, how to use the images show a string, insert and pictures from right to left? Absolute beginner, thanks to help,

CodePudding user response:

refer to the second floor qq_16218191 response:
should be nothing difficult, after all, is to learn the operation of one week, just black above the edit box is a lack of ideas? With a single editor, how to use the images show a string, insert and pictures from right to left? Pure novice, xie help,


Write a digital display function, according to the digital, display the corresponding pictures, such as 1234.56, to display the corresponding pictures, you can convert a string, and then bit by bit to intercept, according to the specified image, or the positioning of the image at the beginning, such as display at most 20, then according to intercept the string into the specified image

CodePudding user response:

According to the above version of the lecture method is ok, it is very simple
  • Related