Main post: viewtopic.php?f=106&t=71100
mikroPascal PRO for dsPIC v.7.0.1
The "External Memory" button sets the project to look for GUI resources at external memory, even if clicking Cancel on the Project Settings dialog.
How to reproduce:
1. Open mikroPascal and load a project with VTFT content.
2. Click on the "Edit Project" button, or go to Project -> Edit Project from menu. The "Edit Project" dialog should open.
3. On the "VTFT settings" tab and "Resources sub-tab", make sure that "Internally" radio button is selected.
4. Click OK to confirm the settings. Save the project.
5. Click on the red "External Memory" button, to open again the "Edit Project" dialog. Notice that the "Externally" radio button is automatically selected.
6. Click Cancel to close the dialog (so no setting should be preserved).
7. Open again the dialog, but this time from "Edit Project" button. Notice that the "Externally" radio button is still selected. Click Cancel to close the dialog.
8. Make sure the project has some content (at least a button), then re-generate the code from "Generate VTFT Code" button and notice that the <ProjectName>_resources.mpas file points to external resources.
9. Open again the dialog, from "Edit Project" button and switch to Internal resources. Click OK.
10. Click the "Generate VTFT Code" button and look into <ProjectName>_resources.mpas file. Now it contains internal resources (at least a font for a button).
mP v.7.0.1 - External Memory button
- lana.arsic
- mikroElektronika team
- Posts: 1715
- Joined: 15 Jan 2016 12:50
Re: mP v.7.0.1 - External Memory button
Hi,
It is a purpose of icon External memory, not a bug,
i.e. when you click on the icon it will set project settings so the resources will be stored externally.
Kind regards,
Lana
It is a purpose of icon External memory, not a bug,
i.e. when you click on the icon it will set project settings so the resources will be stored externally.
Kind regards,
Lana
Re: mP v.7.0.1 - External Memory button
Hi,lana.arsic wrote:It is a purpose of icon External memory, not a bug
it is a bug, because the Cancel button saves the new setting. See the following steps:
Perhaps, the Internal/External selection is ignored completely by OK/Cancel buttons of the editor dialog. Since this editor can be displayed from two buttons ("Edit Project" button and "External Memory" button), you could remove the "External Memory" button altogether.5. Click on the red "External Memory" button, to open again the "Edit Project" dialog. Notice that the "Externally" radio button is automatically selected.
6. Click Cancel to close the dialog (so no setting should be preserved).
7. Open again the dialog, but this time from "Edit Project" button. Notice that the "Externally" radio button is still selected. Click Cancel to close the dialog.
- lana.arsic
- mikroElektronika team
- Posts: 1715
- Joined: 15 Jan 2016 12:50
Re: mP v.7.0.1 - External Memory button
Hi,
I have talked with our developers, it is a feature,
once when you click on the icon External memory,
it will switch Resources to Externally regardless of whether OK is pressed or not.
Kind regards,
Lana
I have talked with our developers, it is a feature,
once when you click on the icon External memory,
it will switch Resources to Externally regardless of whether OK is pressed or not.
Thank you for the suggestion.VCC wrote: Since this editor can be displayed from two buttons ("Edit Project" button and "External Memory" button), you could remove the "External Memory" button altogether.
Kind regards,
Lana
Re: mP v.7.0.1 - External Memory button
Hi,
this behaviour is not OK. If a modal window can be closed from OK/Cancel buttons, users expect that the Cancel button discards all changes (even if they are automatic changes). Although I accidentally clicked the red "External Memory" button, I closed the editor from the Cancel button. This led to a wasted day of debugging, just to find out that a setting was preserved when it should have been discarded.
It is not that difficult to open the editor from "Edit Project" button, then switch to the proper tab and click the "Externally" radio button. It is safer to know exactly when settings are committed and when they are discarded.
this behaviour is not OK. If a modal window can be closed from OK/Cancel buttons, users expect that the Cancel button discards all changes (even if they are automatic changes). Although I accidentally clicked the red "External Memory" button, I closed the editor from the Cancel button. This led to a wasted day of debugging, just to find out that a setting was preserved when it should have been discarded.
It is not that difficult to open the editor from "Edit Project" button, then switch to the proper tab and click the "Externally" radio button. It is safer to know exactly when settings are committed and when they are discarded.
- lana.arsic
- mikroElektronika team
- Posts: 1715
- Joined: 15 Jan 2016 12:50
Re: mP v.7.0.1 - External Memory button
Hi,
We really appreciate your suggestions,
purpose of the icon is to easy change resources on External memory,
and many our customers have requested that is why it is implemented.
It is not a new feature, External memory icon
works on the same way in Visual TFT standalone version too.
If you accidentally click on the icon, and you don't want to switch
resources to be stored externally, when Edit Project window pops up,
you can click on Internally and then on OK.
But I will forward your suggestion for consideration.
Kind regards,
Lana
We really appreciate your suggestions,
purpose of the icon is to easy change resources on External memory,
and many our customers have requested that is why it is implemented.
It is not a new feature, External memory icon
works on the same way in Visual TFT standalone version too.
If you accidentally click on the icon, and you don't want to switch
resources to be stored externally, when Edit Project window pops up,
you can click on Internally and then on OK.
But I will forward your suggestion for consideration.
Kind regards,
Lana
Re: mP v.7.0.1 - External Memory button
Then, leave it there. However, please fix the Cancel button. Thank youlana.arsic wrote:many our customers have requested that is why it is implemented.
- lana.arsic
- mikroElektronika team
- Posts: 1715
- Joined: 15 Jan 2016 12:50
Re: mP v.7.0.1 - External Memory button
Hi,
Your request is forwarded to our developers.
Kind regards,
Lana
Your request is forwarded to our developers.
Kind regards,
Lana