this is a old Cl*pper Game which i had ported to Xbase++ GUI.
now i have test that Source with harbour and got it run under Cl*pper Style as i say i have ported it to Xbase++ using XbpBrowse() which is like TBrowse but GUI.
"Playground" is a Array. depend on Value of a Cell you can see Color.
while XbpBrowse() Version of GTWVG some VAR missing i have used a lot of #IFDF __XPP__
also i have Problem with "Preview" ... it is the same Syntax like "Playground" ...
but my biggest Problem : it does not move/show ... until i use vertical Scrollbar
so what is going on
where does that vertical Scrollbar come from
ok i have disable it while it does not compile
Code: Select all
#IFDEF __XPP__
oBrowse:hScroll := .F.
oBrowse:vScroll := .F.
oBrowse:sizeCols := .F.
oBrowse:cursorMode:= XBPBRW_CURSOR_NONE
oBrowse:useVisualStyle := .F.
#ENDIF
here is the Soure Code have fun
---
p.s.
i guess it can also use a GRID while "Playground" is a Array.
"Calculation" of GRID are in FUNCTION and work for Cl*pper and Xbase++ so i guess it work with GRID too.
so this is the next Step to use HMG Syntax for this Game
---
to enable that Xbase++ Code un-Comment
Code: Select all
* #define XPPGUI .T.
Code: Select all
libQtCore4.a libQtGui4.a libhbqtcore.a libhbqtgui.a libgtqtc.a libhbxbp.a
and Constribution
Code: Select all
c:\harbour\contrib\hbxbp\ to c:\hmg.3.4.4\HARBOUR\contrib\hbxbp\
c:\harbour\contrib\hbqt\ to c:\hmg.3.4.4\HARBOUR\contrib\hbqt\
Code: Select all
libpaths=c:/hmg.3.4.4/HARBOUR/contrib/hbxpp
libs=hbxpp.hbc
libpaths=c:/hmg.3.4.4/HARBOUR/contrib/gtwvg
libs=gtwvg.hbc
libpaths=c:/hmg.3.4.4/HARBOUR/contrib/hbxbp
libs=hbxbp.hbc