Search found 1395 matches: ofont

Searched query: ofont

by sysctrl2
Sat Feb 15, 2025 5:49 pm
Forum: FiveWin para Harbour/xHarbour
Topic: Problemas con SkinButtons() FWH24.07
Replies: 3
Views: 222

Problemas con SkinButtons() FWH24.07

... 10)
LOCAL cName := space(50)
LOCAL cEmpresa := "SysCtrl"
LOCAL oDlg,oGet1,oGet2, oCbx, oBtn1, oBtn2
LOCAL oBrush
LOCAL lVal := .f.
LOCAL oFont
DEFINE BRUSH oBrush COLOR nRGB( 255, 255, 255 )
DEFINE FONT oFont NAME "Tahoma" SIZE 0, -12 BOLD
DEFINE DIALOG oDlg SIZE 610, 330 brush oBrush ...
by Silvio.Falconi
Wed Feb 12, 2025 11:16 pm
Forum: FiveWin for Harbour/xHarbour
Topic: activate an online button
Replies: 2
Views: 176

activate an online button

... test

// developed by Cristobal Navarro

#include 'fivewin.ch'
#include 'xbrowse.ch'
#include "constant.ch"

Function test()

local oDlg,oDbf,oFont
local oBar

local nBottom := 27.2
local nRight := 89
local nWd := Max( nRight * DLG_CHARPIX_W, 180 )
local nHt := nBottom * DLG_CHARPIX_H ...
by Antonio Linares
Wed Feb 12, 2025 9:29 am
Forum: FiveWin for Harbour/xHarbour
Topic: Using Ollama + Microsoft Phi4 AI from [x]Harbour+FWH
Replies: 1
Views: 164

Using Ollama + Microsoft Phi4 AI from [x]Harbour+FWH

... run: ollama serve

#include "FiveWin.ch"

static oChat, oOutput
static nStartTime, nTokenCount

function Main()

local oDlg, cOutput := "", oBtn, oFont
local oPrompt, cPrompt := Space( 100 )

oChat = TOLlama():New( "phi4" )
FW_SetUnicode( .T. )

DEFINE FONT oFont NAME "system-ui" SIZE 0, -16 ...
by Silvio.Falconi
Fri Feb 07, 2025 1:36 pm
Forum: FiveWin for Harbour/xHarbour
Topic: AEvalWhen problems RESOLVED
Replies: 1
Views: 314

AEvalWhen problems RESOLVED

... 100
local nHt := nBottom * DLG_CHARPIX_H
local nWd := Max( nRight * DLG_CHARPIX_W, 180 )
local oCursorBtn :=TCursor():New(,'HAND')

local oFont := TFont():New("Tahoma", 0, 18, , )
local oBold := TFont():New("Tahoma", 0, 16, , .t.)


DEFINE DIALOG oDlg SIZE nWd, nHt PIXEL TRUEPIXEL ;
FONT ...
by nageswaragunupudi
Sun Feb 02, 2025 6:25 pm
Forum: FiveWin para Harbour/xHarbour
Topic: problemas con CheckBox en Dialog con TRANSPARENT en FWH 2409
Replies: 12
Views: 11429

Re: problemas con CHECKBOX en FWH 2409

... with Harbour, xHarbour with and without Manifest.

This is the program we used to test:
#include "fivewin.ch"

function Main()

local oDlg, oFont
local oGet[ 20 ]
local aVar := { Space(10), "1234567890", Space(10), Space(10), 0, ;
1, "multiline", Space(10), Space(10), 0, ;
0, 0, 0, Space ...
by Antonio Linares
Fri Jan 31, 2025 5:02 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Using DeepSeek locally using Ollama
Replies: 11
Views: 1827

Re: Using DeepSeek locally using Ollama

... ollama2.prg
#include "FiveWin.ch"

static oChat, oOutput
static nStartTime, nTokenCount

function Main()

local oDlg, cOutput := "", oBtn, oFont
local oPrompt, cPrompt := Space( 100 )

oChat = TOLlama():New( "deepseek-r1:32b" )
FW_SetUnicode( .T. )

DEFINE FONT oFont NAME "system-ui ...
by Iris Gesser
Thu Jan 30, 2025 10:28 pm
Forum: FiveWin for Harbour/xHarbour
Topic: xBrowse record selector color
Replies: 3
Views: 654

Re: xBrowse record selector color

... Focus( oBrw ) } //{ CLR_WHITE, RGB( 0x33, 0x66, 0xCC ) } }
:bClrSel := { || MyColors_Focus( oBrw ) } //{ CLR_WHITE, RGB( 0x33, 0x66, 0xCC ) } }
:SetColor( CLR_BLUE, CLR_WHITE) //@IA 20200819
:nRowHeight := 80
// :oFont := oFntFocus


:CreateFromCode()
END
//------------

Kind regards
Iris
by nageswaragunupudi
Wed Jan 29, 2025 11:39 pm
Forum: FiveWin para Harbour/xHarbour
Topic: dialogo resizable desde recursos?
Replies: 14
Views: 29949

Re: dialogo resizable desde recursos?

I gave this function in my original sample
function SetResize( oDlg )

local oCtrl

oDlg:Cargo := { oDlg:nWidth, oDlg:nHeight, oDlg:oFont:nHeight }
for each oCtrl in oDlg:aControls
WITH OBJECT oCtrl
:Cargo := { :nTop, :nLeft, :nWidth, :nHeight, :oFont:nHeight }
END
next

return nil

Please ...
by nageswaragunupudi
Wed Jan 29, 2025 9:49 am
Forum: FiveWin for Harbour/xHarbour
Topic: Determine lengt in Pixel of cVar
Replies: 1
Views: 386

Re: Determine lengt in Pixel of cVar

Code: Select all | Expand

? oBtn:GetWidth( cText, [oFont] )
 ? oDlg:GetWidth( cText, [oFont] )
by nageswaragunupudi
Wed Jan 29, 2025 8:22 am
Forum: FiveWin para Harbour/xHarbour
Topic: dialogo resizable desde recursos?
Replies: 14
Views: 29949

Re: dialogo resizable desde recursos?

... this sample as it is.
If this works as expected, you may use this for your other dialogs.

#include "fivewin.ch"

function Main()

local oDlg, oFont
local aVar := { PadR( "get1", 10 ), PadR( "edit", 10 ), Space( 10 ), PadR( "pwd", 10 ) }
local aGet[ 4 ]

DEFINE FONT oFont NAME "TAHOMA" SIZE 0 ...
by karinha
Tue Jan 28, 2025 1:24 pm
Forum: FiveWin para Harbour/xHarbour
Topic: Color de fondo y texto a los campos TEXTO (MEMO)
Replies: 5
Views: 824

Re: Color de fondo y texto a los campos TEXTO (MEMO)

... ENDMENU
return oMenu

//----------------------------------------------------------------------------//

function BldDlg1()

local oDlg, oArial, oFont, oMemo, oGroup
local cName1 := "ONE "
local cName2 := "two "
local cName3 := "3 "
local cName4 := "4 "
local cName5 := "5 "
local cName6 ...
by karinha
Tue Jan 28, 2025 1:22 pm
Forum: FiveWin para Harbour/xHarbour
Topic: Color de fondo y texto a los campos TEXTO (MEMO)
Replies: 5
Views: 824

Re: Color de fondo y texto a los campos TEXTO (MEMO)

... CLR_SOFTYELLOW nRGB( 255, 251, 225 ) //-> Amerelo Soft.

FUNCTION Main()

LOCAL aColors := { CLR_WHITE, CLR_YELLOW, CLR_HGREEN }
LOCAL oDlg, oFont, oGet, oMemo, n, oBtnCal, oBtnCan
LOCAL nColor := 1
LOCAL CText := "This is some" + CRLF + "text"

SetGetColorFocus()

tGet():lDisColors := .F ...
by karinha
Sat Jan 25, 2025 6:46 pm
Forum: FiveWin para Harbour/xHarbour
Topic: Clausula TRANSPARENT no funciona en GROUP
Replies: 4
Views: 739

Re: Clausula TRANSPARENT no funciona en GROUP

Leandro prueba asi, porfa:


// C:\FWH\SAMPLES\LEANDGRP.PRG

#include "FiveWin.ch"

FUNCTION Main()

LOCAL oDlg, oFont, oBold, aVar[ 2 ], cTitle

AFill( aVar, Space( 60 ) )

cTitle := "GROUPBOX con xHarbour de 64 bits - Funciona?"

DEFINE FONT oFont NAME "ARIAL" SIZE 0, - 14
DEFINE FONT oBold ...
by Antonio Linares
Fri Jan 24, 2025 10:37 am
Forum: FiveWin for Harbour/xHarbour
Topic: Using new Class TDeepSeek for documenting
Replies: 29
Views: 4835

Re: Using new Class TDeepSeek for documenting

... Parameters: None

Return Value: None

Usage Example: (Internal use only, likely related to font handling within the control)

108. SetFont( oFont, lResizeCols )

Description: Sets the font to be used for displaying data within the TXBrowse control.

Parameters:

oFont: OBJECT - The TFont ...
by Antonio Linares
Fri Jan 24, 2025 10:28 am
Forum: FiveWin for Harbour/xHarbour
Topic: Using new Class TDeepSeek for documenting
Replies: 29
Views: 4835

Re: Using new Class TDeepSeek for documenting

... T. ) // Sets column widths in creation order.
content_copy
download
Use code with caution.
Harbour

30. SetGroupHeader( cGrpHdr, nFrom, nUpto, oFont, nAlign, nHeight )

Description: Sets a group header for a range of columns.

Parameters:

cGrpHdr: CHARACTER - Group header text.

nFrom: NUMERIC ...