request GTWVG and problem in HBIDE

213 views
Skip to first unread message

Massimo Belgrano

unread,
Jun 20, 2012, 10:08:53 AM6/20/12
to harbou...@googlegroups.com, Pritpal Bedi
HI Pritpal Bedi

Can you give same reply on gtwvg in user group


I want also notice that hbide seem not running in last cvs
I post messages on developer list




2012/6/20 Rossine <qii...@ig.com.br>
Hello Massimo,

Many for your attention.

Change the sample: "\harbour\contrib\gtwvg\tests\wvgdyndialogs.prg"

Search for function: "DlgSlideShow"

change this:

  nStyle  := DS_SETFONT + WS_VISIBLE + WS_POPUP + WS_CAPTION +
WS_SYSMENU + WS_THICKFRAME + WS_MINIMIZEBOX

for:

  nStyle  := DS_SETFONT + WS_VISIBLE + WS_POPUP + WS_CAPTION +
WS_SYSMENU + WS_THICKFRAME // + WS_MINIMIZEBOX

Compile and execute this sample e go the option:

- Modeless Dialogs
  - Slide Show . Modeless

When appears the window, double-click the top edge and you will see
that there appears to minimize and maximize buttons, this is what I
need, I want not resize the window.

Excuse me if I'm not being clear :)

Best Regards,

Rossine.

--
You received this message because you are subscribed to the Google
Groups "Harbour Users" group.
Unsubscribe: harbour-user...@googlegroups.com
Web: http://groups.google.com/group/harbour-users



--
Massimo Belgrano

Delta Informatica S.r.l. (http://www.deltain.it/) (+39 0321 455962)
Analisi e sviluppo software per Lan e Web -  Consulenza informatica - Formazione

Pritpal Bedi

unread,
Jun 20, 2012, 11:08:14 AM6/20/12
to Harbour Users
Hi

> Can you give same reply on gtwvg in user group

I will follow but a little later.
I cannot switch to GTWVG right now because all
my spare-time is utilized on hbQT only.

> I want also notice that hbide seem not running in last cvs
> I post messages on developer list

Try again.
I posted a fix today.
These are regression issues and will be fixed
as and when reported.

For your knowledge,
all my development projects are hosted on hbIDE only.

Pritpal Bedi

Alain Aupeix

unread,
Jun 20, 2012, 3:24:46 PM6/20/12
to harbou...@googlegroups.com
There is a few month, I have converted an old program from clipper 5.01
to harbour. It works in a console, but I'm really frustrated not to be
able to convert it to a graphic program.

Is there some simple example to compil, showing how to develop a qt
graphic program.

I insist on the simplicity, because I'm not able to understand and
modify something like hbide.

Thanks
A+


pepo pepo

unread,
Jun 20, 2012, 4:18:58 PM6/20/12
to harbou...@googlegroups.com
If you love to keep things simple y recommend you:

http://marinas-gui.org

Simple, stable and well autodocumented.


2012/6/20 Alain Aupeix <alain....@wanadoo.fr>

A+


--
You received this message because you are subscribed to the Google
Groups "Harbour Users" group.

Pritpal Bedi

unread,
Jun 20, 2012, 4:23:23 PM6/20/12
to Harbour Users
Hello Alain

> There is a few month, I have converted an old program from clipper 5.01
> to harbour. It works in a console, but I'm really frustrated not to be
> able to convert it to a graphic program.

Do not be frustrated.
Harbour is not a magic wand to convert
a Clipper console application to GUI. You were
able to convert a 16 bit appln on a 32 or 64 bit one
but not from console to GUI. For this to happen
you need a GUI consistent thinking and also
program flow plus a library over which
you have construct the castle.

So first prepare yourself for the GUI.
Simplest possible path is to link your application
with GTWVG and then try to add components
or gui look you feel. GTWVG is not a pure GUI
lib but a GUI emulating lib on top of Clipper console.

If above concept is clear to you than read below.

> Is there some simple example to compil, showing how to develop a qt
> graphic program.
>
> I insist on the simplicity, because I'm not able to understand and
> modify something like hbide.

hbIDE is not a library to base your applns on.
hbIDE is a project manager where you can host
your application ready to be edited/compiled/linked.

You do not need to follow hbIDE specif
code constructs into your application. For you
You should follow Giovani's tutorial for this
purpose. But then you will have to rewrite
your Clipper appn from scratch if you adopt
hbQT path.

Hope above explanation is enough.

Pritpal Bedi

Alain Aupeix

unread,
Jun 20, 2012, 4:25:49 PM6/20/12
to harbou...@googlegroups.com, Pritpal Bedi
Le 20/06/2012 22:23, Pritpal Bedi a �crit :
> Hello Alain
>
>> There is a few month, I have converted an old program from clipper 5.01
>> to harbour. It works in a console, but I'm really frustrated not to be
>> able to convert it to a graphic program.
> Do not be frustrated.
> Harbour is not a magic wand to convert
> a Clipper console application to GUI. You were
> able to convert a 16 bit appln on a 32 or 64 bit one
> but not from console to GUI. For this to happen
> you need a GUI consistent thinking and also
> program flow plus a library over which
> you have construct the castle.
>
> So first prepare yourself for the GUI.
> Simplest possible path is to link your application
> with GTWVG and then try to add components
> or gui look you feel. GTWVG is not a pure GUI
> lib but a GUI emulating lib on top of Clipper console.
Sorry not to have been precise, but I'm under Linux ...

A+

Alain Aupeix

unread,
Jun 20, 2012, 4:44:28 PM6/20/12
to harbou...@googlegroups.com, pepo pepo
Le 20/06/2012 22:18, pepo pepo a �crit :
> If you love to keep things simple y recommend you:
>
> http://marinas-gui.org
>
> Simple, stable and well autodocumented.
Well, I have downloaded there is a few time Marinas 1.9. I see that now
the version is 2.0, and I'll download it to-morrow.

But I'm just as a beginner, and what I need is a sample project, with
source (just a simple box, with a menu, some buttons, a text edit field,
a checkbox, a combobox.... like the sample given with autoit. Just to
be able tocompile it, modify and understand it.

After, I'll perhaps able to convert my program.

Hi, Maurizio, I suppose your mail you send for Google+ is to talk about
Marinas too.
The big problem, is that if I have a Google count (made for Picassa
there is a few time), I don't know how to join you on Google+, and to
say exactly, I'm about 60 years, and don't really appreciate and know
these services.

Thank for the help.
A+

Pritpal Bedi

unread,
Jun 20, 2012, 5:59:22 PM6/20/12
to Harbour Users
Hi

> But I'm just as a beginner, and what I need is a sample project, with
> source (just a simple box, with a menu, some buttons, a text edit field,
> a checkbox, a combobox.... like the sample  given with autoit. Just to
> be able tocompile it, modify and understand it.

So have a look at harbour/contrib/hbqt/tests/demoqt.prg

Pritpal Bedi

Massimo Belgrano

unread,
Jun 21, 2012, 1:26:27 AM6/21/12
to harbou...@googlegroups.com
http://www.elektrosoft.it/tutorials/hbqt/hbqt.asp 

2012/6/20 Pritpal Bedi <bedipr...@gmail.com>
--
You received this message because you are subscribed to the Google
Groups "Harbour Users" group.



--
Massimo Belgrano

Alain AUPEIX

unread,
Jun 21, 2012, 3:20:40 AM6/21/12
to harbou...@googlegroups.com

> Message du 21/06/12 07:27
> De : "Massimo Belgrano"
> A : harbou...@googlegroups.com
> Copie à :
> Objet : Re: [harbour-users] Re: Does a qt example exists ?
>
> http://www.elektrosoft.it/tutorials/hbqt/hbqt.asp
>

Can this tuto be used under Linux ?

Thanks
A+

Pritpal Bedi

unread,
Jun 21, 2012, 3:57:37 AM6/21/12
to Harbour Users
Hi

> > Objet : Re: [harbour-users] Re: Does a qt example exists ?
>
> >http://www.elektrosoft.it/tutorials/hbqt/hbqt.asp
>
> Can this tuto be used under Linux ?

Do you read this and developer list properly ?

Pritpal Bedi

Massimo Belgrano

unread,
Jun 21, 2012, 10:39:18 AM6/21/12
to harbou...@googlegroups.com
Yes can be used under linux with very little adaption
because harbour is strong end powerfull but under evolution so same source will need a change in Future

I invite follow harbour project also on facebook  https://www.facebook.com/groups/harbour.project/ 
and share the info  with other developer

2012/6/21 Alain AUPEIX <alain....@wanadoo.fr>


--
Massimo Belgrano

Hans Lodder

unread,
Jun 22, 2012, 9:11:45 AM6/22/12
to harbou...@googlegroups.com
Op 21-6-2012 7:26, Massimo Belgrano schreef:
...
> 2012/6/20 Pritpal Bedi <bedipr...@gmail.com
> <mailto:bedipr...@gmail.com>>
>
...
>
> So have a look at harbour/contrib/hbqt/tests/demoqt.prg

Hi!

This directory/file does not exist in my Harbour distribution. Where can
I download it?

Kind regards, hans lodder


> Pritpal Bedi

Massimo Belgrano

unread,
Jun 22, 2012, 9:26:23 AM6/22/12
to harbou...@googlegroups.com
Is integral part with official harbour distribution nigtly edition  or source  or last official release 
is is the folder where you have installed
c:\hb32\contrib\qt\test
Immagine in linea 1

2012/6/22 Hans Lodder <hans....@requirements-management.nl>
Op 21-6-2012 7:26, Massimo Belgrano schreef:
...
2012/6/20 Pritpal Bedi <bedipr...@gmail.com
<mailto:bedipritpal.s@gmail.com>>

...


   So have a look at harbour/contrib/hbqt/tests/demoqt.prg

Hi!

This directory/file does not exist in my Harbour distribution. Where can I download it?

Kind regards, hans lodder



   Pritpal Bedi

--
You received this message because you are subscribed to the Google
Groups "Harbour Users" group.
image.png

Hans Lodder

unread,
Jun 23, 2012, 2:33:39 AM6/23/12
to harbou...@googlegroups.com
Hi Massimo!

Thank you! I found it. My misunderstanding was that I have the MiniGUI
extended Edition, and I could not find it in there.

Kind regards, hans


Op 22-6-2012 15:26, Massimo Belgrano schreef:
> Is integral part with official harbour distribution nigtly edition
> <http://sourceforge.net/projects/harbour-project/files/binaries-windows/nightly/harbour-nightly-win.exe/download>
> or source
> <http://sourceforge.net/projects/harbour-project/files/source/nightly/harbour-nightly-src.zip/download>
> or last official release
> is is the folder where you have installed
> c:\hb32\contrib\qt\test
> Immagine in linea 1
>
> 2012/6/22 Hans Lodder <hans....@requirements-management.nl
> <mailto:hans....@requirements-management.nl>>
>
> Op 21-6-2012 7:26, Massimo Belgrano schreef:
> ...
>
> 2012/6/20 Pritpal Bedi <bedipr...@gmail.com
> <mailto:bedipr...@gmail.com>
> <mailto:bedipritpal.s@gmail.__com <mailto:bedipr...@gmail.com>>>
>
> ...
>
> So have a look at harbour/contrib/hbqt/tests/__demoqt.prg
>
> Hi!
>
> This directory/file does not exist in my Harbour distribution. Where
> can I download it?
>
> Kind regards, hans lodder
>
> Pritpal Bedi
> --
> You received this message because you are subscribed to the Google
> Groups "Harbour Users" group.
> Unsubscribe: harbour-users+unsubscribe@__googlegroups.com
> <mailto:harbour-users%2Bunsu...@googlegroups.com>
> Web: http://groups.google.com/__group/harbour-users

Massimo Belgrano

unread,
Jun 23, 2012, 8:40:47 AM6/23/12
to harbou...@googlegroups.com
Please request to  "MiniGUI extended Edition "
of integrate in his distribution all content present in nigtly edition
better it if prepare minigui as add of of harbour also http://www.hmgforum.com/ was plan switch
Use harbour official distribution give us warranties of reliability
ans made easy give help to user for same organization folder

I think that will be created extension for different library (


2012/6/23 Hans Lodder <hans....@requirements-management.nl>
Hi Massimo!

Thank you! I found it. My misunderstanding was that I have the MiniGUI extended Edition, and I could not find it in there.

Kind regards, hans


Op 22-6-2012 15:26, Massimo Belgrano schreef:
Is integral part with official harbour distribution nigtly edition
<http://sourceforge.net/projects/harbour-project/files/binaries-windows/nightly/harbour-nightly-win.exe/download>
or source
<http://sourceforge.net/projects/harbour-project/files/source/nightly/harbour-nightly-src.zip/download>

or last official release
is is the folder where you have installed
c:\hb32\contrib\qt\test
Immagine in linea 1

2012/6/22 Hans Lodder <hans.lodder@requirements-management.nl
<mailto:hans.lodder@requirements-management.nl>>


   Op 21-6-2012 7:26, Massimo Belgrano schreef:
   ...

       2012/6/20 Pritpal Bedi <bedipr...@gmail.com
       <mailto:bedipritpal.s@gmail.com>
       <mailto:bedipritpal.s@gmail.__com <mailto:bedipritpal.s@gmail.com>>>


   ...

           So have a look at harbour/contrib/hbqt/tests/__demoqt.prg


   Hi!

   This directory/file does not exist in my Harbour distribution. Where
   can I download it?

   Kind regards, hans lodder

           Pritpal Bedi
   --
   You received this message because you are subscribed to the Google
   Groups "Harbour Users" group.
   Unsubscribe: harbour-users+unsubscribe@__googlegroups.com
   <mailto:harbour-users%2Bunsu...@googlegroups.com>
   Web: http://groups.google.com/__group/harbour-users

--
You received this message because you are subscribed to the Google
Groups "Harbour Users" group.

Steve Scott

unread,
Jun 23, 2012, 12:43:03 PM6/23/12
to harbou...@googlegroups.com
My system uses Clipper 5.2, TLIB and Blinker, but I can see no way to
build this under Harbour.

Nor can I build even the simplest example!

Maybe it's because I have no idea how to work the IDE - [or indeed any IDE!]

On 23/06/2012, Massimo Belgrano <mbel...@deltain.it> wrote:
> Please request to "MiniGUI extended Edition "
> of integrate in his distribution all content present in nigtly edition
> better it if prepare minigui as add of of harbour also
> http://www.hmgforum.com/ was plan switch
> Use harbour official
> distribution<http://sourceforge.net/projects/harbour-project/files/>give
> us warranties of reliability
> ans made easy give help to user for same organization folder
>
> I think that will be created extension for different library (
>
>
> 2012/6/23 Hans Lodder <hans....@requirements-management.nl>
>
>> Hi Massimo!
>>
>> Thank you! I found it. My misunderstanding was that I have the MiniGUI
>> extended Edition, and I could not find it in there.
>>
>> Kind regards, hans
>>
>>
>> Op 22-6-2012 15:26, Massimo Belgrano schreef:
>>
>>> Is integral part with official harbour distribution nigtly edition
>>> <http://sourceforge.net/**projects/harbour-project/**
>>> files/binaries-windows/**nightly/harbour-nightly-win.**exe/download<http://sourceforge.net/projects/harbour-project/files/binaries-windows/nightly/harbour-nightly-win.exe/download>
>>> >
>>> or source
>>> <http://sourceforge.net/**projects/harbour-project/**
>>> files/source/nightly/harbour-**nightly-src.zip/download<http://sourceforge.net/projects/harbour-project/files/source/nightly/harbour-nightly-src.zip/download>
>>> >
>>>
>>> or last official release
>>> is is the folder where you have installed
>>> c:\hb32\contrib\qt\test
>>> Immagine in linea 1
>>>
>>> 2012/6/22 Hans Lodder
>>> <hans.lodder@requirements-**management.nl<hans....@requirements-management.nl>
>>> <mailto:hans.lodder@**requirements-management.nl<hans....@requirements-management.nl>
>>> >>
>>>
>>>
>>> Op 21-6-2012 7:26, Massimo Belgrano schreef:
>>> ...
>>>
>>> 2012/6/20 Pritpal Bedi <bedipr...@gmail.com
>>> <mailto:bedipritpal.s@gmail.**com <bedipr...@gmail.com>>
>>> <mailto:bedipritpal.s@gmail.__**com
>>> <mailto:bedipritpal.s@gmail.**
>>> com <bedipr...@gmail.com>>>>
>>>
>>> ...
>>>
>>> So have a look at harbour/contrib/hbqt/tests/__**demoqt.prg
>>>
>>>
>>> Hi!
>>>
>>> This directory/file does not exist in my Harbour distribution. Where
>>> can I download it?
>>>
>>> Kind regards, hans lodder
>>>
>>> Pritpal Bedi
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Harbour Users" group.
>>> Unsubscribe:
>>> harbour-users+unsubscribe@__go**oglegroups.com<http://googlegroups.com>
>>>
>>> <mailto:harbour-users%**2Bunsu...@googlegroups.com<harbour-users%252Buns...@googlegroups.com>
>>> **>
>>> Web:
>>> http://groups.google.com/__**group/harbour-users<http://groups.google.com/__group/harbour-users>
>>>
>>>
>>> <http://groups.google.com/**group/harbour-users<http://groups.google.com/group/harbour-users>
>>> >
>>>
>>> --
>>> Massimo Belgrano
>>>
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Harbour Users" group.
>> Unsubscribe:
>> harbour-users+unsubscribe@**googlegroups.com<harbour-users%2Bunsu...@googlegroups.com>
>> Web:
>> http://groups.google.com/**group/harbour-users<http://groups.google.com/group/harbour-users>
>>
>
>
>
> --
> Massimo Belgrano
>
> --
> You received this message because you are subscribed to the Google
> Groups "Harbour Users" group.
> Unsubscribe: harbour-user...@googlegroups.com
> Web: http://groups.google.com/group/harbour-users
>

Alain Aupeix

unread,
Jun 23, 2012, 1:19:39 PM6/23/12
to harbou...@googlegroups.com, Massimo Belgrano
Le 21/06/2012 16:39, Massimo Belgrano a écrit :
Yes can be used under linux with very little adaption
I have compiled all the Giovanni's samples without error, but I have some troubles during execution:

031-QMenu, 032-QMenu, 033-QMenu: menubar is here, but I can't see the menu, and obviously can't use it.

085-ui-movies-archive: I have modified movies.ui, and compiling again, doesn't modify something. It seems that hmbk2 doesn't see ui file modifications. After renaming movies.ui and compiling again (an error occurs, obviously), I rename it again with the good name, and here, hmbk2 compiles with modified ui file.

I have also some  problem when trying a translation of Regia => Réalisateur, the string is displayed like this: R\303\251alisateur
I thought of using html encoding. If I try &amp;, it compiles without problem, but if I use  R&eacute;alisateur (which the good html text encoding), hmbk2 doesn't like it, and gives an error:
  
alain@jujuland:~/Documents/hbqt-tutorial$ ./compile 085-ui-movies-archive
uic: Error in line 47, column 21 : Entity 'eacute' not declared.
File '../hbp/../res/movies.ui' is not valid
hbmk2: plugin: Error: Running 'uic' executable. 1
/usr/bin/uic ../hbp/../res/movies.ui -o /tmp/mPPwvt
Harbour 3.2.0dev (Rev. 17515)
Copyright (c) 1999-2012, http://harbour-project.org/
Compiling '../hbp/../prg/085-ui-movies-archive.prg'...
Lines 2455, Functions/Procedures 4
Generating C source output to '/tmp/hbmk_2xe4hw.dir/085-ui-movies-archive.c'... Done.
Cannot open /tmp/hbmk_2xe4hw.dir/uic_movies.prg, assumed external
No code generated.


Is-it the good way to enter accent in stringts in ui files ?
Is there another way to do it or is-it simply impossible ?

Thanks
A+

Pritpal Bedi

unread,
Jun 23, 2012, 2:12:10 PM6/23/12
to Harbour Users
Hi

> My system uses Clipper 5.2, TLIB and Blinker, but I can see no way to
> build this under Harbour.

Sure you cannot.

You need either source code of TLIB or replace functions
called from TLIB with Harbour native functions.
For Harbour you do not need BLIKER as it uses linker
from the C compiled you deploy to link Harbour appln.

To start with, just download and install the nightly
builds ( on Windows ), navigate to bin folder and type
hbmk2 /path_of_prg/hello.prg and see that exe is built.

Read this newsgroup's messages from the past.

> Nor can I build even the simplest example!
>
> Maybe it's because I have no idea how to work the IDE - [or indeed any IDE!]

This is easy.
1. Install nightly build.
2. From Windows explorer, open folder "bin" on installed parh.
3. Click on hbIDE.exe
4. Drop harbour/tests/hello.prg onto hbIDE.
5. Click on toolbar button "Build Source"
6. You are done.

Report here your very initial findings on Harbour.

Pritpal Bedi

Massimo Belgrano

unread,
Jun 23, 2012, 2:36:07 PM6/23/12
to harbou...@googlegroups.com
Hi steve.scot
Compile a sample using hbmk2 (after download nigtly)
CD \hb32\tests\hbpptest
dir *.hbp // if present hbp you need use it
HBMK2 hbpptest.hbp
CD \hb32\tests
dir *.prg  // other sample will ne compiled
hbmk2 hello.prg

using hbide
cd c:\hb32\bin
hbide
in menu file open project and point to \hb32\tests\hbpptest\hbpptest.hbp



2012/6/23 Steve Scott <steve.scot...@gmail.com>

My system uses Clipper 5.2, TLIB and Blinker, but I can see no way to
build this under Harbour.

Nor can I build even the simplest example!

Maybe it's because I have no idea how to work the IDE - [or indeed any IDE!]


--
Massimo Belgrano


Massimo Belgrano

unread,
Jun 23, 2012, 2:43:49 PM6/23/12
to harbou...@googlegroups.com
Many user have difficult with first installation because
need type view project 

many user use file open instead the not natural drop  harbour/tests/hello.prg onto hbIDE. 

Can you help this first time user with a version
ready to use


2012/6/23 Pritpal Bedi <bedipr...@gmail.com>
Hi


This is easy.
1. Install nightly build.
2. From Windows explorer, open folder "bin" on installed parh.
3. Click on hbIDE.exe
4. Drop harbour/tests/hello.prg onto hbIDE.
5. Click on toolbar button "Build Source"
6. You are done.

Report here your very initial findings on Harbour.

Pritpal Bedi

--
You received this message because you are subscribed to the Google
Groups "Harbour Users" group.



--
Massimo Belgrano

Massimo Belgrano

unread,
Jun 23, 2012, 3:17:15 PM6/23/12
to harbou...@googlegroups.com
afaik 
tlib is only from borland similar to microsoft lib
function can be ingnored in programm flow so try recompile using hbmk2



2012/6/23 Pritpal Bedi <bedipr...@gmail.com>

Hi

> My system uses Clipper 5.2, TLIB and Blinker, but I can see no way to
> build this under Harbour.

Sure you cannot.

You need either source code of TLIB or replace functions
called from TLIB with Harbour native functions.
For Harbour you do not need BLIKER as it uses linker
from the C compiled you deploy to link Harbour appln.


--
Massimo Belgrano

Reply all
Reply to author
Forward
0 new messages