Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Control to keep Text and Image
Control to keep Text and Image [message #461874] Tue, 04 October 2005 08:09 Go to next message
Eclipse UserFriend
Originally posted by: j_lalith.yahoo.com

Hi All,

Is there a Controller to keep both the Texts and Images,

If we use GC drawImage and drawText

How can we retreive the values back from the Display

Thanks
Re: Control to keep Text and Image [message #461910 is a reply to message #461874] Tue, 04 October 2005 13:55 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

You can't get values back from the display because the display is just a
bitmap of pixels. The draw image and draw text simply convert down to
setting pixels in the display. The original image and text are not
retained by the display.

What is it you are really trying to do? Are you trying to just capture
the picture of what is on the display? Are you trying to keep a record
of what images and text were drawn?

Lalith wrote:
> Hi All,
>
> Is there a Controller to keep both the Texts and Images,
>
> If we use GC drawImage and drawText
>
> How can we retreive the values back from the Display
>
> Thanks
>
>

--
Thanks,
Rich Kulp
Re: Control to keep Text and Image [message #462004 is a reply to message #461910] Tue, 04 October 2005 23:09 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: j_lalith.hotmail.com

Thanks for the reply Rich,

What am going to do is, develop a very primitive word processor using SWT.

For e.g users can inserts(input) texts and images(to a certain position)
and should be able to save and reload with the same settings (positions).
basically a primitive word processor.

Eventually to generate a XML from the display.

It would be really handy if I can incooperate drag and drop and cut and
paste features into this, I know there allready developed little word
processors which supports Texts only but not the both Texts and Images at
the same time.

Can u let us know how to proceed on this, Ideas are welcome.

wating for a reply soon

thanks
Re: Control to keep Text and Image [message #462048 is a reply to message #462004] Wed, 05 October 2005 02:44 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: j_lalith.hotmail.com

Is FormText Control suitable for this
Re: Control to keep Text and Image [message #462057 is a reply to message #462004] Wed, 05 October 2005 13:08 Go to previous message
Jeff Myers is currently offline Jeff MyersFriend
Messages: 489
Registered: July 2009
Senior Member
It's unlikely that you'll find an SWT control that'll support this sort
of manipulation directly. What you'll need to do is use or create a
higher level editor, most likely using GEF. The WYSIWYG HTML editor
included in Rational Application Developer is the closest thing I know
of to your use case, and that's implemented using GEF.

Hope this helps,
- Jeff
Previous Topic:grid layout problems
Next Topic:Client test tool for SWT
Goto Forum:
  


Current Time: Thu Mar 28 16:48:22 GMT 2024

Powered by FUDForum. Page generated in 0.04180 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top