Page 1 of 1

hbXbp using HMG library instead of Qt

Posted: Wed Jan 03, 2018 5:09 pm
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

Re: hbXbp using HMG library instead of Qt

Posted: Wed Jan 03, 2018 6:27 pm
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

Re: hbXbp using HMG library instead of Qt

Posted: Thu Jan 04, 2018 3:31 pm
by Anand
Thanks, I will check

Regards,

Anand