Re: dllcall.c - Was: [Harbour] gtwvt font best setup

2008-06-09 Thread Alex Strickland
Szakáts Viktor wrote: Thanks Alex. This looks like a pure .c in .prg disguise (which, I don't really the point of but anyways :). Only laziness. I have improved my make files a bit, and would not do it now. I'll do some merging later. I may have questions, too. I hope I can help. IIRC th

Re: dllcall.c - Was: [Harbour] gtwvt font best setup

2008-06-09 Thread Szakáts Viktor
Thanks Alex. This looks like a pure .c in .prg disguise (which, I don't really the point of but anyways :). I'll do some merging later. I may have questions, too. Brgds, Viktor On 2008.06.09., at 13:19, Alex Strickland wrote: Szakáts Viktor wrote: Nice to read about your experiences, I'd ap

RE: dllcall.c - Was: [Harbour] gtwvt font best setup

2008-06-09 Thread Mike Evans (Gmail)
Viktor, Have in mind also that Frax (Fastreport) have also a cross platform report designer. I don't know if it's possible to port frax to linux also. Brgds, Mike Evans ___ Harbour mailing list Harbour@harbour-project.org http://lists.harbour-project.o

Re: dllcall.c - Was: [Harbour] gtwvt font best setup

2008-06-09 Thread Alex Strickland
Szakáts Viktor wrote: Nice to read about your experiences, I'd appreciate to see your code. Seems like the CSTRUCT stuff can easily be detached, this is good. I currently have a ported version from xhb repo, plus a modified version distributed along pscript32 (with some enhanced 'double' suppo

Re: dllcall.c - Was: [Harbour] gtwvt font best setup

2008-06-09 Thread Szakáts Viktor
Hi Alex, Nice to read about your experiences, I'd appreciate to see your code. Seems like the CSTRUCT stuff can easily be detached, this is good. I currently have a ported version from xhb repo, plus a modified version distributed along pscript32 (with some enhanced 'double' support I guess), a

RE: dllcall.c - Was: [Harbour] gtwvt font best setup

2008-06-09 Thread Mike Evans (Gmail)
List. Subject: Re: dllcall.c - Was: [Harbour] gtwvt font best setup > Hi Mike, > Pscript it's a nice lib if you use it also under dos. I think that > at least Under DOS it needs a permanently running Windows tool. So it's off my scope unfortunately. For me so far the port

Re: dllcall.c - Was: [Harbour] gtwvt font best setup

2008-06-09 Thread Szakáts Viktor
Hi Mike, Pscript it’s a nice lib if you use it also under dos. I think that at least Under DOS it needs a permanently running Windows tool. So it's off my scope unfortunately. For me so far the portable printing issue goes down to using a .pdf lib (hbhpdf, maybe hbvpdf), and using some .pd

Re: dllcall.c - Was: [Harbour] gtwvt font best setup

2008-06-09 Thread Alex Strickland
Szakáts Viktor wrote: I'll check what it takes (like dependencies) to port dllcall.c to Harbour. I would appreciate this. I use it and have simply copied it across from xHarbour. I made some changes to support strings with embedded nulls and committed it to xHarbour CVS. However, Peter Ree

RE: dllcall.c - Was: [Harbour] gtwvt font best setup

2008-06-09 Thread Mike Evans (Gmail)
- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Szakats Viktor Sent: Monday, June 09, 2008 12:58 PM To: Harbour Project Main Developer List. Subject: Re: dllcall.c - Was: [Harbour] gtwvt font best setup Sorry I've left this out: pscript32 lib uses dllcall.c to interface

Re: dllcall.c - Was: [Harbour] gtwvt font best setup

2008-06-09 Thread Szakáts Viktor
ndows preview, no need pscript.ini pscript.exe etc). Brgds, Mike Evans PS. If you come in Athens just sent me an email. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Lorenzo Fiorini Sent: Saturday, June 07, 2008 3:23 PM To: Harbour Project Main D

dllcall.c - Was: [Harbour] gtwvt font best setup

2008-06-09 Thread Szakáts Viktor
u come in Athens just sent me an email. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Lorenzo Fiorini Sent: Saturday, June 07, 2008 3:23 PM To: Harbour Project Main Developer List. Subject: Re: [Harbour] gtwvt font best setup On Sat, Jun 7, 2008 a

RE: [Harbour] gtwvt font best setup

2008-06-09 Thread Mike Evans (Gmail)
ssage- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Lorenzo Fiorini Sent: Saturday, June 07, 2008 3:23 PM To: Harbour Project Main Developer List. Subject: Re: [Harbour] gtwvt font best setup On Sat, Jun 7, 2008 at 12:54 PM, Mike Evans (Gmail) <[EMAIL PROTECTED]> wrote: &g

R: [Harbour] gtwvt font best setup

2008-06-07 Thread Massimo Belgrano
. Oggetto: R: [Harbour] gtwvt font best setup IMO your experience will be a big improvement for all harbour community Can you post part of code or better a standalone demo application? It can be a good demo for all xharbour user for understand the power of GT architecture Please give me any additional

Re: [Harbour] gtwvt font best setup

2008-06-07 Thread Lorenzo Fiorini
On Sat, Jun 7, 2008 at 2:22 PM, Lorenzo Fiorini <[EMAIL PROTECTED]> wrote: > How much menu, get and tbrowse code is different? Oops sorry you've already answered. Sorry I missed some messages. best regards, Lorenzo ___ Harbour mailing list Harbour@har

Re: [Harbour] gtwvt font best setup

2008-06-07 Thread Lorenzo Fiorini
On Sat, Jun 7, 2008 at 12:54 PM, Mike Evans (Gmail) <[EMAIL PROTECTED]> wrote: > This are some screenshots but they are big from 1 to 3.5 MB. > > http://prosvasis.vivodinet.gr/download/temp/dos.bmp > http://prosvasis.vivodinet.gr/download/temp/resized.bmp > http://prosvasis.vivodinet.gr/download/t

R: [Harbour] gtwvt font best setup

2008-06-07 Thread Massimo Belgrano
conto di Mike Evans (Gmail) Inviato: sabato 7 giugno 2008 13.38 A: 'Harbour Project Main Developer List.' Oggetto: RE: [Harbour] gtwvt font best setup Massimo, Nothing big. They just loop inside each control on a window and they change the font according to the new window dimensions. After

RE: [Harbour] gtwvt font best setup

2008-06-07 Thread Mike Evans (Gmail)
- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Massimo Belgrano Sent: Saturday, June 07, 2008 2:31 PM To: Harbour Project Main Developer List. Subject: RE: [Harbour] gtwvt font best setup Very interesting! I suggest post screenshot as jpg 65% What kink of work have don'

RE: [Harbour] gtwvt font best setup

2008-06-07 Thread Massimo Belgrano
al Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Massimo Belgrano Sent: Saturday, June 07, 2008 2:04 PM To: Harbour Project Main Developer List. Subject: RE: [Harbour] gtwvt font best setup Hi Mike, Can you post a little demo/screenshoot about your adaption will be intere

RE: [Harbour] gtwvt font best setup

2008-06-07 Thread Mike Evans (Gmail)
ECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Massimo Belgrano Sent: Saturday, June 07, 2008 2:04 PM To: Harbour Project Main Developer List. Subject: RE: [Harbour] gtwvt font best setup Hi Mike, Can you post a little demo/screenshoot about your adaption will be interesting for me and for most user

RE: [Harbour] gtwvt font best setup

2008-06-07 Thread Mike Evans (Gmail)
Hi Lorenzo, With the approach I used I don't need to change anything in my code to change another of my applications from DOS CUI to windows GUI I've only changed my lib (that is shared between all of my dos applications) when I use wopen to use wvw_nopenwindow the same for wclose Function My_wclos

RE: [Harbour] gtwvt font best setup

2008-06-07 Thread Massimo Belgrano
Hi Mike, Can you post a little demo/screenshoot about your adaption will be interesting for me and for most user what have for your application gtwvw that gtwvt/gtwvg+ct3 not have? -Original Message- >All the work is done inside GTWVW. I changed nothing in my application. I >was using CT

RE: [Harbour] gtwvt font best setup

2008-06-07 Thread Mike Evans (Gmail)
Hi Viktor, >Theoretically yes. It's difficult to tell, since I >don't have xhb (and parts) running here, but the RDD >model is exactly the same in both projects. I'll try to use it and I'll tell my findings (But as I know they change some low level API of RDD in xHarbour). But I don't know if I

Re: [Harbour] gtwvt font best setup

2008-06-07 Thread Szakáts Viktor
Hi Lorenzo, I'm personally only interested in no app UI rewrite and maximum portability, so I'm sticking with the CUI look. Me too. My apps have to run "exactly" in the same way under *nix, Win and OS X ( even using same number of rows and cols ), so for me gtwvt=gtxwc=gttrm. CUI ( sadly n

Re: [Harbour] gtwvt font best setup

2008-06-07 Thread Szakáts Viktor
Hi Mike, Well, me too. (but the current xhb one works with Harbour AFAIK). That's mean that I can use Harbour with RMDBFCDX? Theoretically yes. It's difficult to tell, since I don't have xhb (and parts) running here, but the RDD model is exactly the same in both projects. user smoothly _

Re: [Harbour] gtwvt font best setup

2008-06-07 Thread Lorenzo Fiorini
On Sat, Jun 7, 2008 at 10:00 AM, Szakáts Viktor <[EMAIL PROTECTED]> wrote: > I'm personally only interested in no app UI rewrite and > maximum portability, so I'm sticking with the CUI look. Me too. My apps have to run "exactly" in the same way under *nix, Win and OS X ( even using same number o

RE: [Harbour] gtwvt font best setup

2008-06-07 Thread Mike Evans (Gmail)
Hi Viktor, >Well, me too. (but the current xhb one works with Harbour AFAIK). That's mean that I can use Harbour with RMDBFCDX? >Changing screen dimensions is good to have in real time, >but since it needs work done by the application, this is >something to allow only if the application specifi

Re: [Harbour] gtwvt font best setup

2008-06-07 Thread Szakáts Viktor
Hi Mike, On 2008.06.06., at 19:21, Mike Evans (Gmail) wrote: Hi Viktor, I've already done something like that but with a changed version of GTWVW and under xHarbour (I hope that someday Przemek will add RMDBFCDX under Harbour also). I've changed GTWVW so when a resize its occurs it resize

Re: [Harbour] gtwvt font best setup

2008-06-06 Thread Szakáts Viktor
Me too, in an INIT PROC. There were two small problems in GTWVT, which I've already fixed: 1) The cursor shape was not reinitialized after changing font/size, until the first cursor shape change. 2) SC_NORMAL cursor shape didn't take into account font size, it was constant 4. I'll commit

RE: [Harbour] gtwvt font best setup

2008-06-06 Thread Massimo Belgrano
oject Main Developer List.' Subject: RE: [Harbour] gtwvt font best setup Hi Viktor, I've already done something like that but with a changed version of GTWVW and under xHarbour (I hope that someday Przemek will add RMDBFCDX under Harbour also). I've changed GTWVW so when a resize its oc

RE: [Harbour] gtwvt font best setup

2008-06-06 Thread Massimo Belgrano
List. Subject: Re: [Harbour] gtwvt font best setup On Fri, Jun 6, 2008 at 7:30 PM, Lorenzo Fiorini <[EMAIL PROTECTED]> wrote: > The "problem" is that GTInfo(GTI_FONTNAME) returns the string I set > not the actual font, so I'm not sure I'm actually using Terminal but >

RE: [Harbour] gtwvt font best setup

2008-06-06 Thread Massimo Belgrano
Interesting can you post same sample? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Evans (Gmail) Sent: Friday, June 06, 2008 7:35 PM To: 'Harbour Project Main Developer List.' Subject: RE: [Harbour] gtwvt font best setup Also I&#x

RE: [Harbour] gtwvt font best setup

2008-06-06 Thread Mike Evans (Gmail)
cess from here to my ftp server) Regards Mike Evans -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Lorenzo Fiorini Sent: Friday, June 06, 2008 8:44 PM To: Harbour Project Main Developer List. Subject: Re: [Harbour] gtwvt font best setup On Fri, Jun 6, 2

Re: [Harbour] gtwvt font best setup

2008-06-06 Thread Lorenzo Fiorini
On Fri, Jun 6, 2008 at 7:30 PM, Lorenzo Fiorini <[EMAIL PROTECTED]> wrote: > The "problem" is that GTInfo(GTI_FONTNAME) returns the string I set > not the actual font, so I'm not sure I'm actually using Terminal but > it looks good and allows more rows/cols than Courier so it's sth > different. S

Re: [Harbour] gtwvt font best setup

2008-06-06 Thread Lorenzo Fiorini
On Fri, Jun 6, 2008 at 7:35 PM, Mike Evans (Gmail) <[EMAIL PROTECTED]> wrote: > Also I've made some changes so the close button of each window acts like > ESC, right click like ESC also, Roller as pgup pgdn , CTRL-CLICK like TAB > and DBLclick like enter. Also I'm using an excellent lib (appface)

Re: [Harbour] gtwvt font best setup

2008-06-06 Thread Lorenzo Fiorini
On Fri, Jun 6, 2008 at 7:30 PM, Szakáts Viktor <[EMAIL PROTECTED]> wrote: > I've noticed that the blinking cursor is not > resized properly in these cases. I set the font at the app start. At the moment I get the correct cursor. best regards, Lorenzo _

RE: [Harbour] gtwvt font best setup

2008-06-06 Thread Mike Evans (Gmail)
Also I've made some changes so the close button of each window acts like ESC, right click like ESC also, Roller as pgup pgdn , CTRL-CLICK like TAB and DBLclick like enter. Also I'm using an excellent lib (appface) to skin my application. Until now the results from my customers are excellent. Even t

Re: [Harbour] gtwvt font best setup

2008-06-06 Thread Lorenzo Fiorini
On Fri, Jun 6, 2008 at 7:26 PM, Mike Evans (Gmail) <[EMAIL PROTECTED]> wrote: > I've made something automatically with the following code > > Local nScreenWidth := Wvw_GetScreenWidth() > ... > Wvw_SetFont( , hIniData["Fonts"]["Fontname"], nFHeight, nFWidth, 0 ) > wvw_pbSetFont( , hIniDa

Re: [Harbour] gtwvt font best setup

2008-06-06 Thread Szakáts Viktor
Works great! :) I've noticed that the blinking cursor is not resized properly in these cases. Brgds, Viktor On 2008.06.06., at 19:15, Lorenzo Fiorini wrote: On Fri, Jun 6, 2008 at 6:52 PM, Szakáts Viktor [EMAIL PROTECTED]> wrote: How did you manage to switch to "Courier" in the first place?

Re: [Harbour] gtwvt font best setup

2008-06-06 Thread Lorenzo Fiorini
On Fri, Jun 6, 2008 at 7:15 PM, Lorenzo Fiorini <[EMAIL PROTECTED]> wrote: > I've found that these lines can be a good start: > >GTInfo(GTI_FONTNAME, cName) >GTInfo(GTI_FONTSIZE, nSize) >GTInfo(GTI_FONTWIDTH, int(nSize/2)) > > with these using Courier and Lucida

RE: [Harbour] gtwvt font best setup

2008-06-06 Thread Mike Evans (Gmail)
Hi Lorenzo, I've made something automatically with the following code Local nScreenWidth := Wvw_GetScreenWidth() Local nScreenHeight:= Wvw_GetScreenHeight() Local nFHeight, nFWidth Wvw_SetCodePage( ,Val( hIniData["Fonts"]["Codepage"] ) ) //255 If !Empty( hIniData["Fonts"]["Fontfile"] )

RE: [Harbour] gtwvt font best setup

2008-06-06 Thread Mike Evans (Gmail)
t: Friday, June 06, 2008 7:40 PM To: Harbour Project Main Developer List. Subject: Re: [Harbour] gtwvt font best setup > I'd like some functionality which lets the users reshape > the window, font size, font type. I reckon this will be > a recurring problem once the app gets to the field. &g

Re: [Harbour] gtwvt font best setup

2008-06-06 Thread Lorenzo Fiorini
On Fri, Jun 6, 2008 at 6:52 PM, Szakáts Viktor <[EMAIL PROTECTED]> wrote: > How did you manage to switch to "Courier" > in the first place? Or did it work only > after these core modifications? I've found that these lines can be a good start: GTInfo(GTI_FONTNAME, cName) G

Re: [Harbour] gtwvt font best setup

2008-06-06 Thread Lorenzo Fiorini
On Fri, Jun 6, 2008 at 4:58 PM, Szakáts Viktor <[EMAIL PROTECTED]> wrote: > Yes, me too. I've found that keeping the ratio 1/2 of height ( size ) and width is very important. Setting both size and width I got working Lucida Console and Courier in an "expected" way. Still Consolas doesn't work.

Re: [Harbour] gtwvt font best setup

2008-06-06 Thread Szakáts Viktor
How did you manage to switch to "Courier" in the first place? Or did it work only after these core modifications? Brgds, Viktor On 2008.06.06., at 18:42, Lorenzo Fiorini wrote: On Fri, Jun 6, 2008 at 4:58 PM, Szakáts Viktor [EMAIL PROTECTED]> wrote: Yes, me too. I've found that changing in

Re: [Harbour] gtwvt font best setup

2008-06-06 Thread Szakáts Viktor
uot;,20,8) // WVt_SetFont("Lucida Console",20,-8) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Lorenzo Fiorini Sent: Friday, June 06, 2008 6:14 PM To: Harbour Project Main Developer List. Subject: Re: [Harbour] gtwvt font best setup On Fri, Jun

Re: [Harbour] gtwvt font best setup

2008-06-06 Thread Lorenzo Fiorini
On Fri, Jun 6, 2008 at 4:58 PM, Szakáts Viktor <[EMAIL PROTECTED]> wrote: > Yes, me too. I've found that changing in source/rtl/gtwvt.h: from # define WVT_DEFAULT_FONT_HEIGHT 20 # define WVT_DEFAULT_FONT_WIDTH10 to # define WVT_DEFAULT_FONT_HEIGHT 16 # define WVT_DEFAULT_FONT_WIDTH

Re: [Harbour] gtwvt font best setup

2008-06-06 Thread Szakáts Viktor
I'd like some functionality which lets the users reshape the window, font size, font type. I reckon this will be a recurring problem once the app gets to the field. I could do that inside the app, but that would be far from intuitive in a CUI application (think of 'guess -> set -> try -> do it aga

RE: [Harbour] gtwvt font best setup

2008-06-06 Thread Massimo Belgrano
Lorenzo Fiorini Sent: Friday, June 06, 2008 6:14 PM To: Harbour Project Main Developer List. Subject: Re: [Harbour] gtwvt font best setup On Fri, Jun 6, 2008 at 5:28 PM, Pritpal Bedi <[EMAIL PROTECTED]> wrote: > This all has been implemented in GTWVG long back. In a day or two I will >

Re: [Harbour] gtwvt font best setup

2008-06-06 Thread Lorenzo Fiorini
On Fri, Jun 6, 2008 at 5:28 PM, Pritpal Bedi <[EMAIL PROTECTED]> wrote: > This all has been implemented in GTWVG long back. In a day or two I will > show the code. And infact I would like to encapsilate those methods in core > GTWVT. Good. I've never used gtwvg is there a way to have a better fo

Re: [Harbour] gtwvt font best setup

2008-06-06 Thread Pritpal Bedi
Lorenzo and Viktor <<< > But what I'm trying to find is a "pattern" ti understand how to set a > font with gtwvt ( or how to know why a font can't be used ). Yes, me too. And if I can have my wishes too: I'd like some functionality which lets the users reshape the window, font size, font t

Re: [Harbour] gtwvt font best setup

2008-06-06 Thread Szakáts Viktor
[ The ultimate problem with Consolas though, is that you cannot distribute it with your application. ] AFAIK Consolas is included in PowerPoint Viewer 2007 which is free for "genuine" Windows users. That's true, but you cannot distribute it's fonts with your own app, regardless. What you can d

Re: [Harbour] gtwvt font best setup

2008-06-06 Thread Lorenzo Fiorini
On Fri, Jun 6, 2008 at 3:50 PM, Szakáts Viktor <[EMAIL PROTECTED]> wrote: > If I try this with "Courier New", "Courier", all > the same. "Terminal", "Symbol" works though. I too can't find a "clean" way to set font. > [ The ultimate problem with Consolas though, is that > you cannot distribute i

Re: [Harbour] gtwvt font best setup

2008-06-06 Thread Szakáts Viktor
Hi Lorenzo, With gtxwc and the fixed font I can get 48 rows and 140 cols using size 13. With gtwvt the only font that I've found usable at more than 25x80 is Terminal, but it looks really "Dos". M$ has a new fixed font "Consolas" that it comes with POwerPoint Viewer 2007 but I can't find the

[Harbour] gtwvt font best setup

2008-06-06 Thread Lorenzo Fiorini
I'm trying to find out the best font configurations but I can't find out the relation between font name, size, height, width. With gtxwc and the fixed font I can get 48 rows and 140 cols using size 13. With gtwvt the only font that I've found usable at more than 25x80 is Terminal, but it looks re