Page 1 of 1

IUP and fh function

Posted: 12 Dec 2022 12:14
by Ron Melby
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 436 times

Re: IUP and fh function

Posted: 12 Dec 2022 12:31
by ColeValleyGirl
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.

Re: IUP and fh function

Posted: 12 Dec 2022 12:56
by Ron Melby
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

Re: IUP and fh function

Posted: 12 Dec 2022 12:59
by ColeValleyGirl
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.

Re: IUP and fh function

Posted: 12 Dec 2022 13:06
by Ron Melby
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....