GenoPro Home
GenoPro Home  |  Get Started With My Genealogy Tree  |  Buy  |  Login  |  Privacy  |  Search  |  Site Map
 

GenoPro Support Forum




(Emperor's) New Clothes

Click to view RSS...
Author revised Config Parameters Dialog for Narrative Report (updated 2013/04/05)
Posted Friday, March 29, 2013 - Post #31546
Legendary Master

Legendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary MasterLegendary Master

Administrators
Customers
Important Contributors
FamilyTrees.GenoPro.com
GenoPro version: 3.1.0.1

Last Login: 1 hour ago
Posts: 3,426, Visits: 26,508
Hi guys and gals, the weather in the UK is still far too cold for doing much in the garden (although I did mow the lawn today  Cool) so I have been working hard over the last few days exercising my remaining grey matter and honing my Javascript skills to re-engineer the 'Configuration Parameters' dialog for the Narrative Report as an Easter 'treat'.

It has bugged me for some time that this dialog has been a bit of a 'carbuncle' and using IE has caused slow loading, ActiveX and 'security' issues.  So I decided to see what could be done.  I had come across HTA's (HTML Applications) some while back but because there was no COM interface I discarded it.  But a few days ago I realised I could run it freestanding and the Report skin could pick up the results from the registry.

I decided to see I could make it look like GenoPro's Microsoft MFC-based dialogs, but just using HTML and Javascript (I have no access to GenoPro's C++ stuff). I could have used one of the many Javascript frameworks, e.g. jquery, prototype etc.) but found after some experimentation that actually it was relatively straightforward to do without them.

quick peek:
http://support.genopro.com/Uploads/Images/883a4752-f05f-4a95-810b-4393.jpg

So a tabbed dialog just like GenoPro!

The HTA is HTML/javascript that is run under the Microsoft application mshta.exe instead of Internet Explorer.  The benefits are:-
  •  much quicker loading (although there is a small delay whilst the required files are copies to a temporary folder)
  • removes the IE security restrictions (runs as any other local application).
  • provides a universal routine for other report skins (I'll update the others later)
It required an extra attribute 'Label' to the parameter groups in ConfigMsgEN.xml to provide the labels for the tabs, so those of you with your own localisations of this file will need to add these, otherwise it will default to #1, #2, #3 etc.

I have only done limited testing under 32-bit Windows 7 and so I am not releasing under the main Narrative Report thread as yet.  I would be grateful if anyone testing under a different Operating System could report back success or failure.

This change is now part of the standard skin http://support.genopro.com/Topic28332.aspx


'lego audio video erro ergo disco' or "I read, I listen, I watch, I make mistakes, therefore I learn"


Tags:

Edited: Tuesday, April 9, 2013 by genome

Threaded View

Expand / Collapse
Threaded View
Forum Post (Emperor's) New Clothes By genome ( Friday, March 29, 2013 )
Forum Post Czech translation By powery ( Sunday, April 7, 2013 )
Forum Post This skin now moved to the normal Latest Narrative Report Skin... By genome ( Tuesday, April 9, 2013 )
Forum Post It works now. By Alex ( Sunday, April 7, 2013 )
Forum Post Delete button has Save button description By powery ( Wednesday, April 3, 2013 )
Forum Post Yep, definitely a few more bugs to iron out, so I have removed the... By genome ( Thursday, April 4, 2013 )
Forum Post Hello, nice work. But loading saved profile does not work, after... By powery ( Wednesday, April 3, 2013 )
Forum Post 1.To Powery (...Delete button has wrong position...) The reason -... By Alex ( Thursday, April 4, 2013 )
Forum Post Thanks Alex. I have now fixed the width of the profile drop-down at... By genome ( Thursday, April 4, 2013 )
Forum Post My IE - v. 9.0.8 Problems by maru-san : 1 - yes, 2 - no. Variation of... By Alex ( Saturday, March 30, 2013 )
Forum Post Well, adding a stored profile feature turned out to be a tad more... By genome ( Wednesday, April 3, 2013 )
Forum Post [quote] maru-san , I have not been able to reproduce your problem... By maru-san ( Thursday, April 4, 2013 )
Forum Post Ok, a couple of false starts, as is my usual style, but back on track... By genome ( Friday, April 5, 2013 )
Forum Post Hi Ron. In 64-bit Windows 7: By Alex ( Friday, March 29, 2013 )
Forum Post Ok, thanks for that but I don't know why that should happen. Could... By genome ( Friday, March 29, 2013 )
Forum Post Just tried the new Narrative report, but had two problems: 1) The new... By maru-san ( Friday, March 29, 2013 )
Forum Post Again, no idea at the moment as to what is going on there. According... By genome ( Friday, March 29, 2013 )
Forum Post Just did a little test on my old Vista (32 bit) machine and all runs... By Nand ( Saturday, March 30, 2013 )
Forum Post Could be that the button positioning is due to a font-sizing issue... By genome ( Saturday, March 30, 2013 )


Similar Topics

Click to view RSS...
Expand / Collapse

Reading This Topic

Expand / Collapse
Active: 2 - 1 guest, 0 members, 0 anonymous.
Refresh
No members currently viewing this topic!