Page 1 of 1

Fivewin samples - Dialog designer

Posted: Sat Oct 24, 2015 10:37 am
by Otto
Hello Antonio,

Dialog designer

C:\fwh\samples\design.prg
If I add a Radio button and then try to create the prg file it errors out:
Application
===========
Path and name: C:\fwh\samples\design.exe (32 bits)
Size: 2,873,856 bytes
Compiler version: xHarbour 1.2.3 Intl. (SimpLex) (Build 20150712)
FiveWin Version: FWHX 15.06
Windows version: 6.2, Build 9200

Time from start: 0 hours 0 mins 30 secs
Error occurred at: 10/24/15, 12:19:14
Error description: Error BASE/1004 Class: 'NIL' has no exported method: NCLRTEXT
Args:
[ 1] = U

Stack Calls
===========
Called from: => NCLRTEXT( 0 )
Called from: .\source\classes\RADMENU.PRG => TRADMENU:NEW( 88 )
Called from: C:\fwh\samples\design.prg => CREATERADIO( 178 )
Called from: C:\fwh\samples\design.prg => (b)EDITDIALOG( 206 )
Called from: .\source\classes\MENU.PRG => TMENU:ACTIVATE( 1086 )
Called from: C:\fwh\samples\design.prg => EDITDIALOG( 239 )
Called from: C:\fwh\samples\design.prg => (b)MAIN( 19 )
Called from: .\source\classes\WINDOW.PRG => TDIALOG:RBUTTONDOWN( 2253 )
Called from: => TWINDOW:HANDLEEVENT( 0 )
Called from: .\source\classes\DIALOG.PRG => TDIALOG:HANDLEEVENT( 916 )
Called from: => DIALOGBOXINDIRECT( 0 )
Called from: .\source\classes\DIALOG.PRG => TDIALOG:ACTIVATE( 289 )
Called from: C:\fwh\samples\design.prg => MAIN( 19 )


Thanks in advance
Otto

Re: Fivewin samples - Dialog designer

Posted: Sat Oct 24, 2015 10:59 am
by cnavarro
Otto,
I do not get bug

Image

Re: Fivewin samples - Dialog designer

Posted: Sat Oct 24, 2015 11:26 am
by Otto
Hello Cristobal,
thank you.
I get the error when I try to save as prg.
I use xHarbour.
Can you send me your exe.
Best regards,
Otto

Re: Fivewin samples - Dialog designer

Posted: Sat Oct 24, 2015 6:31 pm
by cnavarro
Otto, I get error also saved as prg

Re: Fivewin samples - Dialog designer

Posted: Sat Oct 24, 2015 8:23 pm
by Antonio Linares
I get this error:


Time from start: 0 hours 0 mins 7 secs
Error occurred at: 10/24/15, 22:22:46
Error description: Error BASE/1081 Argument error: +
Args:
[ 1] = C
DEFINE WINDOW
[ 2] = U

Stack Calls
===========
Called from: .\source\classes\WINDOW.PRG => TRADIO:CGENPRG( 1447 )
Called from: .\source\classes\WINDOW.PRG => (b)TWINDOW_CGENPRG( 1468 )
Called from: => AEVAL( 0 )
Called from: .\source\classes\WINDOW.PRG => TWINDOW:CGENPRG( 1468 )
Called from: .\source\classes\DIALOG.PRG => TDIALOG:CGENPRG( 470 )

Not sure how you get a different error...

Re: Fivewin samples - Dialog designer

Posted: Sat Oct 24, 2015 8:50 pm
by Otto
Dear Antonio,
depending what you insert the error is not always the same.
Best regards,
Otto

Re: Fivewin samples - Dialog designer

Posted: Sun Oct 25, 2015 9:49 am
by Antonio Linares
Otto,

FWH\samples\design.prg it is just a draft to show the possibilities.

We should implement several changes in FWH to make it work right for all the controls.

Re: Fivewin samples - Dialog designer

Posted: Sun Nov 01, 2015 7:51 am
by Otto
Dear Antonio,
have you had time to implement the changes in Windows.prg?
Is this in the new release.
Thank you and best regards,
Otto

Re: Fivewin samples - Dialog designer

Posted: Sun Nov 01, 2015 8:50 am
by Antonio Linares
Otto,

We have been focused on Unicode support in FWH and I didn't want to include any additional changes,
as implementing unicode in FWH has been a lot of changes already.

I am testing samples\design.prg testing each control, so I started with an empty dialog, placed a radio
and generated the PRG. Here you can download the EXE:

https://bitbucket.org/fivetech/fivewin-contributions/downloads/design.exe

If you want to build it there, then I can email you the modified libs.

Anyhow, it requires more changes and the generated source code for a radio is not right. But at least
it is not crashing now. Instead of calling MemoEdit() and I am using FWH function SourceEdit() to review
the generated source code:

Image

Re: Fivewin samples - Dialog designer

Posted: Sun Nov 01, 2015 9:06 am
by Otto
Dear Antonio,
I get following error clicking on prg-code rc is working fine.
Best regards,
Otto

Application
===========
Path and name: C:\Entwicklung_2012\XICECUBE\xICZahlung\design.exe (32 bits)
Size: 3,084,800 bytes
Compiler version: Harbour 3.2.0dev (r1506171039)
FiveWin Version: FWH 15.09
Windows version: 6.2, Build 9200

Time from start: 0 hours 0 mins 45 secs
Error occurred at: 11/01/15, 10:05:11
Error description: Error FiveWin/6 Cannot create window or control:
Class: TSCINTILLA
Caption:
System Error: Fensterklasse wurde nicht gefunden.


Stack Calls
===========
Called from: .\source\classes\WINDOW.PRG => WNDCREATEERROR( 797 )
Called from: .\source\classes\WINDOW.PRG => TSCINTILLA:CREATE( 780 )
Called from: .\source\classes\SCINTILA.PRG => TSCINTILLA:NEW( 521 )
Called from: .\source\function\MEMOEDIT.PRG => (b)SOURCEEDIT( 313 )
Called from: .\source\classes\DIALOG.PRG => TDIALOG:INITIATE( 699 )
Called from: .\source\classes\DIALOG.PRG => TDIALOG:HANDLEEVENT( 889 )
Called from: => DIALOGBOXINDIRECT( 0 )
Called from: .\source\classes\DIALOG.PRG => TDIALOG:ACTIVATE( 293 )
Called from: .\source\function\MEMOEDIT.PRG => SOURCEEDIT( 313 )
Called from: design.prg => (b)EDITDIALOG( 213 )
Called from: .\source\classes\MENU.PRG => TMENU:ACTIVATE( 1034 )
Called from: design.prg => EDITDIALOG( 240 )
Called from: design.prg => (b)MAIN( 19 )
Called from: .\source\classes\WINDOW.PRG => TDIALOG:RBUTTONDOWN( 2265 )
Called from: => TWINDOW:HANDLEEVENT( 0 )
Called from: .\source\classes\DIALOG.PRG => TDIALOG:HANDLEEVENT( 905 )
Called from: => DIALOGBOXINDIRECT( 0 )
Called from: .\source\classes\DIALOG.PRG => TDIALOG:ACTIVATE( 293 )
Called from: design.prg => MAIN( 19 )

Re: Fivewin samples - Dialog designer

Posted: Sun Nov 01, 2015 9:09 am
by cnavarro
Dear Otto
You Need Scilexer.dll, Scintilla.dll

Re: Fivewin samples - Dialog designer

Posted: Sun Nov 01, 2015 9:10 am
by Antonio Linares
Otto,

Please copy SciLexer.dll from FWH\samples folder to the same path where design.exe is

Re: Fivewin samples - Dialog designer

Posted: Sun Nov 01, 2015 9:50 am
by Otto
Dear Antonio,
thank you.
Now it is working fine.
Best regards,
Otto