FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour xBrowse SetEditType FONT
Posts: 6984
Joined: Fri Oct 07, 2005 07:07 PM
xBrowse SetEditType FONT
Posted: Mon Aug 10, 2009 05:18 PM
How can I change the font in edit modus.

Thanks in advance
Otto

Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: xBrowse SetEditType FONT
Posted: Mon Aug 10, 2009 05:41 PM

Otto,

The edit font defaults to the same font as the display font so assuming you have changed the display font, then this should work:

oBrw:oEditFont := oFont

James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 6984
Joined: Fri Oct 07, 2005 07:07 PM
Re: xBrowse SetEditType FONT
Posted: Mon Aug 10, 2009 05:47 PM

Thank you, James.
It is working.
Best regards,
Otto

Posts: 6984
Joined: Fri Oct 07, 2005 07:07 PM
Re: xBrowse SetEditType FONT
Posted: Mon Aug 10, 2009 07:21 PM

James, do you also know how to change
EDIT_LISTBOX FONT.

Thanks in advance
Otto

Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: xBrowse SetEditType FONT
Posted: Tue Aug 11, 2009 06:16 AM
Otto,

You can't specify the listbox font. The listbox is defined in this methd:

Code (fw): Select all Collapse
METHOD ShowBtnList( nKey ) CLASS TXBrwColumn
   ...
   @ 0, 0 LISTBOX ::oEditLbx VAR nAt OF ::oBrw SIZE 0,0 ITEMS ::aEditListTxt


Defining it without specifying a font means that it will default to the Windows default font.

Perhaps you can convince Antonio to make changes to allow it.

James
FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10

Continue the discussion