OberonPlace.com Forums  

Go Back   OberonPlace.com Forums > Developer Forums > VBA > CorelDRAW/Corel DESIGNER VBA

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 22-05-2008, 04:27
TheFez
Guest
 
Posts: n/a
Default How selected a part of text

Hello!

I've an artistic text and I want just select a part for do operation on it!

exemple:

'the cat : smell'

become


'the cat : smell'

I try with .Text.Selection. ... but it's for text selected yet!

edit: I want select the text with integer one for the startposition and one for the lenght of the selection if is possible!

Last edited by TheFez; 22-05-2008 at 04:42.
Reply With Quote
  #2  
Old 22-05-2008, 06:43
TheFez
Guest
 
Posts: n/a
Default

So...I found and I post my solution if anyone have this problem:

ActivePage.Layers(x).Shapes.Item(y).Text.Story.Characters.Item(startpoint, lenght).Select

^^
Reply With Quote
  #3  
Old 22-05-2008, 07:07
TheFez
Guest
 
Posts: n/a
Default

Euuuuh!

In reality i need the text are partially selected or have the focus....

...and I don't found that

edit : Yoohoo!!!!

CorelScript.UnSelectAll
ActivePage.Layers(X).Shapes.Item(Y).Selected = True
Application.ActiveTool = cdrToolDrawText

This tree lines can give the focus at my text ^^


The End !


(maybe not ^^)

Last edited by TheFez; 22-05-2008 at 08:35.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing Selected text knowbodynow CorelDRAW/Corel DESIGNER VBA 2 17-10-2007 08:49
Striping a word down to the first letter only knowbodynow CorelDRAW/Corel DESIGNER VBA 9 19-04-2007 15:14
Text selection and sizing ddonnahoe CorelDRAW/Corel DESIGNER VBA 5 17-05-2005 13:19
Where is the selected text? petig CorelDRAW/Corel DESIGNER VBA 7 16-05-2005 15:30
Reading Font Properties from selected text in CD9 sherman01 CorelDRAW/Corel DESIGNER VBA 2 24-11-2004 07:59


All times are GMT -5. The time now is 23:19.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.
Copyright © 2011, Oberonplace.com