Jump to content

Control the change between tabsheets in a page control


nickosl50

Recommended Posts

Hi,

 

1) I would like to ask if there is a specific event that blocks the user from changing tabsheets in a page control based when a certain condition occurs (programmatically block or allow  the transition between pages).

2) Also how can I block the destroy of a frame when a certain condition occurs (programmatically block or allow the destroy).

 

Thank you very much

 

Nick Lazidis

Link to comment
Share on other sites

Hi,

 

1) I would like to ask if there is a specific event that blocks the user from changing tabsheets in a page control based when a certain condition occurs (programmatically block or allow  the transition between pages).

 

You can use UniTabSheet.Enabled property for this, or use OnBeforeActivate and OnBeforeFirstActivate events

 

Look at this demo too:

\FMSoft\Framework\uniGUI\Demos\Desktop\PageControl - BeforeActivate
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...