Search found 15 matches: nnewwidth

Searched query: nnewwidth

by JoséQuintas
Mon Feb 10, 2025 1:46 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Text scroll and time graph
Replies: 2
Views: 314

Text scroll and time graph

... nCurrent, nTotal )

ENDCLASS

METHOD SetValues( nCurrent, nTotal ) CLASS GraphTime

LOCAL nSecNow, nSecElapsed, nSecRemaining, nPercent, nNewWidth, cCaption

nCurrent := Min( nCurrent, nTotal )
nSecNow := Int( Seconds() )
IF nSecNow != ::nSecondsOld .AND. nCurrent != 0
nNewWidth := Int ...
by Antonio Linares
Sat Oct 26, 2013 9:44 am
Forum: Off Topic / Otros temas
Topic: "Snap" for Clipper
Replies: 7
Views: 9964

Re: "Snap" for Clipper

... 1461 1773

NMSG
WINDOW.PRG 637 638 737 738 807 808 3827! 3836

NNEW
WINDOW.PRG 916 916 917 917

NNEWHEIGHT
WINDOW.PRG 642 1819 1822

NNEWWIDTH
WINDOW.PRG 727 1857 1860

NNOT() (function in ?)
WINDOW.PRG 3967 3986

NNOTIFYCODE
WINDOW.PRG 1374 1377 1381 1398 1401 1404

NOLDPROC ...
by ukoenig
Mon May 09, 2011 9:31 am
Forum: FiveWin for Harbour/xHarbour
Topic: Some Problems using < TScrWnd():New(.. >
Replies: 0
Views: 364

Some Problems using < TScrWnd():New(.. >

... 1, nDlgH, 1, nDlgW) // Dialog-size

In Relation to the Image-size, I used a Factor to adjust the Thumb-pos like :

If nNewHeight >= 760 .or. nNewWidth >= 760 // image-size
oScroll:SetScroll( 1, 9 , 1, 12 )
Endif

This sample shows the Thumb on Image-bottom.

Because I couldn't find any Logic ...
by Antonio Linares
Mon May 17, 2010 9:40 pm
Forum: FiveWin for Harbour/xHarbour
Topic: How to Resize Button in program?
Replies: 11
Views: 1833

Re: How to Resize Button in program?

Dutch,

oButton:SetSize( nWidth, nHeight [, lRepaint ] )

or:

oButton:nWidth := nNewWidth
oButton:nHeight := nNewHeight
by nageswaragunupudi
Tue Jul 14, 2009 1:33 pm
Forum: FiveWin for Harbour/xHarbour
Topic: How to resize a bitmap ?
Replies: 8
Views: 1993

Re: How to resize a bitmap ?

bmpResized := ResizeBmp( hOldBmp, nNewWidth, nNewHeight )
Maybe a possible solution, to use

StretchBlt()

for the new Brush-functions in FWH-9.06, to get the Image-Brush adjusted to the Dialog ???


The ResizeBmp function internally uses StretchBlt(). So using resizebmp is like using stretchblt ...
by ukoenig
Tue May 05, 2009 6:07 pm
Forum: FiveWin for Harbour/xHarbour
Topic: BtnBmp from resource, how to resize at runtime ?
Replies: 3
Views: 676

BtnBmp from resource, how to resize at runtime ?

... BTNBMP oBtn1 ID 100 OF oDlg3 ;
NOBORDER ;
FILENAME "./project/palm.bmp" ;
PROMPT "Button 1" ;
FONT oFont1 ;
RIGHT
oBtn1:lTransparent = .t.
oBtn1:cTooltip := "Button1"

That doesn't work !!!
---------------------------
obtn1:nHeight := nNewheight // User defined
oBtn1:nWidth := nNewWidth

Regards
Uwe
by Antonio Linares
Sun Apr 05, 2009 8:56 am
Forum: FiveWin for Pocket PC
Topic: How to resize a listbox
Replies: 8
Views: 1824

Re: How to resize a listbox

Otto,

You can use:

oControl:SetSize( nWidth, nHeight [, lRepaint ] )

or

oControl:nHeight = nNewHeight
oControl:nWidth = nNewWidth
by Antonio Linares
Mon Jan 26, 2009 9:16 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Rezise Bitmaps
Replies: 4
Views: 756

Re: Rezise Bitmaps

Silvio,

It is is a bitmap control then you can do:

oBmp:SetSize( nNewWidth, nNewHeight )

to know its dimensions:

oBmp:nWidth
oBmp:nHeight

or is it a bitmap that you are managing in memory (and not a visible control) ?
by Antonio Linares
Sun Jan 11, 2009 11:06 am
Forum: FiveWin for Harbour/xHarbour
Topic: multi thread vs no modal dialog ?
Replies: 4
Views: 881

Re: multi thread vs no modal dialog ?

Shuming,

You can do:

oDlg:nTop = nNewTop
oDlg:nLeft = nNewLeft
oDlg:nWidth = nNewWidth
oDlg:nHeight = nNewHeight
by Antonio Linares
Sun Dec 14, 2008 6:46 pm
Forum: FiveWin para Harbour/xHarbour
Topic: se puede poner un scroll a un dialogo?
Replies: 13
Views: 3033

JM,

oDlg:SetSize( nWidth, nHeight )

o por separado:

oDlg:nWidth = nNewWidth
oDlg:nHeight = nNewHeight
by Antonio Linares
Wed Nov 26, 2008 10:08 am
Forum: FiveWin for Harbour/xHarbour
Topic: Can a dialog be resized ?
Replies: 4
Views: 1095

Gustavo,

oDlg:SetSize( nNewWidth, nNewHeight )

or simply:

oDlg:nWidth := ...
oDlg:nHeight := ...

With oDlg:SetSize() you do it in one single step.
by Antonio Linares
Thu Oct 02, 2008 9:00 am
Forum: FiveWin for CA-Clipper
Topic: Changer d'impromante automatique
Replies: 5
Views: 2281

You may use oPrinter:SetSize( nNewWidth, nNewHeight )
by wmormar
Sat Aug 30, 2008 1:21 am
Forum: FiveWin para Harbour/xHarbour
Topic: coordenadas de ventanas (SDI, MDI)
Replies: 5
Views: 1143

... son de tipo setget, por lo que puedes usarlas para cambiar esos valores:

WndTop( hWnd [, nNewTop ] ) --> nTop
WndLeft( hWnd [, nNewLeft ] ) --> nLeft
WndWidth( hWnd [, nNewWidth ] ) --> nWidth
WndHeight( hWnd [, nNewHeight ] ) --> nHeight

Antonio,

muchas gracias, es lo que necesitaba.
by Antonio Linares
Fri Aug 29, 2008 10:43 pm
Forum: FiveWin para Harbour/xHarbour
Topic: coordenadas de ventanas (SDI, MDI)
Replies: 5
Views: 1143

... funciones WndTop(), WndLeft(), WndWidth() y WndHeight() son de tipo setget, por lo que puedes usarlas para cambiar esos valores:

WndTop( hWnd [, nNewTop ] ) --> nTop
WndLeft( hWnd [, nNewLeft ] ) --> nLeft
WndWidth( hWnd [, nNewWidth ] ) --> nWidth
WndHeight( hWnd [, nNewHeight ] ) --> nHeight
by xhbcoder
Sun May 04, 2008 8:46 pm
Forum: FiveWin for CA-Clipper
Topic: Converting POS application to xHarbour + FWH
Replies: 50
Views: 19157

... New( aRect, cName, lClient, oWnd, lMax ) CONSTRUCTOR
METHOD SetRect( aRect, oWnd )
METHOD GetRect( )

METHOD nWidth( )
METHOD _nWidth( nNewWidth )

METHOD nHeight( )
METHOD _nHeight( nNewHeight )

METHOD Changed( aRect )
METHOD Resized( aRect )
METHOD Move( nTop, nLeft, oWnd ...