Jump to content


Photo
- - - - -

Open Client text alignment


4 replies to this topic

#1 mikelandl

mikelandl

    Expert

  • Members
  • PipPipPipPip
  • 101 posts

Posted 11 November 2014 - 03:22 PM

Does anybody know if there is an easy way to align static text in the Open Client?

 

For example, we have a screen with the following static text:

 

Heading 1            :

Heading    2         :

The third heading:

 

 

We would like the colons to line up as they do above (and they do in the MFC client) but in the Open Client they display as:

 

Heading 1 :

Heading    2 :

The third heading:

 

I believe the Open Client uses proportional fonts (namely Arial) as a default font for static text so I overwote the static text CSS to use monospace but that didn't really help at all. The alignment of the static text is set to 'default'. I've tried other options (i.e. mono, both, fill, etc) but none of them help.

Thanks.



#2 Wim Soutendijk

Wim Soutendijk

    ProIV Guru

  • Members
  • PipPipPipPipPip
  • 211 posts
  • Gender:Male
  • Location:Netherlands

Posted 12 November 2014 - 07:31 AM

You can try splitting up the static text into 2 parts. take out the : from each line, and add new static texts lines with just the : and the row/column you want them to appear. that should align them out



#3 mikelandl

mikelandl

    Expert

  • Members
  • PipPipPipPip
  • 101 posts

Posted 18 November 2014 - 02:06 PM

You can try splitting up the static text into 2 parts. take out the : from each line, and add new static texts lines with just the : and the row/column you want them to appear. that should align them out

 

Thanks Wim. I imagine that would work but unfortunately the work involved would be considerable.



#4 DARREN

DARREN

    ProIV Guru

  • Members
  • PipPipPipPipPip
  • 396 posts
  • Gender:Male
  • Location:Florida,USA

Posted 01 December 2014 - 03:44 PM

What font are you using in the Windows Client - proportional e.g TimesNewRoman or fixed e.g CourierNew.

 

It sounds like you are using some sort of fixed font. If so you can amend you application CSS (that overrides the OpenClient CSS) and set the font to that employed in your Windows client settings.


Things should be made as simple as possible, but not simpler

#5 mikelandl

mikelandl

    Expert

  • Members
  • PipPipPipPip
  • 101 posts

Posted 04 December 2014 - 08:15 PM

What font are you using in the Windows Client - proportional e.g TimesNewRoman or fixed e.g CourierNew.

 

It sounds like you are using some sort of fixed font. If so you can amend you application CSS (that overrides the OpenClient CSS) and set the font to that employed in your Windows client settings.

 

Sorry, I should have replied to this earlier. ProIV showed me that using the CSS file in the PROIVClient folder in appResources will cause the open client to mimic (as well as possible) the MFC Client. While it doesn't look as nice as the default open client CSS file it does solve our immediate issue and gives us something to build from.





Reply to this topic



  


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users