- Code: Select all Expand view RUN
- *------------------*
Function BuildMenu()
Local cClrSelIni, cClrSelFin, cClrSelTxt, cClrSelBor
Local cClrMenu, cClrMenuTxt
cClrMenu := nRGB( 26, 124, 249 )
cClrMenuTxt := CLR_BLUE
cClrSelIni := nRGB( 250, 250, 250)
cClrSelFin := nRGB( 250, 250, 250)
cClrSelTxt := nRGB( 10, 10, 10 )
cClrSelBor := CLR_WHITE
// GetnHeightItem( 3 )
MENU oMenu 2015 ;
COLORSELECT cClrSelIni, cClrSelFin, cClrSelTxt ;
COLORSEPARATOR cClrSelBor ;
COLORMENU cClrMenu, cClrMenuTxt ;
FONT oFontMenu LINESVERT COLORS ;
ROUND 7 ;
UPPERMNU ADJUST ;
HEIGHT 3.2
MENUITEM TE(0007,'ส่วนการจอง','Reservation') WHEN lCloseDay ;
RESOURCE "NEWBK1"
MENU NOINHERIT ;
NOBORDER ;
ROUND 7 ;
HEIGHT 2.5
MENUITEM TE(0007,'การจองห้องพัก','Reservation') WHEN UserRights(001,.F.) .and. lCloseDay ;
RESOURCE "NEWBK1"
......
ENDMENU
free image host
After call MENU (RIGHT CLICK) in other function as below
- Code: Select all Expand view RUN
Function Sub.....
oTbw:bRClicked := { | nRow, nCol, nFlags | ( oTbw:SetFocus(), oTbw:lButtonDown(nRow,nCol), RsvnMenu( nRow, nCol, rDlg, oTbw, oBtn, lGrpOpt ) ) }
return nil
*-----------------------------------------------------------------------*
Function RsvnMenu( nRow, nCol, rDlg, oTbw, oBtn, lGrpOpt )
local oRsMenu
MENU oRsMenu POPUP 2015 ;
UPPERMNU ADJUST ;
HEIGHT 1.7
MENUITEM 'Edit Book'
.........
ENDMENU
ACTIVATE POPUP oRsMenu OF rDlg AT nRow, nCol+4
When I return to the Main Menu, it paint incorrect size as below.
capture screen
Thank you in advance for any help.