... 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 ...
... 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. ...
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...
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...
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 ...
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...
* 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" ...
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, "&", ...
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 ...
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 ...