Red Lion Crimson 3, Showmodal.

Elcan

Lifetime Supporting Member
Join Date
Apr 2008
Location
NC
Posts
935
Hi all,
I'm trying to use the Showmodal function, but I can't make it work.
Could anybody show me a sample code that works?

Thank you!
 
Hello,

Below is the information from the Reference manual in Crimson.

Thanks
Jeremy

DESCRIPTION
Shows page name as a popup on the terminal’s display. The popup will be centered on the display, and shown on top of the existing page and any existing popups. The popup will not be removed and the function will not return until a call is made to EndModal(), at which point that value passed to that function will be returned by ShowModal().
Modal popups are used to implement user interface features such as yes-or-no confirmation popups from within a program. For example, you may wish to have the user confirm that a given file should indeed be deleted by your proceed with the delete operation. Modal popups make this easier, and involve the need to create complex state machines.

EXAMPLE
if( ShowModal(ConfirmDelete) == 1 ) { DeleteFile(OpenFile(“file.dat”, 1)); }
 
Thank you, Jeremy.
What are missing are clear instructions on how to use the EndModal, but I already figured it out.
In addition to that, I was calling the ShowModal code from indide the Trigger of the flag tag that was toggled by the button, not directly from the "User Defined" action of the button. ShowPopup was working from the same place, though.
 

Similar Topics

How do you install update on Red Lion Crimson ver 3.1. Do I just need to run the exe file on the host server?
Replies
1
Views
136
Hi, I am trying to increase the size of the user login pop up using a Red Lion CR1000 7” HMI with Crimson 3.1 software. The login pop up is very...
Replies
2
Views
701
Hello, We are currently running a bunch of g310's connected to their SLC5 PLCs through ethernet. I've attempted to upgrade the program from 2.0...
Replies
1
Views
1,156
Hi I have been using Red Lion products for some time, I had a thought over the bank holiday weekend, As you do. It would be nice if whenever a...
Replies
4
Views
1,045
Well, I have yet another question for the great minds on this forum! We have a red lion HMI for one of our machines and every time I hook my...
Replies
11
Views
1,728
Back
Top Bottom