Mr. Rao,
THanks a lot for your suggestion.
After line 2 I got an error : "Invalid image".
Another problem: in the first line there are nNewHeight and nNewWitdth.
But I need to know the height and width of the original image first.
Then I have to calculate the new value by adding a percentage.
How ...
Search found 18 matches: nnewheight
Searched query: nnewheight
- Fri Aug 23, 2024 9:11 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: GdiPlus
- Replies: 12
- Views: 2906
- Mon Apr 19, 2021 1:54 pm
- Forum: FiveWin para Harbour/xHarbour
- Topic: Ayuda con apariecia y tamaño deL COMBOBOX
- Replies: 8
- Views: 1062
Ayuda con apariecia y tamaño deL COMBOBOX
... lado quisiera que el combo aparezca exactamente del mismo tamaño que los get. He probado con HEIGHTGET , SELHEIGHT, oCbx:nSelectionHeight := <nNewHeight> y no funciona. Lo he logrado reducir cambiando el tamaño de la fuente del control (oCbx:SetFont(oFontCbx) ) pero creo que debería haber una ...
- Wed May 20, 2020 1:48 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: COMBOBOX HEIGHTGET is not working? *Solved*
- Replies: 11
- Views: 2069
Re: COMBOBOX HEIGHTGET is not working? *Solved*
On resource, try
ACTIVATE DIALOG oDlg ON INIT oCbx:nSelectionHeight := <nNewHeight>
ACTIVATE DIALOG oDlg ON INIT oCbx:nSelectionHeight := <nNewHeight>
- Thu Aug 17, 2017 7:15 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: Question about ComboBox
- Replies: 12
- Views: 2162
Re: Question about ComboBox
Mr Rao,
A small problem with SendMessage( oCbx:hWnd, 0x0153, -1, nNewHeight ),combobox be blue colored background on init .

Regards!
Shuming Wang
A small problem with SendMessage( oCbx:hWnd, 0x0153, -1, nNewHeight ),combobox be blue colored background on init .

Regards!
Shuming Wang
- Sat Oct 26, 2013 9:44 am
- Forum: Off Topic / Otros temas
- Topic: "Snap" for Clipper
- Replies: 7
- Views: 10014
Re: "Snap" for Clipper
... function in ?)
WINDOW.PRG 546 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 ...
WINDOW.PRG 546 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 ...
- Mon May 09, 2011 9:31 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: Some Problems using < TScrWnd():New(.. >
- Replies: 0
- Views: 367
Some Problems using < TScrWnd():New(.. >
... TScrWnd():New(oDlg, 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 ...
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 ...
- Mon May 17, 2010 9:40 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: How to Resize Button in program?
- Replies: 11
- Views: 1845
Re: How to Resize Button in program?
Dutch,
oButton:SetSize( nWidth, nHeight [, lRepaint ] )
or:
oButton:nWidth := nNewWidth
oButton:nHeight := nNewHeight
oButton:SetSize( nWidth, nHeight [, lRepaint ] )
or:
oButton:nWidth := nNewWidth
oButton:nHeight := nNewHeight
- Tue Jul 14, 2009 1:33 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: How to resize a bitmap ?
- Replies: 8
- Views: 2011
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 ...
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 ...
- Tue May 05, 2009 6:07 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: BtnBmp from resource, how to resize at runtime ?
- Replies: 3
- Views: 683
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
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
- Sun Apr 05, 2009 8:56 am
- Forum: FiveWin for Pocket PC
- Topic: How to resize a listbox
- Replies: 8
- Views: 1842
Re: How to resize a listbox
Otto,
You can use:
oControl:SetSize( nWidth, nHeight [, lRepaint ] )
or
oControl:nHeight = nNewHeight
oControl:nWidth = nNewWidth
You can use:
oControl:SetSize( nWidth, nHeight [, lRepaint ] )
or
oControl:nHeight = nNewHeight
oControl:nWidth = nNewWidth
- Mon Jan 26, 2009 9:16 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Rezise Bitmaps
- Replies: 4
- Views: 764
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) ?
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) ?
- Sun Jan 11, 2009 11:06 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: multi thread vs no modal dialog ?
- Replies: 4
- Views: 884
Re: multi thread vs no modal dialog ?
Shuming,
You can do:
oDlg:nTop = nNewTop
oDlg:nLeft = nNewLeft
oDlg:nWidth = nNewWidth
oDlg:nHeight = nNewHeight
You can do:
oDlg:nTop = nNewTop
oDlg:nLeft = nNewLeft
oDlg:nWidth = nNewWidth
oDlg:nHeight = nNewHeight
- Sun Dec 14, 2008 6:46 pm
- Forum: FiveWin para Harbour/xHarbour
- Topic: se puede poner un scroll a un dialogo?
- Replies: 13
- Views: 3046
- Wed Nov 26, 2008 10:08 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: Can a dialog be resized ?
- Replies: 4
- Views: 1106
- Thu Oct 02, 2008 9:00 am
- Forum: FiveWin for CA-Clipper
- Topic: Changer d'impromante automatique
- Replies: 5
- Views: 2286