Sign in to follow this  
Followers 0
mostafa

popup page in citect

8 posts in this topic

hi dears i have made a popup page in citect v7.1 but in my project,pages are not fix and turn to another page every 15 second, when a popup page be open in a special page,in another page has became disappear,i want when a popup page opened in a page,it become fix such as a form until i close it,is this possible?

Share this post


Link to post
Share on other sites
How do you open the popup? If you use the cicode function WinNewAt you can open the popup either as a normal page (mode 0) or a child window (mode 2). In both cases the popup will stay open.

Share this post


Link to post
Share on other sites
thank you,but if it always is displayed on top of page,if i want to display it in middle of page how work should i do?

Share this post


Link to post
Share on other sites
You have to specify the position on the screen - hate pop ups - operators never shut them down.

Share this post


Link to post
Share on other sites
There is a facility in the pop up page dialogue that allows you to position the pop up wherever you want - do not have it handy now but I think it works in pixels - you also specify the size of the pop up as well the same way.

Share this post


Link to post
Share on other sites
There is a new function called AssPopUp that works nicely. It is supposed to set the new page as close as possible to the mouse while still being entirely visible on the monitor where the mouse is. I had to manually configure this in Citect 5. If you want to use my edited cicode... on the button for an up BGGAssPopUp("!sg_trend") then add to the cicode //new version for Citect7, now that determining the active window is easy. INT FUNCTION BGGAssPopUp(STRING sPage, STRING sTag1 = "", STRING sTag2 = "", STRING sTag3 = "", STRING sTag4 = "", STRING sTag5 = "", STRING sTag6 = "", STRING sTag7 = "", STRING sTag8 = "") INT x, y; REAL ScaleX, ScaleY; DspGetMouse(x, y); PageTransformCoords(WinNumber(), x, y, x, y, 0);//this is new ScaleX = StrToReal(PageInfo(16));//new setting "Dynamic window horizontal scale" for any sized parent window ScaleY = StrToReal(PageInfo(17));// as above, for vertical x = x / ScaleX; y = y / ScaleY; RETURN AssWin(sPage, x, y, 1 + 8 + 32 + 64 + 256 + 512, sTag1, sTag2, sTag3, sTag4, sTag5, sTag6, sTag7, sTag8); //in AssWin 64 ensures the popups are always on top, hopefully forcing the operators to close them eventually. //note when no variables are passed none are used. //Also, this based upon the AssPopUp function END I haven't actually tested when a popup opens a popup, but if the second popup is smaller then it should still work smoothly. Also dont bother with the sTag things unless you know how to work a SuperGenie (I dont).

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0