Bug #49
Clicking save icon while focus is on code explorer triggers error 98
0%
Description
In ThaHammerActions.pkg is this bit of code:
// Tries to get a function | message from the view or the edit
Function RequestGetFromViewEx Integer iMsg Integer bEdit Integer iPara1 Integer iPara2 Returns Integer
Integer hoID iRet iOK
Move (Focus(Desktop)) to hoID
If (hoID<>0) Begin
Get GetEditViewID of hoID to hoID
hoID is set to:
oMain.oToolPane.oToolsDialog.oTP_Database.oTablesTree
and as such it doesn't know the GetEditViewID method.
We should look at a better way to find the current edit window. It probably already exists.
History
#1 Updated by Wil van Antwerpen over 7 years ago
- Status changed from New to In Progress
- Assignee set to Wil van Antwerpen
Clicking the save icon while focus on code explorer was no longer a problem.
But if you click the save icon when the focus is on a tool panel still resulted in:
Invalid message. GET_GETEDITVIEWID
Error: 98
GET_REQUESTGETFROMVIEWEX (14083) - oClientArea (922) - at address 125590
MSG_REQUESTSENDTOVIEW (14086) - oClientArea (922) - at address 125652
MSG_CASAVEFILE (14108) - oClientArea (922) - at address 126043
MSG_ONEXECUTE (9043) - oSaveItem (868) - at address 119525
MSG_EXECUTE (9042) - oSaveItem (868) - at address 54645
MSG_ONCOMEXECUTE (8142) - oCommandBarSystem (633) - at address 53639
[start] - at address 130002
Reason here being that with the focus on an item not within the client_area the method bubbles up into main.
Which is where I have now resolved this.
#2 Updated by Wil van Antwerpen over 7 years ago
- Status changed from In Progress to Resolved
This should be fixed now.
#3 Updated by Wil van Antwerpen over 7 years ago
- Status changed from Resolved to Closed