Guest xionmark Posted November 28, 2004 Share Posted November 28, 2004 Hi, I was wondering how one would declare a field in the GUI tamplate to create a "non-editable" field to be used for informational feedbak only, not to edited by the user. In this example: only the first 4 parameters are available for the user to edit, the other fields provide feedback to the user of what type of terrain file has been read. I'd like it to be a cleaner look, without the controls and just have the vaules painted into the GUI. Right now the fields are defined like: // Terrain scale (vector), height scale, base height PRM_Template(PRM_XYZ, 3, &names[7]), PRM_Template(PRM_INT, 1, &names[8]), PRM_Template(PRM_INT, 1, &names[9]), // Radius & crvm PRM_Template(PRM_FLT, 1, &names[10]), PRM_Template(PRM_INT, 1, &names[11]), What PRM_Type should I use? Thanks! --Mark Quote Link to comment Share on other sites More sharing options...
edward Posted November 28, 2004 Share Posted November 28, 2004 Try PRM_LABEL. It's intrinsic type is a string. Quote Link to comment Share on other sites More sharing options...
Guest xionmark Posted November 28, 2004 Share Posted November 28, 2004 Try PRM_LABEL. It's intrinsic type is a string. 15178[/snapback] Thanks Edward! Works like a charm! --Mark Quote Link to comment Share on other sites More sharing options...
jalouse Posted November 27, 2020 Share Posted November 27, 2020 Anyone knows how to dynamicaly change the string in a button calback ? i figured out how to dynamicaly change Integers and floats on PRM_INT or PRM_FLT Parms with function : me->setInt("intParm",intValue); or me->setFloat("floatParm",floatValue); but could not find on PRM_LABEL i obviously tried setString()... but seems to be used for a different purpose please find below my caalbaclk on PRM_CALLBACK int SOP_CircleLineAnimator::UICheckFile(void *data, int index, float t, const PRM_Template *) { SOP_CircleLineAnimator *me; me = (SOP_CircleLineAnimator *)data; me->setInt("txt", 12); me->forceRecook(); return 0; } Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.