wxWidgets Logo
 
 

Docs

 
  Tutorials
FAQ
Licence
 
 

How to make wxText and wxListBox widgets more Windows-like under Motif



> - the default sizes for wxText and wxListBox lead to very small text
> areas under Motif

This problem is related to the default configuration of the Motif
widgets. Concerning the textitem the small text area is cause by
"extra wide" borders. To solve this problem you have to create
the following file
         /etc/X11/app-defaults/your_executable_name
and put following entries into it:

!******************************************************************************
! wxText
! MSW-like apparence
*XmText.marginHeight:  1
*XmText.marginWidth: 1
*XmText.background: #FFFFFF

! the next line takes no effect, because LoadFromResource overwrites the
font
!*XmText.fontList:
-*-helvetica-medium-r-*-*-*-120-*-*-*-*-iso8859-*

!******************************************************************************
! wxListBox
! MSW-like apparence
*XmList.background: #FFFFFF
*XmList.marginHeight:  1
*XmList.marginWidth: 1

This configuration will result in an more Windows-like look!


I hope this hints will solve your problems!.

best regards

          Albert Treytl
--
Albert Treytl
email: e9126078@stud1.tuwien.ac.at
       treytl@ss1.iaee.tuwien.ac.at
addr:  Kierlingerstr.60 A-3400 Klosterneuburg Austria

 
 

Quick Links

 
  Documentation
Hello, world!
Stable manual
Latest manual
Change log

Community

Mailing Lists
wxBlog
wxCode (Add-ons)
wxForum
wxWiki

Development

Sources
wxTrac
New ticket
Roadmap
 
 
 
 

wxSolutions

 
   
 
 
 

wxBook

 
 

Buy it From:
Amazon.com
Amazon.co.uk

 
 

Site design and update scripts by Kevin Ollivier, with special thanks to Brad Anderson for his improvements to the sidebar, intro table and navbar designs, Bryan Petty for the new wxWidgets blocks graphics and logo text, and to the wxWidgets community for all their helpful suggestions, comments and testing!