有没有办法在动作脚本3中隐藏#include <iostream>
#include <string>
#define BOOST_TEST_MODULE Main
#include <boost/test/unit_test.hpp>
#include <boost/spirit/include/qi.hpp>
using std::string;
namespace qi = boost::spirit::qi;
using Iterator = std::string::iterator;
using Skipper = qi::space_type;
Skipper skipper = qi::space;
void CHECK_ITERATOR(Iterator p, Iterator end)
{
if (p != end)
{
BOOST_CHECK_MESSAGE(p == end, "Remaining: " << string(p, end));
}
}
BOOST_AUTO_TEST_CASE(parse_char_type_B)
{
qi::rule<Iterator, Skipper, char()> rule = qi::char_;
char expected = 'B';
char actual = 0;
string toParse(&expected, (&expected) + 1);
Iterator it = toParse.begin();
BOOST_REQUIRE(qi::phrase_parse(it, toParse.end(), rule, skipper, actual));
CHECK_ITERATOR(it, toParse.end());
BOOST_CHECK_EQUAL(expected, actual);
}
BOOST_AUTO_TEST_CASE(parse_char_type_C)
{
qi::rule<Iterator, Skipper, char> rule = qi::char_;
char expected = 'C';
char actual = 0;
string toParse(&expected, (&expected) + 1);
Iterator it = toParse.begin();
BOOST_REQUIRE(qi::phrase_parse(it, toParse.end(), rule, skipper, actual));
CHECK_ITERATOR(it, toParse.end());
BOOST_CHECK_EQUAL(expected, actual);
}
BOOST_AUTO_TEST_CASE(parse_char_type_D)
{
//qi::rule<Iterator, char, Skipper> rule = qi::char_;
char expected = 'D';
char actual = 0;
string toParse(&expected, (&expected) + 1);
Iterator it = toParse.begin();
//BOOST_REQUIRE(qi::phrase_parse(it, toParse.end(), rule, skipper, actual));
//CHECK_ITERATOR(it, toParse.end());
//BOOST_CHECK_EQUAL(expected, actual);
}
textInput
?
仅显示图标显示结果。
修改属性DateField
CSS:
textInputStyleName="textInputStyle"
答案 0 :(得分:1)
您可以使用TextInput
隐藏DateField
组件的mx.core.mx_internal
,如下所示:
var text_input:TextInput = date_field.mx_internal::getTextInput();
text_input.visible = false;
您还可以使用按钮显示DateChooser
组件,而不是DateField
。
希望可以提供帮助。