PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WINDEV 2024
→
How to prevent the current tab Tab to Close
How to prevent the current tab Tab to Close
Started by Carlos, Jan., 02 2021 3:42 PM - 1 reply
Connect yourself…
Carlos
#1
Posted on January, 02 2021 - 3:42 PM
Hi and thanks for the Help in advanced.
How can I prevent the user to close the tab
For example
If the User clicks on the Tab (X) to close it
Thank you
Best regards
Carlos
Report
0
0
DerekT
#2
Posted on January, 05 2021 - 1:32 PM
In the 'Closing a pane of DynTab' enter code that equates to...
IF DynTab..Value = "ALIAS_2" THEN
ReturnToCapture()
END
Of course it is necessary to know the alias and for this I store, based on a condition, the alias of created tab(s) in a global array.
When the user attempts to close a tab my code is similar to...
n_SeekRes = ArraySeek(arrAlias,asLinear,DynTab..Value)
IF n_SeekRes > 0 THEN
ReturnToCapture()
END
Report
0
0
→ Go back to WINDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (earlier versions)
Français
English
Español
Portuguesa
Close this window
Search type
Only topics
All the messages
Search period
Any time
Past hour
Past 24 hours
Past week
Past month
Past year
Cancel
Preview of your message
Adding an image
Import an image from a URL
Send an image from a file of your disk
Drop a file or click "Browse..."
or
Cancel
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Text