FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour nomodal dialog menu area shows pre background ?
Posts: 474
Joined: Sun Oct 30, 2005 06:37 AM

nomodal dialog menu area shows pre background ?

Posted: Sat Aug 27, 2011 02:40 AM

Hi !
NoModal dialog menu area, always shows background (before openning this dialog) after the dialog opened, resized, till you click the dialog menu.
FWH1104 +Harbour 3.0
Best regards!
Shuming Wang

http://www.xtech2.top
Mobile:(86)13802729058
Email:100200651@qq.com
QQ:100200651
Weixin: qq100200651
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM

Re: nomodal dialog menu area shows pre background ?

Posted: Sat Aug 27, 2011 05:16 AM

Shuming,

Could you please provide a small example to test it ? Thanks

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 474
Joined: Sun Oct 30, 2005 06:37 AM

Re: nomodal dialog menu area shows pre background ?

Posted: Sat Aug 27, 2011 05:50 AM

test1.prg

include "fivewin.ch"

function main()
public ownd,omenu

define window ownd FROM 0,0 TO 10,10

activate window ownd on init buildmenu(ownd)

function buildmenu(ownd)
menu omenu 2007
menuitem "aaa" action aaa()
menuitem "bbb"
endmenu
ownd:setmenu(omenu)
ownd:refresh()
return

function aaa()
local odlg

define dialog odlg resource "aaa"

activate dialog odlg nowait on init aaa00(odlg)

return

function aaa00(odlg)
local omenu2

menu omenu2 2007
menuitem "open"
menuitem "close"
endmenu

odlg:setmenu(omenu2)
odlg:refresh()
return

test1.rc
aaa DIALOG 0, 0,100, 100
STYLE WS_CHILD | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME | WS_MINIMIZEBOX | WS_MAXIMIZEBOX
{
}

http://www.xtech2.top
Mobile:(86)13802729058
Email:100200651@qq.com
QQ:100200651
Weixin: qq100200651
Posts: 474
Joined: Sun Oct 30, 2005 06:37 AM

Re: nomodal dialog menu area shows pre background ?

Posted: Sat Aug 27, 2011 08:17 AM

If remove/delete ' WS_CHILD ' in .rc , it works fine !

Shuming Wang

:D

http://www.xtech2.top
Mobile:(86)13802729058
Email:100200651@qq.com
QQ:100200651
Weixin: qq100200651
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM

Re: nomodal dialog menu area shows pre background ?

Posted: Sat Aug 27, 2011 08:25 AM

Very good :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion