mP v.7.0.1 - External Memory button

General discussion on mikroPascal PRO for dsPIC30/33 and PIC24.
Post Reply
Author
Message
VCC
Posts: 463
Joined: 08 Jun 2009 18:31
Location: Romania

mP v.7.0.1 - External Memory button

#1 Post by VCC » 26 Oct 2017 11:21

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).

User avatar
lana.arsic
mikroElektronika team
Posts: 1715
Joined: 15 Jan 2016 12:50

Re: mP v.7.0.1 - External Memory button

#2 Post by lana.arsic » 27 Oct 2017 17:25

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

VCC
Posts: 463
Joined: 08 Jun 2009 18:31
Location: Romania

Re: mP v.7.0.1 - External Memory button

#3 Post by VCC » 29 Oct 2017 08:49

lana.arsic wrote:It is a purpose of icon External memory, not a bug
Hi,
it is a bug, because the Cancel button saves the new setting. See the following steps:
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.
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.

User avatar
lana.arsic
mikroElektronika team
Posts: 1715
Joined: 15 Jan 2016 12:50

Re: mP v.7.0.1 - External Memory button

#4 Post by lana.arsic » 30 Oct 2017 18:03

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.
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.
Thank you for the suggestion.

Kind regards,
Lana

VCC
Posts: 463
Joined: 08 Jun 2009 18:31
Location: Romania

Re: mP v.7.0.1 - External Memory button

#5 Post by VCC » 30 Oct 2017 19:46

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.

User avatar
lana.arsic
mikroElektronika team
Posts: 1715
Joined: 15 Jan 2016 12:50

Re: mP v.7.0.1 - External Memory button

#6 Post by lana.arsic » 31 Oct 2017 18:20

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

VCC
Posts: 463
Joined: 08 Jun 2009 18:31
Location: Romania

Re: mP v.7.0.1 - External Memory button

#7 Post by VCC » 04 Nov 2017 08:13

lana.arsic wrote:many our customers have requested that is why it is implemented.
Then, leave it there. However, please fix the Cancel button. Thank you :)

User avatar
lana.arsic
mikroElektronika team
Posts: 1715
Joined: 15 Jan 2016 12:50

Re: mP v.7.0.1 - External Memory button

#8 Post by lana.arsic » 06 Nov 2017 18:46

Hi,

Your request is forwarded to our developers.

Kind regards,
Lana

Post Reply

Return to “mikroPascal PRO for dsPIC30/33 and PIC24 General”