Trigger a QSAY redisplay

50 views
Skip to first unread message

Zoran Sibinovic

unread,
Nov 22, 2024, 4:52:43 AM11/22/24
to QtContribs
Hi to all,

I have a QREAD dialog with several 

@ .. QSAY .. QGET
AND 
@ .. QSAY ... 

objects.

Now I need some of the QSAY objects to redisplay a new value according the previous entered gets so, when I change the value of a QGET, it must trigger the QSAY redisplay with new text value according some conditions based on the QGET value.

Is that possible ? Or I forgot something :)    
Thanks
Zoran


alex;

unread,
Nov 23, 2024, 1:28:16 PM11/23/24
to QtContribs
Hi, Zoran.
I'm not sute.
Try
@ 1,  1 QSAY "Change me" QGET cCust PICTURE "@! " VALID {||vld()}
...
STATIC FUNCTION vld()
   MsgBox( "I'm changed" )
   RETURN .T.



пятница, 22 ноября 2024 г. в 12:52:43 UTC+3, Zoran Sibinovic:

alex;

unread,
Nov 23, 2024, 1:32:31 PM11/23/24
to QtContribs
Sorry, not sure.
)

суббота, 23 ноября 2024 г. в 21:28:16 UTC+3, alex;:

alex;

unread,
Nov 23, 2024, 1:39:03 PM11/23/24
to QtContribs
And finded in hbqtwidgets\tests\composite.prg
    READ oDlg:groupGets LASTGETBLOCK {|| oDlg:labelStatus:setText( "Last Get Encountered, What to Do ?" ) } NOFOCUSFRAME NORESIZE

суббота, 23 ноября 2024 г. в 21:32:31 UTC+3, alex;:

alex;

unread,
Nov 23, 2024, 3:49:16 PM11/23/24
to QtContribs
Yes, I found().
VALID {|  | SayList[1][ _QSAY_OBJECT ]:setText( "Changed text" ) }

;0)

WBR, alex;
пятница, 22 ноября 2024 г. в 12:52:43 UTC+3, Zoran Sibinovic:
Hi to all,

Zoran Sibinovic

unread,
Nov 25, 2024, 3:02:06 AM11/25/24
to QtContribs
Hi Alex,
thanks for your effort, I will try this code.

Thank you!
Zoran

Reply all
Reply to author
Forward
0 new messages