Jump to content
Sign in to follow this  
R3vo

Trouble with displays displayCtrl not working

Recommended Posts

I am having trouble with a display I am working on. I want to change the text of a structuredText control, but displayCtrl is returning "No Control". Guess I am missing the obvious.

onLoad = "Revo_mD_display = _this select 0;" // To save the display to a variable, returns #81000 which is the idd of my display
Revo_mD_display displayCtrl 82000; //Does return "No Control"

The control itself:

class controls 
{
            class Revo_mD_Distance: RscStructuredText
            {
                idd = 82000;
                text = "Distance:";
                x = 0.875 * safezoneW + safezoneX;
                y = 0.3 * safezoneH + safezoneY;
                w = 0.8 * safezoneW;
                h = 0.8 * safezoneH;
                font = "LucidaConsoleB";
                SizeEx = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 0.5)";
            };
};

I've done things like that a thousand times in dialogues, but displays always cause trouble for me.

Share this post


Link to post
Share on other sites

Aren't you supposed to use idc and not idd for controls? 

I knew it was something very obvious, thanks for pointing that out. I can't even believe that I missed that, I compared it with a working dialogue line by line...... :face_palm:

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×