Hi Massimo Belgrano,
I compile the prg as follow: I put xpp01.prg into d:\hb20\contrib\hbxbp\tests then: d:\hb20\contrib\hbxbp\tests>hbmk2 xpp01.prg -Ld:\Qt\4.5.3\lib Where d:\Qt\4.5.3\lib for hbmk2 to find qt libs Shum Date: Thu, 8 Apr 2010 08:40:42 -0800 From: ml-node+4872250-427623507-334...@n2.nabble.com To: wcshu...@hotmail.com Subject: Re: To Pritpal Bedi: About oDlg:drawingArea:clipChildren ?? Very intresting your sample! Have you other xbp sample? i confirm problem and then i add a litte problen regarding hbide with your source named xpp01.prg using Follow is my xpp01.hbp -3rd=hbide_version=1.0 -3rd=hbide_type=Executable -3rd=hbide_title=xpp01 -3rd=hbide_location=C:\harbour\max\ -3rd=hbide_workingfolder= -3rd=hbide_destinationfolder= -3rd=hbide_output=xpp01 -3rd=hbide_launchparams= -3rd=hbide_launchprogram= -3rd=hbide_backupfolder= xpp01.prg C:\harbour\contrib\hbxbp\hbxbp.hbc I can compile and run with hbmk2 if i execute hbide xpp01.hpp with C:\harbour\max>\harbour\contrib\hbide\hbide c:\harbour\max\xpp01.hbp when compile and execute it not be executed ---------------------------------------------------------------------------------------------------- Project [ xpp01 ] Launch [ Yes ] Rebuild [ No ] Started [ 17:42:06 ] ---------------------------------------------------------------------------------------------------- : Do Not Exists /C hbmk2 C:\harbour\max\xpp01.hbp -q -trace -info -lang=en ---------------------------------------------------------------------------------------------------- Starting in: harbour\max : C:\harbour\max\ hbmk2: Processing environment options: -compiler=mingw hbmk2: Autodetected platform: win hbmk2: Using Harbour: C:\HARBOUR\bin C:\HARBOUR\include C:\HARBOUR\lib\win\mingw C:\HARBOUR\lib\win\mingw hbmk2: Processing: C:\harbour\contrib\hbxbp\hbxbp.hbc hbmk2: Processing: C:\harbour\contrib\hbxbp\../hbqt/hbqt.hbc hbmk2: Harbour compiler command (embedded): (C:\HARBOUR\BIN\WIN\mingw\harbour.exe) -n2 C:/harbour/max/xpp01.prg -q -oC:\Users\MBELGR~1.SED\AppData\Local\Temp\ -iC:/HARBOUR/include -iC:/harbour/contrib/hbxbp -iC:/harbour/contrib/hbqt Harbour 2.1.0dev (Rev. 14276) Copyright (c) 1999-2010, http://www.harbour-project.org/ hbmk2: C/C++ compiler command: gcc.exe -c -O3 -march=i586 -mtune=pentiumpro -fomit-frame-pointer -Wall -W -pipe -IC:/HARBOUR/include -IC:/harbour/contrib/hbxbp -IC:/harbour/contrib/hbqt C:\Users\MBELGR~1.SED\AppData\Local\Temp\xpp01.c -o C:/Users/MBELGR~1.SED/AppData/Local/Temp/xpp01.o hbmk2: C/C++ compiler command: gcc.exe -c -O3 -march=i586 -mtune=pentiumpro -fomit-frame-pointer -Wall -W -pipe -IC:/HARBOUR/include -IC:/harbour/contrib/hbxbp -IC:/harbour/contrib/hbqt C:\Users\MBELGR~1.SED\AppData\Local\Temp\hbmk_9eg2h2.c -o C:/Users/MBELGR~1.SED/AppData/Local/Temp/hbmk_9eg2h2.o hbmk2: C/C++ compiler command: g++.exe -c -O3 -march=i586 -mtune=pentiumpro -fomit-frame-pointer -Wall -W -pipe -IC:/HARBOUR/include -IC:/harbour/contrib/hbxbp -IC:/harbour/contrib/hbqt C:\Users\MBELGR~1.SED\AppData\Local\Temp\hbmk_j9i5vv.cpp -o C:/Users/MBELGR~1.SED/AppData/Local/Temp/hbmk_j9i5vv.o hbmk2: Linker command: gcc.exe C:\Users\MBELGR~1.SED\AppData\Local\Temp\xpp01.o C:\Users\MBELGR~1.SED\AppData\Local\Temp\hbmk_9eg2h2.o C:\Users\MBELGR~1.SED\AppData\Local\Temp\hbmk_j9i5vv.o -mwindows -Wl,--start-group -lhbxbp -lhbqt -lhbqtcore -lhbqtgui -lhbqtnetwork -lversion -lshlwapi -lQtCore4 -lQtGui4 -lQtNetwork4 -lQtUiTools -lpsapi -lsupc++ -lhbextern -lhbdebug -lhbvm -lhbrtl -lhblang -lhbcpage -lgtcgi -lgtpca -lgtstd -lgtwin -lgtwvt -lgtgui -lhbrdd -lhbuddall -lhbusrrdd -lrddntx -lrddcdx -lrddnsx -lrddfpt -lhbrdd -lhbhsx -lhbsix -lhbmacro -lhbcplr -lhbpp -lhbcommon -lhbmainwin -lkernel32 -luser32 -lgdi32 -ladvapi32 -lws2_32 -lwinspool -lcomctl32 -lcomdlg32 -lshell32 -luuid -lole32 -loleaut32 -lmpr -lwinmm -lmapi32 -limm32 -lmsimg32 -lwininet -lhbpcre -lhbzlib -Wl,--end-group -oxpp01.exe -LC:/HARBOUR/lib/win/mingw -LC:/DEVL/qt/4.5.3/lib ---------------------------------------------------------------------------------------------------- Exit Code [ 0 ] Exit Status [ 0 ] Finished at [ 17:42:09 ] Done in [ 2.52 Secs ] ---------------------------------------------------------------------------------------------------- Launch error: file not found - \xpp01.exe 2010/4/8 Shum <[hidden email]> Hi Prital Bedi, I find that hbxbp is not compitable to Xbase++ as follow: oDlg:drawingArea:clipChildren := .T. (In Xbase++ ... it is exported var without error) http://www.mingyik.com/dnload/stxbp10.jpg Sample source as follow: #include "xbp.ch" #include "Appevent.ch" Function AppSys() Return( NIL ) Function Main( P1 ) LOCAL nEvent, mp1, mp2, oXbp LOCAL oDlg, oMenuBar, oMenu Local oAppDlg:=AppDesktop() Local lTestFlag:=.F. If P1<>NIL lTestFlag := .T. Endif // Create dialog oDlg := XbpDialog():new( oAppDlg , , {30,50}, {400,250} ) oDlg:title := "Harbour + QT + hbxbp Dialog with Menubar" oDlg:clipChildren := .T. oDlg:drawingArea:clipChildren := .T. oDlg:create() If lTestFlag oXbp := Xbpstatic():new( oDlg:drawingArea, oDlg, {20,100}, {100,25}, , .T. ) oXbp:type := XBPSTATIC_TYPE_TEXT oXbp:options := XBPSTATIC_TEXT_CENTER + XBPSTATIC_TEXT_VCENTER oXbp:caption := LTrim(Str(oAppDlg:currentSize()[1])) +","+ LTrim(Str(oAppDlg:currentSize()[2])) oXbp:create() Endif // Create XbpMenubar in the dialog oMenuBar := oDlg:menuBar() // Create submenu and specify the menu bar as parent oMenu := XbpMenu():New( oMenuBar ):create() oMenu:title := "~SubMenu" oMenu:addItem( { "~First ", {|| QOut("First") } } ) oMenu:addItem( { "~Second", {|| QOut("Second")} } ) // Attach submenu to menu bar oMenubar:addItem( { oMenu, NIL } ) nEvent := 0 DO WHILE nEvent <> xbeP_Close nEvent := AppEvent( @mp1, @mp2, @oXbp ) oXbp:handleEvent( nEvent, mp1, mp2 ) ENDDO Return( NIL ) Shum -- View this message in context: http://n2.nabble.com/To-Pritpal-Bedi-About-oDlg-drawingArea-clipChildren-tp4871656p4871656.html Sent from the harbour-devel mailing list archive at Nabble.com. _______________________________________________ Harbour mailing list (attachment size limit: 40KB) [hidden email] http://lists.harbour-project.org/mailman/listinfo/harbour -- Massimo Belgrano _______________________________________________ Harbour mailing list (attachment size limit: 40KB) [hidden email] http://lists.harbour-project.org/mailman/listinfo/harbour View message @ http://n2.nabble.com/To-Pritpal-Bedi-About-oDlg-drawingArea-clipChildren-tp4871656p4872250.html To unsubscribe from To Pritpal Bedi: About oDlg:drawingArea:clipChildren ??, click here. _________________________________________________________________ Hotmail 是功能強大又值得信賴的免費電子郵箱 https://signup.live.com/signup.aspx?id=60969 -- View this message in context: http://n2.nabble.com/To-Pritpal-Bedi-About-oDlg-drawingArea-clipChildren-tp4871656p4872304.html Sent from the harbour-devel mailing list archive at Nabble.com. _______________________________________________ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour