HBQT Tutorial (Rev. 7389)

345 views
Skip to first unread message

Giovanni Di Maria

unread,
Feb 3, 2013, 1:38:26 PM2/3/13
to qtcon...@googlegroups.com
Hi
The  (Rev. 7389) of HBQT Tutorial  is available.

You can find new examples about QSAY, QGET and QREAD clauses.


Regards
Giovanni


Anupam Gaurav

unread,
Feb 5, 2013, 5:52:43 AM2/5/13
to qtcon...@googlegroups.com
Hi Giovanni

This HbQt Tutorial is very nice, I dont found any QPrinter, QPrintPreviewDialog Tutorial.

and with QGET color "W+/R" etc work but with QSAY color not work.
If you have any solution please consider it.

Thanks & Regards

Anupam

Giovanni Di Maria

unread,
Feb 5, 2013, 9:27:23 AM2/5/13
to qtcon...@googlegroups.com
Hi Anupam
For QPrinter and QPrintPreviewDialog you must wait a little.
For the Color of QSAY, i have the same problem....
We hope in a Pritpal's replay .......
Giovanni

Massimo Belgrano

unread,
Feb 5, 2013, 11:16:36 AM2/5/13
to qtcon...@googlegroups.com
Where you have posted the question?

Giovanni Di Maria

unread,
Feb 5, 2013, 1:39:59 PM2/5/13
to qtcon...@googlegroups.com
Hi have NOT posted the question :-)
Giovanni

Pritpal Bedi

unread,
Feb 5, 2013, 2:50:28 PM2/5/13
to qtcon...@googlegroups.com
Anupam


and with QGET color "W+/R" etc work but with QSAY color not work.


Please try to read messages on this list properly.
COLOR clause @ ... SAY is not implemented because it will 
break the Windows effect of the application. And this will never 
be implemented.


Pritpal Bedi

Anupam Gaurav

unread,
Feb 7, 2013, 7:24:09 AM2/7/13
to qtcon...@googlegroups.com

Hi Pritpal Bedi

Is there any way to implement fore color with @...SAY and back color not implement.

Please try to read messages on this list properly.
COLOR clause @ ... SAY is not implemented because it will 
break the Windows effect of the application. And this will never 
be implemented.

Thanks & Regards,

Anupam

Pritpal Bedi

unread,
Feb 7, 2013, 6:19:39 PM2/7/13
to qtcon...@googlegroups.com
Hi

 
Is there any way to implement fore color with @...SAY and back color not implement.


This can be thought of. 
Ok, I will implement.


Pritpal Bedi 

Anupam Gaurav

unread,
Feb 8, 2013, 6:03:43 AM2/8/13
to qtcon...@googlegroups.com

Thanks for the consideration an idea.

This can be thought of. 
Ok, I will implement.
 
can we define font with @...SAY... FONT oFont or @...GET... FONT oFont
if it is possible. 

Thanks & Regards,

Anupam

Anupam Gaurav

unread,
Feb 8, 2013, 7:06:35 AM2/8/13
to qtcon...@googlegroups.com
I have tried below code :-

@01,02 SAY "uke            : " ;
               PROPERTIES {|oGet,oControl| SetControlProp( oGet, oControl, "font", QFont( "Aman", 12, QFont_Bold, .T. ) ) }

//-------- @.... SAY.... PROPERTIES give compiling syntax error. is possible to implement this or not.

@ 1,18 GET cNm   pict "@X" color "W+/B" ;
              PROPERTIES {|oGet,oControl| SetControlProp( oGet, oControl, "font", QFont( "Aman", 12, QFont_Bold, .T. ) ) }

//----------- @....  GET.....PROPERTIES work fine there is no error.

//----------------------------------------------------------
STATIC FUNCTION SetControlProp( oGet, oControl, cProp, xValue )

   HB_SYMBOL_UNUSED( oGet )

   SWITCH cProp
   CASE "tooltip"
      oControl:setToolTip( xValue )
      EXIT
   CASE "font"
      oControl:setFont( xValue )
      EXIT
   ENDSWITCH
   
   RETURN NIL
 //-----------------------------------

Thanks & Regards,

Anupam

   

Pritpal Bedi

unread,
Feb 8, 2013, 2:51:49 PM2/8/13
to qtcon...@googlegroups.com
Hi


can we define font with @...SAY... FONT oFont or @...GET... FONT oFont
if it is possible. 


No. 
Not because it is impossible, but because it will break the 
essential requirement for a console mode to be visible as
reasonable console representation. 


Pritpal Bedi

Pritpal Bedi

unread,
Feb 8, 2013, 2:54:26 PM2/8/13
to qtcon...@googlegroups.com
Hi


@01,02 SAY "uke            : " ;
               PROPERTIES {|oGet,oControl| SetControlProp( oGet, oControl, "font", QFont( "Aman", 12, QFont_Bold, .T. ) ) }

//-------- @.... SAY.... PROPERTIES give compiling syntax error. is possible to implement this or not.

It is not implemented so it will generate error.
 
@ 1,18 GET cNm   pict "@X" color "W+/B" ;
              PROPERTIES {|oGet,oControl| SetControlProp( oGet, oControl, "font", QFont( "Aman", 12, QFont_Bold, .T. ) ) }

//----------- @....  GET.....PROPERTIES work fine there is no error.

SAYS are not persistent objects and are not retained, so it may be difficult,
but not impossible. Will implement PROPERTIES clause with SAYS also.


Pritpal Bedi
Reply all
Reply to author
Forward
0 new messages