Search found 20 matches: measureitem

Return to advanced search

Re: about RESIZE

... in FWH sources? this is a new CLASS which i just write for FiveWin :wink: --- have found out that COMBOBOX under FiveWin does use "old" MeasureItem Value when resize https://docs.microsoft.com/de-de/windows/win32/controls/combo-box-styles CBS_OWNERDRAWFIXED does receive WM_MEASUREITEM ...
by Jimmy
Sun Jul 31, 2022 4:30 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: about RESIZE
Replies: 7
Views: 467

Re: xBrowse - Multiline

... have its own height based on its content ? as i can say you need Ownerdraw to get different hight as "calculation" is done by MeasureItem. the Trick is like FranciscoA say : switch Font when "calculate" let say you default Font are "Arial" with 10 Points. ...
by Jimmy
Fri Nov 15, 2019 10:16 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: xBrowse - Multiline
Replies: 12
Views: 1643

Error with PopUp Menu from resources

... method: NMNUWIDTH Args: [ 1] = U Stack Calls =========== Called from: => NMNUWIDTH( 0 ) Called from: .\source\classes\PDMENU.PRG => FW_MEASUREITEM( 1373 ) Called from: WINDOW.prg => TWINDOW:MEASUREITEM( 1481 ) Called from: => TWINDOW:HANDLEEVENT( 0 ) Called from: WINDOW.prg => ...
by MaxP
Mon Nov 04, 2019 4:59 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Error with PopUp Menu from resources
Replies: 4
Views: 735

Re: Bug in TMenu

All features fixed, solved ----------------------- SPANISH -------------------------- La creación de los items en los menús cuando una ventana hija es creada, no la realiza Fivewin, es realizada por el sistema automáticamente dependiendo del valor de nMenuInfo que pasamos a esa function. Cuando el n...
by cnavarro
Sat Jan 05, 2019 4:31 pm
 
Forum: Bugs report & fixes / Informe de errores y arreglos
Topic: Bug in TMenu [Fixed]
Replies: 9
Views: 3603

Problem with Menu - Pdmenu

Error description: Error BASE/1066 Argument error: conditional Args: [ 1] = U Stack Calls =========== Called from: .\source\classes\PDMENU.PRG => FW_MEASUREITEM( 1102 ) at line 210 of pdmenu there is oMenu:lAdjust at line 1102 I found if oItem:oMenu:lAdjust but I not found this data on Menu.prg a...
by Silvio.Falconi
Fri Oct 19, 2018 11:23 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Problem with Menu - Pdmenu
Replies: 5
Views: 892

Re: MENU problem....

Is a problem with change in function cWinVersion Please, in PDMENU.PRG , Function Fw_MeasureItem( pMitStruct, hSysMenuFont, oWnd ) Change this line                if Empty( hMFont ) .and. !IsWinXP()  with          ...
by cnavarro
Fri Apr 15, 2016 4:37 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: MENU problem....
Replies: 5
Views: 794

Re: Ancho del menu

Se he entendido...

METHOD MeasureItem( nIdCtl, pMitStruct ) CLASS TWindow

Busca por el valor:

$oItem:cPrompt, 100, 100 )

Cambia por: 40, 40

Salu2.
by karinha
Tue Dec 10, 2013 5:38 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Ancho del menu
Replies: 1
Views: 331

Re: "Snap" for Clipper

...      702 MBUTTONDOWN()          (function  in ?)    WINDOW.PRG      704  2492 MBUTTONUP()            (function  in ?)    WINDOW.PRG      705  2502 MEASUREITEM()          (function  in ?)    WINDOW.PRG      707  1713 MENUCHAR()             (function  in ?)    WINDOW.PRG      686  1754 MENUDRAW2007() ...
by Antonio Linares
Sat Oct 26, 2013 9:44 am
 
Forum: Off Topic / Otros temas
Topic: "Snap" for Clipper
Replies: 7
Views: 6697

Re: Size of MENUITEM

Günther, Unfortunately it is not that simple with the Windows API... When a MENU is going to be created Windows send us a WM_MEASUREITEM so we report the desired width of the menu: http://msdn.microsoft.com/en-us/library/windows/desktop/bb775925(v=vs.85).aspx Later on, when we ch...
by Antonio Linares
Fri Oct 18, 2013 12:59 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Size of MENUITEM
Replies: 12
Views: 2200

Re: Combobox with bitmaps

Stefan, Fixed. Some changes are required: 1. source\winapi\dlogbox.c: changes this way: Added this new code static UINT itemHeight = 0;//----------------------------------------------------------------------------//HB_FUNC( SETOWNERDRAWITEMHEIGHT ){   itemHeight = hb_parnl( 1 );...
by Antonio Linares
Wed Apr 04, 2012 3:32 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Combobox with bitmaps
Replies: 4
Views: 2223

Re: Se necesita ayuda en el wiki !

... lWRunning() lXor() LZCopyFile() MakeWin() MapDialogRect() MCIGetErrorString() MCISendCommand() MCISendString() MdiCtrlAdjust() MDIRecEdit() MeasureItem() MemoEdit() MemStat() MenuAddItem() MenuBegin() MenuDrawItem() MenuEnd() MenuMeasureItem() MessageBox() MeterPaint() MGetCreate() MGetLine() ...
by Cgallegoa
Sun Feb 21, 2010 10:35 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Se necesita ayuda en el wiki !
Replies: 12
Views: 5501

Re: FWH/xHarbour Menus

* DIALOG.PRG (Modified for using a brush to standard window color dialogs) * The brush is called WPAPER2 and it should be included in the .RC file ! // Add this line to your .RC file // WPAPER2 BITMAP "./Bitmaps/WPAPER2.BMP" #include "FiveWin.ch" #include "Constant.ch" ...
by E. Bartzokas
Mon May 25, 2009 3:34 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: FWH/xHarbour Menus
Replies: 20
Views: 7757

George, Puedes modificar el ancho usado cambiando estas líneas en el método MeasureItem() de la clase TWindow: MenuMeasureItem( pMitStruct,; 0.9 * GetTextWidth( 0, If( ! Empty( oItem:cPrompt ),; StrTran( oItem:cPrompt, "&", ...
by Antonio Linares
Sat May 17, 2008 11:32 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Barra de menu muy ancha
Replies: 8
Views: 1700

Construcción Abril 2008 ================= * Mejora: El método MeasureItem() devuelve tamaños ampliados para las opciones de los "menuitems". * Corrección: La clase TControl ha sido modificada para procesar apropiadamente el mensaje WM_UPDATEUISTATE. Esto ...
by Antonio Linares
Thu Apr 24, 2008 9:44 am
 
Forum: WhatsNew / Novedades
Topic: New FTDN April / Abril 2008 (8.04)
Replies: 1
Views: 3642

New FTDN April / Abril 2008 (8.04)

April 2008 ======= * Enhancement: Class TWindow Method MeasureItem() returns wider sizes for menuitems. * Fix: Class TControl has been modified to properly process WM_UPDATEUISTATE message. This was causing some controls not to be seen when pressing ...
by Antonio Linares
Fri Apr 11, 2008 11:42 am
 
Forum: WhatsNew / Novedades
Topic: New FTDN April / Abril 2008 (8.04)
Replies: 1
Views: 3642
Next

Return to advanced search