Source language: Translate to:

Wich Text is marked?

NeoBook tips, tricks, code samples and more...

Moderator: Neosoft Support

Wich Text is marked?

Postby Schneppi » Sun Jul 25, 2004 3:54 am

Hello.

Is there a way to check which signs (part) of a text is marked in a text entry box?

I would like to make a text entry field where the user can mark a part of this text. The Pub will have to know which part is marked so that it can perform actions just on this marked portion of the text entry field.

Thank you.

(Edited by Schneppi at 12:55 pm on July 25, 2004)
Schneppi
 

Wich Text is marked?

Postby Gaev » Sun Jul 25, 2004 5:21 am

Schneppi:

Look in the Help file for ... GetObjectInfo "object name" "info type" "variable"


... Info type may be one of the following keywords: Visible, Enabled, Left, Top, Width, Height, FileName, SelectedText, CursorPosition, ImageWidth, ImageHeight, MediaLength



... SelectedText and CursorPosition are relevant to what you want to do.



(Edited by gk51 at 8:22 am on July 25, 2004)
User avatar
Gaev
 
Posts: 3717
Joined: Fri Apr 01, 2005 7:48 am
Location: Toronto, Canada

Wich Text is marked?

Postby Schneppi » Sun Jul 25, 2004 4:24 pm

Quote: from gk51 on 2:21 pm on July 25, 2004
SelectedText, CursorPosition, ...

... SelectedText and CursorPosition are relevant to what you want to do.



(Edited by gk51 at 8:22 am on July 25, 2004)


Thank you gk51.
You are right, this is exactly what i wanted :)

(Edited by Schneppi at 1:25 am on July 26, 2004)
Schneppi
 


Return to NeoBook Knowledgebase

Who is online

Users browsing this forum: No registered users and 0 guests