* IUP and fh function

For users to report plugin bugs and request plugin enhancements; and for authors to test new/new versions of plugins, and to discuss plugin development (in the Programming Technicalities sub-forum). If you want advice on choosing or using a plugin, please ask in General Usage or an appropriate sub-forum.
Post Reply
User avatar
Ron Melby
Megastar
Posts: 878
Joined: 15 Nov 2016 15:40
Family Historian: V6.2

IUP and fh function

Post by Ron Melby » 12 Dec 2022 12:14

two questions.

1) I see there is a function that allows me to go from the description Confirmation to the tag CONF. I do not see a way to go from the tag to the description. There must be one, but I am not understanding it.

2) in IUP using iup.GetParam() is there a way to get the options to display vertically instead of horizontally?
Untitled.jpg
Untitled.jpg (20.43 KiB) Viewed 431 times
FH V.6.2.7 Win 10 64 bit

User avatar
ColeValleyGirl
Megastar
Posts: 4853
Joined: 28 Dec 2005 22:02
Family Historian: V7
Location: Cirencester, Gloucestershire
Contact:

Re: IUP and fh function

Post by ColeValleyGirl » 12 Dec 2022 12:31

1. Have a look at fhGetFactTypeInfo.
2. I don't believe so, but I never use GetParam as it's so inflexible and a pain to use.

User avatar
Ron Melby
Megastar
Posts: 878
Joined: 15 Nov 2016 15:40
Family Historian: V6.2

Re: IUP and fh function

Post by Ron Melby » 12 Dec 2022 12:56

1. I am on 6.7.2 and that does not appear in the help search. did you do any slicing and dicing of the *.fhf files in research planner that might help me?

2. what iup is the simplest to go from here to there?

function sltLNK()
local Opt = 0
local WS_RC

WSTitle = 'Display Link'
txtOpt[0] = 'cem'
txtOpt[1] = 'web'
txtOpt[2] = 'rlt'

WS_RC, Opt = iup.GetParam(
WSTitle,
nil,
('Use Link: %%o|%s|%s|%s|\n'):format(txtOpt[0], txtOpt[1], txtOpt[2]),
Opt)

if not Opt then Opt = 0 end
_slt['_lnk'] = {fn_key = WS_RC, ix = (Opt + 1) or 0, parm = (txtOpt[Opt]) or ''}
return _slt['_lnk']
end -- fn sltWEBLNK

thanks
FH V.6.2.7 Win 10 64 bit

User avatar
ColeValleyGirl
Megastar
Posts: 4853
Joined: 28 Dec 2005 22:02
Family Historian: V7
Location: Cirencester, Gloucestershire
Contact:

Re: IUP and fh function

Post by ColeValleyGirl » 12 Dec 2022 12:59

Ron, sorry -- I'd forgotten you weren't on V7.

Have a look at the Multifact plugin, specifically the Facts class at line 1706.

Have you used IUP at all? You may wish to explore the Samples and Tutorial in the IUP documentation (remembering that the documentation is for 3.30 and you have 3.11 so may encounter stuff that isn't supported in the earlier version.

User avatar
Ron Melby
Megastar
Posts: 878
Joined: 15 Nov 2016 15:40
Family Historian: V6.2

Re: IUP and fh function

Post by Ron Melby » 12 Dec 2022 13:06

I have used iup sommat. it is still a miasma to me. I was looking for a suggestion on what the quickest simplest conversion function would be.

I am thinking that v7 is getting ironed out enough where it may be worth getting soon.

I will look at that source. I suppose I could build *another* permanent table....
FH V.6.2.7 Win 10 64 bit

Post Reply