Search found 124 matches: nsize

Searched query: nsize

by cnavarro
Wed Jan 22, 2025 5:53 pm
Forum: FiveWin for Harbour/xHarbour
Topic: multi-column popup menu
Replies: 13
Views: 32485

Re: multi-column popup menu

... Function CtrlMove( oDlg )

local oFontWD2
local nRow := oDlg:nBottom - 150
local nCol := oDlg:nRight - 350
local nSize := 32
local oSay

@ nRow - 64, 20 GROUP TO nRow + 54, oDlg:nRight - 460 OF oDlg PIXEL PROMPT " Notes: "
@ nRow - 64, oDlg:nRight - 450 GROUP TO ...
by Silvio.Falconi
Wed Oct 02, 2024 11:35 am
Forum: FiveWin for Harbour/xHarbour
Topic: drawing a circle with FW_Box
Replies: 6
Views: 849

drawing a circle with FW_Box

... but the border is allways black...why ?

hBrush := CreateSolidBrush(RGB(255, 28, 36))

SelectObject(hDC, hBrush)


FW_Box( hDC, { nX, nY, nX + nSize, nY + nSize }, hBrush, hBrush, , 2 )

I tried also with
FW_Box( hDC, { nX, nY, nX + nSize, nY + nSize }, RGB(243, 101, 108), RGB(243, 101, 108 ...
by Otto
Sun Jul 21, 2024 9:23 am
Forum: FiveWin for Harbour/xHarbour
Topic: Need Help guide for my program.
Replies: 38
Views: 5341

Re: Need Help giide for my program

Maybe this helps:



#include <Windows.h>
#include <hbapi.h>

HB_FUNC( GETCLASSNAMEA ) // ( hWnd, cClassName, nSize ) --> nLength
{
HWND hwnd = (HWND) hb_parnl( 1 );
char *cClassName = hb_parc( 2 );
int nSize = hb_parni( 3 );
int nLen = GetClassNameA( hwnd, cClassName, nSize );
hb_retnl( nLen ...
by nageswaragunupudi
Tue May 14, 2024 5:44 pm
Forum: FiveWin para Harbour/xHarbour
Topic: CODIGO DE BARRAS. ERROR CON FILLRECT()
Replies: 31
Views: 6323

Re: CODIGO DE BARRAS. ERROR CON FILLRECT()

... does not use any font. Nothing to do with fonts.


2) En el SIZE <nWidth>, si pongo un valor menor que 4, queda igual. No se achica. El BARSIZE <nSize> no funciona. Me da error de compilación.

We need to provide both width and height in the SIZE clause
.. SIZE nWidth, nHeight UNITS INCHES/CM/MM ...
by pedroluis
Tue May 14, 2024 1:43 pm
Forum: FiveWin para Harbour/xHarbour
Topic: CODIGO DE BARRAS. ERROR CON FILLRECT()
Replies: 31
Views: 6323

Re: CODIGO DE BARRAS. ERROR CON FILLRECT()

... se cuál toma y no se como definirle uno determinado.
2) En el SIZE <nWidth>, si pongo un valor menor que 4, queda igual. No se achica. El BARSIZE <nSize> no funciona. Me da error de compilación.

Pero a pesar de todo, con la respuesta que amablemente me pasó, se pudo solucionar el problema ...
by nageswaragunupudi
Wed Oct 11, 2023 4:10 am
Forum: FiveWin para Harbour/xHarbour
Topic: IMPRESION ARCHIVOS PDF
Replies: 27
Views: 4551

Re: IMPRESION ARCHIVOS PDF

... A5 11 // A5 148 x 210 mm
#define DMPAPER_B4 12 // B4 250 x 354
#define DMPAPER_B5 13 // B5 182 x 257 mm


If paper size you want matches one of these, please use the suitable constant and use SetPage( nSize )

If you want a totally different size, please let us know the size you want (milli-metres)
by Silvio.Falconi
Thu May 11, 2023 6:22 am
Forum: FiveWin for Harbour/xHarbour
Topic: Effect Pjama on Treport ( from Xbrowse)
Replies: 5
Views: 575

Re: Effect Pjama on Treport ( from Xbrowse)

... dbf archive it could be the State field

IF I modify this command at pdreport.prg
oColumn := TRColumn():New(aTitle ,;
nCol ,;
aData ,;
nSize ,;
aPicture ,;
uFont ,;
lTotal ,;
bTotalExpr ,;
cColFmt ,;
.t. ,; <----------------------------------(lShadow)
lGrid ,;
nPen ,;
Atail ...
by Marc Venken
Thu Mar 03, 2022 10:42 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Conversion from ca-clipper ( not found a variable)
Replies: 30
Views: 7336

Re: Conversion from ca-clipper ( not found a variable)

... t.,oBrw:refresh(),oBrw:setfocus() )

DEFINE BUTTON OF oBar PROMPT "Mainbar.Exit" RESOURCE "exit" ;
ACTION Dlg:End() // This need to be oDlg

For nSize and oBtnindexes and for almost all others, I don't use any of the settings (Local, Public , ...)

I see why the warning, nSize is not set as local ...
by Enrico Maria Giordano
Thu Mar 03, 2022 10:25 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Conversion from ca-clipper ( not found a variable)
Replies: 30
Views: 7336

Re: Conversion from ca-clipper ( not found a variable)

... Meaningless use of expression 'Logical'
test1.prg(1744) Warning W0001 Ambiguous reference 'DLG'
test1.prg(1757) Warning W0001 Ambiguous reference 'NSIZE'
test1.prg(1758) Warning W0001 Ambiguous reference 'NSIZE'
test1.prg(1823) Warning W0001 Ambiguous reference 'OBTNINDEXES'

Can I see the related ...
by Marc Venken
Thu Mar 03, 2022 9:49 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Conversion from ca-clipper ( not found a variable)
Replies: 30
Views: 7336

Re: Conversion from ca-clipper ( not found a variable)

... prg(1716) Warning W0027 Meaningless use of expression 'Logical'
test1.prg(1744) Warning W0001 Ambiguous reference 'DLG'
test1.prg(1757) Warning W0001 Ambiguous reference 'NSIZE'
test1.prg(1758) Warning W0001 Ambiguous reference 'NSIZE'
test1.prg(1823) Warning W0001 Ambiguous reference 'OBTNINDEXES'
by puenteda
Thu Feb 24, 2022 5:02 pm
Forum: FiveWin para Harbour/xHarbour
Topic: Errores OLE en TEXCELSCRIPT
Replies: 9
Views: 1937

Re: Errores OLE en TEXCELSCRIPT

... Y la linea del prg es un simple say:

oExcel:Say(3,1 ,'Matrícula','Arial',09 ,.F. , , , 7 , , , ,1)
//METHOD Say( nRow, nCol, xValue , cFont , nSize , lBold , lItalic ,lUnderLine, nAlign, nColor, nFondo , nOrien , nStyle , cFormat ) CLASS TExcelScript

Como que "explota" el ole y el error sale ...
by CARLOS ATUNCAR
Thu Jan 13, 2022 6:19 pm
Forum: FiveWin para Harbour/xHarbour
Topic: TFTP no reporta archivos para actualizacion de aplicacion
Replies: 4
Views: 607

TFTP no reporta archivos para actualizacion de aplicacion

... local cServer := "ftp.servidor.com"
local cUser := "user@servidor.com"
local cpassword:= "clave"
local rRuta := "/public_ftp/ruta"
local CantFiles,nSize:= 0
local oDlg,oSay,oBtnCancel,oMeter,lEnd:=.F.,nAmount,lOk:= .F.,lValRet:= .F.
local lReturn := .F.


MsgRun( "Connecting to Internet...", "Please ...
by Garbi
Thu Jul 08, 2021 10:06 am
Forum: FiveWin para Harbour/xHarbour
Topic: Imprimir una linea con varias fuentes. - SOLUCIONADO
Replies: 4
Views: 479

Imprimir una linea con varias fuentes. - SOLUCIONADO

... oFont)

He intentado esto :
Imprimir el codigo :

oPrn:cmSay( linea,3.6,alltrim((cpptod)->codigo),oFontnegrita)

Averiguar el ancho con

nsize:=oPrn:GetTextWidth(alltrim((cpptod)->codigo),oFontnegrita)

pero me lo da en pixeles y lo paso a cm así :

nancho:=oPrn:Cmtr2Pix(nsize, 0)

y ...
by Antonio Linares
Sun Feb 07, 2021 9:15 am
Forum: WhatsNew / Novedades
Topic: New FTDN January/Enero 2021 (FWH 21.01)
Replies: 1
Views: 2545

Re: New FTDN January/Enero 2021 (FWH 21.01)

... sólo
imágenes de mapas de bits.

* Nueva función FW_RecSetHeaders( oRs ) --> aHeaders. (adofuncs.prg)

* Nueva función FW_DrawShadow( hDC, aRect, nSize ) --> Dibuja una sombra a lo largo del borde
derecho e inferior del rectángulo. (imgtxtio.prg)

* Mejora en la clase TXImage (ximage.prg):
Nueva ...
by Antonio Linares
Sun Feb 07, 2021 9:10 am
Forum: WhatsNew / Novedades
Topic: New FTDN January/Enero 2021 (FWH 21.01)
Replies: 1
Views: 2545

New FTDN January/Enero 2021 (FWH 21.01)

... any image source, not only
bmps.

* New function FW_RecSetHeaders( oRs ) --> aHeaders. (adofuncs.prg)

* New function FW_DrawShadow( hDC, aRect, nSize ) --> Draw shadow along the right
and bottom edge of the rectangle. (imgtxtio.prg)

* Enhancement: TXImage class (ximage.prg):
New DATA ...