Old 6th September 2016, 14:18   #1
pmilkman
Junior Member
 
Join Date: Sep 2016
Posts: 2
Metadata for form fields?

I'm trying to make a re-usable onclick function for help icons that I can use for all of them. The problem I'm running into is that I can't seem to find a place to store the text for the help icon MessageBox that pops up.

Bitmap doesn't have a 'text' property. Others do like Button, but I don't want the help text displaying on the button, just queryable in the onclick, and I need to have this styled like in my bitmap.

Any thoughts?

Thanks in advance.
pmilkman is offline   Reply With Quote
Old 6th September 2016, 14:36   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 4,817
You really should provide some more information when you post questions! Is this a custom page? Plug-ins used?

Anyway, if this is a nsDialogs custom page then nsDialogs has set/get functions to add some data to each control...

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 6th September 2016, 14:57   #3
pmilkman
Junior Member
 
Join Date: Sep 2016
Posts: 2
Sorry! Thanks for the reply.

I'm still kind of new to NSIS (if it isn't obvious).

This is a custom page using nsdialogs.

Are you referring to NSD_SetText and NSD_GetText? Can these be applied to bitmaps? I haven't tried that. (In meetings for a while and can't test right away) That would definitely solve my problem. Or some other way to attach key/value information that can be queried in an onclick event handler.
pmilkman is offline   Reply With Quote
Old 6th September 2016, 18:24   #4
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 4,817
No I'm talking about nsDialogs::SetUserData

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Reply
Go Back   Winamp & SHOUTcast Forums > Developer Center > NSIS Discussion

Tags
bitmap, control, metadata, nsis, onclick

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump