xBrowser: Is it possible to change alignment on the fly?
xBrowser: Is it possible to change alignment on the fly?
nDataStrAlign := AL_RIGHT
Is it possible to change alignment on the fly?
Thanks in advance
Otto
Is it possible to change alignment on the fly?
Thanks in advance
Otto
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
- Enrico Maria Giordano
- Posts: 7355
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact:
- nageswaragunupudi
- Posts: 8017
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Contact:
- nageswaragunupudi
- Posts: 8017
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Contact:
Code: Select all
METHOD DataAlign( nAlign ) CLASS TXBrwColumn
if ! ( ::nDataStrAlign == nAlign ) // tolerate nil param
::nDataStrAlign := AL_RIGHT
::nDataStyle := ::DefStyle( ::nDataStrAlign, ( ::oBrw:nDataLines == 1 ) )
endif
RETURN ::nDataStrAlign
Regards
G. N. Rao.
Hyderabad, India
G. N. Rao.
Hyderabad, India
- nageswaragunupudi
- Posts: 8017
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Contact:
Mr Otto
Obviously the values should be rtimmed for right justification. My proposed method is only for changing justification on the fly.
If you change the paint method you may like to cover the cases of left, center and riight justifcations and all other possibilities. For non left justified painting probably alltrim(,,,) may be better, We should also keep in mind multiple line painting. Paint is a very generic method. Should we change this paint method or specify bStrData appropriately?
Obviously the values should be rtimmed for right justification. My proposed method is only for changing justification on the fly.
If you change the paint method you may like to cover the cases of left, center and riight justifcations and all other possibilities. For non left justified painting probably alltrim(,,,) may be better, We should also keep in mind multiple line painting. Paint is a very generic method. Should we change this paint method or specify bStrData appropriately?
Regards
G. N. Rao.
Hyderabad, India
G. N. Rao.
Hyderabad, India
- James Bott
- Posts: 4654
- Joined: Fri Nov 18, 2005 4:52 pm
- Location: San Diego, California, USA
- Contact:
Hello James,
to learn to use xBrowser I created a little tool xBTool to build a xBrowser visually.
There I want to click on the header and select if the column should be right aligned or left.
Doing this I saw that text fields do not align accurately. Therefore I pointed this problem out.
Regards,
Otto
to learn to use xBrowser I created a little tool xBTool to build a xBrowser visually.
There I want to click on the header and select if the column should be right aligned or left.
Doing this I saw that text fields do not align accurately. Therefore I pointed this problem out.
Regards,
Otto