About   |   Getting Started   |   Downloads   |   Documentation   |   Forum


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
string utilities and smart text fields
06-22-2016, 11:04 AM
Post: #1
string utilities and smart text fields
One thing (among many) that I miss about ADM is the ability to set parameters for UI input fields. For example:

Code:
// initialize SpinEditPopup list
    sADMItem->SetUnits(itemRef, kADMNoUnits);
    sADMItem->SetPrecision(itemRef,4);
    sADMItem->SetItemStyle(itemRef, kADMNumericTextEditStyle);
    sADMItem->SetMinFloatValue(itemRef, 1);
    sADMItem->SetMaxFloatValue(itemRef, 120);

Can properties like this be added to text widgets?

Also, there were string utilities to aid in converting values and dimensions from input fields into meaningful values. I've written string parsers in the past that processed equations such as "(3mm + 2 1/2 in.) * 4" and return a double in Illustrator's native units, points. That's probably be much more than necessary, but it would be nice to have controls that can police and coerce their content to make life easier for both developers and users.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)