I have a warning and have No clue how to get rid of it.
This line of code brings warning
SetStartVisu Device: SPS-Logik: Application: C0357: POU 'SetMainVisu' wurde als obsolet markiert: Please use the methods of VisuUtils instead.
Any help is appreciated?
You can use FbChangeVisu from VisuUtils, now it's recommended way:
it looks better with feedbacks like Done and Error.
I appreciate your help!
Changing of Visu works!
ist there any way in VisuUtils to know the Size of Client?
I want to call different visu as per client size.
Thx and Regards
Unfortunately I don't know the answer.
Seems like IVisualizationClient does not contain something like pClientData^.rClientRect.ptBottomRight.iX and pClientData^.rClientRect.ptBottomRight.iY.
And honesly it's pretty sad...
But you can check this example:
i did look here thats why i used setMainVisu function from VisuElems....Responsive was the idea-giver!
Exactly these lines of codes i am searching....
PRETTY SAD is the right word!
i am looking if i could find something like.....
GVL.pClientData := VisuElems.gClientManager.GetClientData(itfClient.ClientId);
I am struggling further...there is always a way!
maybe someone on Forge might get an idea :)
I am thankful to you for your support!
i ahve the size, but again Warning of Obsolete...
GVL.pClientData := VisuElems.gClientManager.GetNextClient(); //>--This line brings Warning again!
IF D <> 0 THEN
W := GVL.pClientData^.rClientRect.ptBottomRight.iX;
B := GVL.pClientData^.rClientRect.ptBottomRight.iY;
IF A = 12 THEN
changeVisu(itfClientFilter := itfClientFilter, eError => eError, xExecute := xExecute, xDone=>xDone, xBusy=>xBusy, xError=>xError, sVisuName := 'V00Main');
ELSIF A = 13 THEN
changeVisu(itfClientFilter := itfClientFilter, eError => eError, xExecute := xExecute, xDone=>xDone, xBusy=>xBusy, xError=>xError, sVisuName := 'V01Two');
ELSIF A = 14 THEN
changeVisu(itfClientFilter := itfClientFilter, eError => eError, xExecute := xExecute, xDone=>xDone, xBusy=>xBusy, xError=>xError, sVisuName := 'V03Three');
Please provide your project so we can help you find solutions.
Hello Mr. Prestel,
Thanks for the Offer and i am attaching sample project.
I am having problems in Project Attachment. It is not openig the File select menue. So i apologetically opened a new Thread to be able to update my project.
Sorry for the problems!
Attachments are working again.
Test Test 123 :)
Attached you can find a different API to set the visualization depending on the client size.
Hello Mr. Prestel,
i checked the example. I would try to write the whole chronology so that you can help me effectively.
Responsive Visualisation is what i need...
Thanks in Advance
Attached should be a better example.
In FbStartVisuClientFilter you can see how you can get pClientData in VisuUtils.
no issues at all. i do heartily appreciate that you are helping me.
Log in to post a comment.