Page 1 of 1

Font problem Server

PostPosted: Wed Feb 15, 2017 5:08 pm
by Romeo
Hi

Some times, specially on SERVER, happens that a simple popupmenu show with bad font.

With Windows7 and Windows 10, no problem !!

I cannot post the image, because... i dont' remenber haow to do !!! ;-)



The simple progoram is:
***************************************
function togn_onof(odlg)
local oPopup
MENU oPopup POPUP
MENUITEM "&Disattiva Modifica Campo" action ..
MENUITEM "&Blocca Colonne a Sx <1>" action ..
MENUITEM "&Evidenzia Singola Cella ?" action ..
SEPARATOR
MENUITEM "&Torna a Impostazioni iniziali" action ..
SEPARATOR
MENUITEM "&Uscita" action ..
ENDMENU
ACTIVATE POPUP oPopup AT nnn,mmm OF odlg
return nil
***************************

Any help ?

Re: Font problem Server

PostPosted: Wed Feb 15, 2017 5:24 pm
by Enrico Maria Giordano
What FWH version? I remember something similar some versions ago.

EMG

Re: Font problem Server

PostPosted: Wed Feb 15, 2017 5:29 pm
by karinha
Code: Select all  Expand view

// Sample showing how to control right click events

#include "FiveWin.ch"

static oDlg

//----------------------------------------------------------------------------//

function Main()

   DEFINE DIALOG oDlg ;
      FROM 2, 2 TO 20, 50 ;
      TITLE "Testing Right Click"

   oDlg:bRClicked = { | nRow, nCol, nFlags | ShowPopup( nRow, nCol ) }

   ACTIVATE DIALOG oDlg CENTERED

return nil

//----------------------------------------------------------------------------//

function ShowPopup( nRow, nCol )

//function togn_onof(odlg)

   // local oPopup
   LOCAL oMenu

   MENU oMenu POPUP

      MENUITEM "&Disattiva Modifica Campo" //action ..
      MENUITEM "&Blocca Colonne a Sx <1>" //action ..
      MENUITEM "&Evidenzia Singola Cella ?" //action ..

      SEPARATOR
      MENUITEM "&Torna a Impostazioni iniziali" //action ..

      SEPARATOR
      MENUITEM "&Uscita" //action ..

      SEPARATOR
      MENUITEM "Row: " + Str( nRow ) ACTION MsgInfo( "Hello" )
      MENUITEM "Col: " + Str( nCol ) ACTION MsgBeep()

   ENDMENU

   ACTIVATE POPUP oMenu OF oDlg AT nRow, nCol

return nil
 



Re: Font problem Server

PostPosted: Thu Feb 16, 2017 9:17 am
by Romeo
FWH 16.02
Harbour 3.2.0dev (r1603082110)
BCC 7.20

Re: Font problem Server

PostPosted: Thu Feb 16, 2017 10:03 am
by Enrico Maria Giordano
As I suspected. Did you plan of updgrading FWH? Probably that would solve the problem.

EMG

Re: Font problem Server

PostPosted: Thu Feb 16, 2017 4:46 pm
by Romeo
Ho cosi risolto:

MENU oPopup POPUP font oFont


In pratica ho inserito oFont e funziona bene su server !

(Mistero, Boh !)

Re: Font problem Server

PostPosted: Thu Feb 16, 2017 8:36 pm
by nageswaragunupudi
Better you do not assign any font to the menu

Re: Font problem Server

PostPosted: Fri Feb 17, 2017 1:35 am
by cnavarro
Romeo wrote:FWH 16.02
Harbour 3.2.0dev (r1603082110)
BCC 7.20


What version of Server use, 2003?