Jump to content
HazJ

[SOLVED] ctrlCreate flicker issue + DELETE word in button text

Recommended Posts

Hi...

First issue (see video):

My guess is that it is ctrlCreate's initial default position? Which is odd as I specify my own? I even tried creating the element/control off-screen and then moving. It makes no difference.

for "_i" from 0 to (_men - 1) do
{
	_manIcon = _display ctrlCreate ["RscPicture", _idc];
	_manIcon ctrlSetPosition [_xPos * safezoneW + safezoneX, 0.24 * safezoneH + safezoneY, 0.0125 * safezoneW, 0.02 * safezoneH];
	_manIcon ctrlSetText "pics\icons\men.paa";
	_manIcon ctrlSetScale 1.25;
	_manIcon ctrlCommit 0;
	_xPos = _xPos + 0.0147;
	_idc = _idc + 100;
};

Second issue:

I understand you can't use the keyword DELETE in dialogs/prePreProcessor-file but it doesn't make sense as to why it doesn't work in the button text (STRING)? It simply doesn't show the word.

text = "DELETE MACRO";
// even tried...
text = "MACRO DELETE";
text = "ADELETE"; // this works

How am I suppose to escape it inside the string? Haven't tried it with ctrlSetText but still would like to know how/why if anyone knows.

 

EDIT: It appears to be an issue when using DELETE MACRO string. It works with them both without one another. lol? Weird.

  • Like 1

Share this post


Link to post
Share on other sites

Set position and scale then commit before applying text.

  • Thanks 2

Share this post


Link to post
Share on other sites

Ha, so simple. Thank you! Any ideas about the second issue? I want a button to read: "DELETE MACRO"

Solved. ArmA

  • Like 1

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

×