![]() |
Forum Index : Microcontroller and PC projects : ARM H7 V 5.05.11 mm.Keypress missing
Author | Message | ||||
KeepIS![]() Guru ![]() Joined: 13/10/2014 Location: AustraliaPosts: 1882 |
Just noticed one of my projects no longer working with TextBox and NumberBox code relying on MM.Keypress ISR. Only noticed since the update to 5.05.11 happened? Checked another UNIT and the same problem, Now unless I missed a change to MM.Basic and the implementation of MM.Keypress then something is wrong? As the main code is 250Kb long I decided to knock up a bit of basic test code to see if the Keypress ISR was being called - and it's not - or am I having another seniors moment ![]() Mike Option DEFAULT NONE Option EXPLICIT Const JOBS_TBOX=10 Const JOBS_NBOX=11 Const BT_Close=12 DIM as integer ButLeft,ButTop,ButHeight,ButWidth ButTop=MM.VRes/80 ButHeight=MM.VRes/5 ButWidth=MM.HRes/3.5 ButLeft=MM.HRes/80 CLS Font 4 GUI TEXTBOX JOBS_TBOX,ButLeft,ButTop,MM.HRes/1.03,ButHeight,RGB(WHITE),RGB(BLUE) GUI NUMBERBOX JOBS_NBOX,ButLeft,ButTop+ButHeight*1.1,ButHeight,ButWidth/2,RGB(WHITE),RGB(BLUE) GUI BUTTON BT_Close,"CLOSE",ButLeft,ButTop+ButHeight*4,ButWidth,ButHeight,RGB(WHITE),RGB(BLUE) Font 2 Do If Touch(REF)=BT_Close then Text ButWidth*1.5,ButHeight*3,"CLOSED",,4,,RGB(WHITE),RGB(BLACK) End Endif Loop End Sub MM.KEYPRESS(KREF as integer,CapVal as string) Text ButWidth*1.5,ButHeight*1.5,CapVal,,4,,RGB(WHITE),RGB(BLACK) Print KREF; End Sub NANO Inverter: Full download - Only Hex Ver 8.1Ks |
||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6283 |
From the Changelog for the micromites: V5.5.2 Removed the ability to have MM.KEYPRESS called from the GUI NUMBERBOX and TEXTBOX controls. There were too many issues with getting this feature to run reliably. This functionality has been partially replaced by GUI FORMATBOX (see above). I guess the Armites followed suit. Jim VK7JH MMedit |
||||
KeepIS![]() Guru ![]() Joined: 13/10/2014 Location: AustraliaPosts: 1882 |
Wow thanks Jim, yes I remember Geoff saying he was thinking of removing it, I thought I had the latest manual (it was still listed) but I'll have to go and download the latest. So I was right a Seniors moment ![]() Mike NANO Inverter: Full download - Only Hex Ver 8.1Ks |
||||
KeepIS![]() Guru ![]() Joined: 13/10/2014 Location: AustraliaPosts: 1882 |
While it only took a few minutes to convert the various TEXTBOX and NUMBERBOX GUI elements in my code across to the updated control access changes, it has once again caused an ugly headache with the GUI TEXTBOX. There is no longer any way to stop a user typing straight off the sides of any GUI TEXTBOX, and it makes an absolute mess of the GUI screen. With the older KeyPress ISR, you could easily limit the number of chars entered into any TEXTBOX, AFAIKT that is no longer possible. EDIT: It looks like there may be a way, I'm off to check if it works. Mike. Edited 2020-05-19 18:43 by KeepIS NANO Inverter: Full download - Only Hex Ver 8.1Ks |
||||
KeepIS![]() Guru ![]() Joined: 13/10/2014 Location: AustraliaPosts: 1882 |
Computer said NO ![]() NANO Inverter: Full download - Only Hex Ver 8.1Ks |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |