fixunix
Tags Register FAQ Members List Social Groups Calendar Search Today's Posts Mark Forums Read

Text alignment - Motif

This is a discussion on Text alignment - Motif ; Hi, currently I'm using XmText for displaying values. Displaying numbers I'm intending to align them on the right side... How? kindly Thomas...


Fix Unix > Tools > Motif > Text alignment

Reply
 
LinkBack Tools
  #1  
Old 10-06-2008, 06:46 AM
Junior Member
 
Join Date: Sep 2009
Posts: 0
Default Text alignment

Hi,

currently I'm using XmText for displaying values.
Displaying numbers I'm intending to align them
on the right side...

How?


kindly
Thomas
Reply With Quote
  #2  
Old 10-06-2008, 02:34 PM
Junior Member
 
Join Date: Sep 2009
Posts: 0
Default Re: Text alignment

On Oct 5, 11:46*pm, Thomas Lehmann wrote:
> Hi,
>
> currently I'm using XmText for displaying values.
> Displaying numbers I'm intending to align them
> on the right side...
>
> How?
>


By brute force, using the XmNmodifyVerify callback.
In the callback, retrieve the existing text, verify that appending
the
modification will still create a number, then modify the
currInsert, newInsert, startPos, endPos, and text fields of
the callback struct such that the new text replaces the
old. You will have to realloc the text->ptr field to allow for
space for the new longer value.
--
Fred Kleinschmidt
Reply With Quote
Reply

Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Console alignment doesn't match X alignment ?! unix Help 0 09-30-2007 02:49 PM
Copy web text fr FF2 PASTE to outlook text mail msg get an attachment not text unix Mozilla 6 02-26-2007 12:50 AM
Export/Import text from/into email textbox in Firefox to/from the text file unix Mozilla 0 10-23-2006 12:36 PM
Export/Import text from/into email textbox in Firefox to/from the text file unix Mozilla 2 10-23-2006 12:30 PM
gecko/mac css bug: a:hover redraws text again and again, causing blurry thick fuzzy text unix Mozilla 8 10-12-2006 09:43 PM


All times are GMT. The time now is 08:16 AM.