FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Brush on Dialog
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM

Brush on Dialog

Posted: Fri Feb 10, 2006 12:09 AM

Antonio,

It looks like a great idea, but I'm having a problem with using the brush on the dialog.

First, the sample builds fine.

However, from the ppo file:

oBrush := TBrush():New(,,,"Sky" )

DEFINE DIALOG oDiw RESOURCE "PRO2100" BRUSH oBrush TRANSPARENT

and xHarbour gives me the error Parse error at DIALOG. If I comment from BRUSH on with //, then it builds without a problem.

Any thoughts on where I can look for the problem ? Thanks.

Tim

Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM

Brush on Dialog

Posted: Fri Feb 10, 2006 09:04 AM

Tim,

Please check that you are using the new and modified dialog.ch that comes with FWH 2.7 February.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM

Dialog Brush

Posted: Fri Feb 10, 2006 05:07 PM

Antonio,

The new FWH is installed by itself. I rename the old directory and thus the newest download is always just the set of files you included. There is no other copy of dialog.ch in play.

Actually, it is the TRANSPARENT or transparent that causes the problem. If I comment it out, then it will build and show the bitmap in the background, but the titles are not transparent.

If I add TRANSPARENT back in, it fails the compile.

Tim

Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM

Found and fixed

Posted: Fri Feb 10, 2006 05:53 PM

I found another instance of DIALOG.CH in hiding ... its running fine now.

We have very warm and very very dry weather here right now and that doesn't always help the thought process.

Tim

Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM

Brush on Dialog

Posted: Fri Feb 10, 2006 06:04 PM

Tim,

glad to know you solved it

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM

Another issue ...

Posted: Sun Feb 12, 2006 08:12 PM

I have a screen with folders, and the background for the dialog will display the bitmap, but not the folders. Here is the code:

// Create the dialog box for editing
DEFINE BRUSH oBrush RESOURCE "SKY"
DEFINE DIALOG oWdlg1 RESOURCE "PRO1000" BRUSH oBrush transparent OF oWnd FONT oWnd:oFont ;
TITLE cTitle

// Define the folder
REDEFINE FOLDER oFld ID 356 OF oWdlg1 ;
PROMPT "&General", "&Parts", "&Labor", "&Recommendations", "&Totals", "&Job Cost" ;
DIALOGS "PRO1010", "PRO1040", "PRO1045", "PRO1070", "PRO1100", "PRO1120" ;
ON CHANGE ( FoldChk( oFld, oDpa, oDla, oWrk ), oWdlg1:update() )

Any ideas on this one ?

Tim

Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM

Brush on Dialog

Posted: Mon Feb 13, 2006 12:00 AM

Tim,

Try to remove the OF oWnd from here:

DEFINE DIALOG oWdlg1 RESOURCE "PRO1000" BRUSH oBrush transparent FONT oWnd:oFont TITLE cTitle

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM

Folder

Posted: Mon Feb 13, 2006 03:31 PM

OK ... removing the reference does not help ... I tried again this morning because I experimented with that yesterday.

I've looked for other files that might be in the path that could cause an issue. I don't see any, but perhaps you could suggest which ones I might need to evaluate.

The problem is consistent wherever I use folders in the program.

Tim

Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM

Brush on Dialog

Posted: Mon Feb 13, 2006 10:04 PM

Tim,

Could you please test samples\TestFldb.prg and confirm if folders look ok with the background bitmap ? Thanks

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM

Test file

Posted: Tue Feb 14, 2006 04:01 AM

I stated in my very first post in this thread that the sample builds fine.

My problem is that my code is basically identical to the sample, so it should also work fine.

Obviously something is missing here.

Which .prg and which .ch files might exist which would cause a problem. In other words, in which files do you have the class code for the folders ? From what might this feature inherit ?

Tim

Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit

Continue the discussion