LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

RichText box tab control

Hi,

is there any way we can enable the tab control in the active x richtext box?

Normally, when we press tab, it rotates among the controls on the user interface. Given in the help file, user has to press CTRL+Tab to see a tab space in the richtext box. but i also have an easytab instrument in my interface, so pressing CTRL+Tab actually toggles between the panels on the easytab.

It is also stated in the help file that there is a property called tab stop to allow user to press tab like a normal word processor. I can't seem to find this property in LabWindows though. Is it available in LabWindows??

Regards
AL
0 Kudos
Message 1 of 4
(3,380 Views)
Hi AL,

You could filter out the CTRL-TABs by using an EVENT_KEYPRESS panel callback:

if ((GetKeyPressEventModifiers (eventData2)>> 16==VAL_MENUKEY_MODIFIER>> 16) && (GetKeyPressEventVirtualKey (eventData2)==VAL_TAB_VKEY))
{
SetKeyPressEventKey (eventData2, VAL_TAB_VKEY, 0, VAL_MENUKEY_MODIFIER << 16, 0, 0);
}

See attached .c source.

Charlie Rodway | Principal Software Engineer | Certified TestStand Architect (CTA)

Computer Controlled Solutions Ltd | NI Silver Alliance Partner | GDevCon#1 Sponsor

0 Kudos
Message 2 of 4
(3,376 Views)
Hi SandmanUK,

your code was not able to work on my program.

I think the problem lies in the easy-tab instrument which seems to absorb this event.


1 way that i know of is to use the below statement:
RichTextLib_IRichTextSetSelText (TextHandle, NULL, "\t");

But i would like to do away with this because when i lock the textbox, it still accepts and display tabs which is what i don't want.

Any other solutions??


Regards
AL
0 Kudos
Message 3 of 4
(3,358 Views)
Hi

anybody uses richtext or easytab intruments knows a way out of this?

Regards
AL
0 Kudos
Message 4 of 4
(3,323 Views)