8/24/2025 5:39:36 PM
|
|
slxdeveloper.com Community Forums |
|
|
|
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
Forum to discuss writing script in Architect plugins for SalesLogix & general SalesLogix customization topics (for Windows client only). View the code of conduct for posting guidelines.
|
|
|
|
displaying a popup or news ticker at runtime?
Posted: 22 Jul 08 3:44 AM
|
Hi there, does anyone have an idea how to display a message to the users at runtime? I'm thinking about something like "Please logoff in 10 minutes", "This bug has been fixed", "prices have been updated" etc....
I prefer not to use an existing form for the message since I do not know in which form the users are working at a certain time. What I'm thinking about is something like a timer in the toolbar that checks periodically for new messages and then displays a popup or something but I have no clue how to do this.
Any ideas?
Thanks a lot.... Stefan |
|
|
|
Re: displaying a popup or news ticker at runtime?
Posted: 22 Jul 08 8:54 PM
|
Nice idea, but as SLX is single threaded (in terms of the customisation you can achieve through standard Architect plugins anyway), there's no easy way of achieving this AFAIK.
It may be possible via a .NET extension - at least you can start getting multi-threaded - but I have still never used those, so I don't know for sure.
Phil |
|
|
|
Re: displaying a popup or news ticker at runtime?
Posted: 23 Jul 08 3:43 AM
|
Hi Stefan,
I use some objects and a script that will show a ticker-type piece of text.
To do this, put a timer object on the form (best interval value seems to be around 200) and, on the 'OnTimer' event for this object, run the following script that will 'scroll' a label's caption:
Sub Timer1Timer(Sender) Dim str str = myLabel.Caption str = Mid(str, 2, Len(str)) + Left(str, 1) myLabel.Caption = str End Sub
You can also use this to 'flash' things etc etc. The following script (again, run from a Timer object) flashes a coloured panel. A label is used to 'store' a toggled state;
Sub Timer2Timer(Sender) if lblColor.Caption = "grey" then Panel1.Color = wclOrangeRed lblColor.Caption = "red" Else Panel1.Color = wclKhaki lblColor.Caption = "grey" End If
Hope this helps
Mark
|
|
|
|
Re: displaying a popup or news ticker at runtime?
Posted: 23 Jul 08 7:34 AM
|
Thanks a lot, I took the idea with the .net form and now it's running (however, I skipped the one with the scrolling ticker, since performance is always an issue on our citrix farm...) This is what I finally did:
start an invisible .net form with a timer control on it (started from the DB open script) when the timer ticks, look in the database for new messages, if anything was found, show the form with the messages. User confirms, hide the form & restart the timer.
An additional table keeps track of the time a user has last read the messages, so they see only what has been added since then.
Cheers stefan |
|
|
| |
| |
|
You can
subscribe to receive a daily forum digest in your
user profile. View the site code
of conduct for posting guidelines.
Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
|
|
|
|
|
|
|
|