hbXbp using HMG library instead of Qt

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
User avatar
Anand
Posts: 595
Joined: Tue May 24, 2016 4:36 pm
DBs Used: DBF

hbXbp using HMG library instead of Qt

Post by Anand »

As I was going through my downloaded folders of Harbour, HMG, MiniGui, qtContribs etc., I stumbled upon hbXbp.

Looking at the codes of hbxbp\tests\demoxbp.prg, I noticed how similar it is to the Xbase++ code I use.

Code: Select all

   oDlg          := XbpDialog():new( , , {10,10}, {900,500}, , .f. )

   /* NOTE: method to install the windows icon is bit different than Windows */
   /* So curretly we can only place disk icon file only */
   oDlg:icon     :=  "test.ico"

   /* TODO: still not implemented*/
   oDlg:taskList := .T.

   oDlg:title    := cTitle
   oDlg:create()

   oDlg:Show()

   /* Enter Xbase++ Event Loop - working */
   DO WHILE .t.
      nEvent := AppEvent( @mp1, @mp2, @oXbp )

      IF ( nEvent == xbeP_Close ) .OR. ( nEvent == xbeP_Keyboard .and. mp1 == xbeK_ESC )
         EXIT
      ELSEIF nEvent == xbeP_Keyboard .and. mp1 == xbeK_F1
      	//
      ENDIF

      oXbp:handleEvent( nEvent, mp1, mp2 )
   ENDDO

   oDlg:destroy()
After googling I knew that Pripal Bedi has done enormous work in making it similar to Xbase++ classes and procedures.

After compiling and running the demo I found that it is purely based on QT library. Now since we have the codes of the classes, I was trying to make changes so that the xbp classes uses HMG library instead of Qt.

Easier said then done. Now I am here to get some guidance on my goal. Please advise.

Regards,

Anand
Regards,

Anand

Image
User avatar
mustafa
Posts: 1158
Joined: Fri Mar 20, 2009 11:38 am
DBs Used: DBF
Location: Alicante - Spain
Contact:

Re: hbXbp using HMG library instead of Qt

Post by mustafa »

Hola Anand :

Marinas-Gui es lo más parecido a HMG
http://www.marinas-gui.org/
https://ar.groups.yahoo.com/neo/groups/ ... ons/topics

En su día ya publique un sample ----> Browse.zip
http://www.hmgforum.com/viewtopic.php?t=1959
Pero parece que no tuvo mucha aceptación en este Foro la aportación de Marinas-Gui :x

Suerte , Saludos
Mustafa
*-------------------------------------------------- Google -----------------------------------------------*
Hello Anand:

Marinas-Gui is the closest thing to HMG
  http://www.marinas-gui.org/
  https://ar.groups.yahoo.com/neo/groups/ ... ons/topics

  In your day I already published a sample ----> Browse.zip
  http://www.hmgforum.com/viewtopic.php?t=1959
  But it seems that the contribution of Marinas-Gui did not have much acceptance in this Forum :x

Good luck, Regards
Mustafa
User avatar
Anand
Posts: 595
Joined: Tue May 24, 2016 4:36 pm
DBs Used: DBF

Re: hbXbp using HMG library instead of Qt

Post by Anand »

Thanks, I will check

Regards,

Anand
Regards,

Anand

Image
Post Reply