Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations KootK on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Label text red coloured ?

Status
Not open for further replies.

Ehaviv

Computer
Jul 2, 2003
1,012
Hi

I want to add this
(Required *) in red coloured
To a label of a blockstyler button.

Please help how to do that.

Thanks.
 
Replies continue below

Recommended for you

The 'Required *' is something that needs user input and reserved for selection blocks.
You can add it to the dialog though using labels:
- Create a label block and add text 'required'
- Create a label block and enter 'asterisk' as the Bitmap Value
- Use Other, Attachments to position appropriately
2019-04-24_12_20_07-No_Title_bhxrlm.png
 
Hi deedub and thank you.

I know that this is for user must lnput.
I want to use this for a string block.

So I want to insert that text in red colour in the string block title.

Is this possible or I must use a label block.

Thanks.
 
Oh, I'm not sure I understood.

Do you want the string block to be a required input? If so, when you add the string, set the RequiredInput to 'True'
2019-04-24_14_32_07-Dialog_klhfky.png

2019-04-24_14_33_20-NX_-_Block_UI_Styler_jkslaz.png
 
I don't believe how I missed it.

Thank you very much.

 
Deedub maybe you can also help
In this issue.

To that string block to make it
Must input.
I used the enableokbutton notification

But the ok button come to be active
Only after I leave the string block focus
Or pressing enter.

But I want that when I keying a character
The ok button to be coming active.

Thanks.
 
Forgot my last post
The required option solve it.

But now when I keying space its
Not get the green v .

What if I want a space as my input.

Thanks
 
You must confirm the string entry by clicking on the next input block or pressing return (to confirm the entry). The OK becomes enabled.
 
I'm very thank you for all your help.

I still have problems.
Because my dialog is with some options
and in each option some blocks are hidden
and some shown and if one with the
Required option is hidden I need to check
If its required still active and so on.

But I need to straggling with this
By myself
.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor