I have a custom title bar similar to the picture below.
my application has around 50 fields. i would want the title to have an * when any of the fields are modified.
Is there an easy way of attaching a general if statement rather than adding it to each individual field.
many thanks.
Title Bar Update Topic is solved
Title Bar Update
- Attachments
-
- a.png (30.26 KiB) Viewed 1097 times
-
- Knows some wx things
- Posts: 41
- Joined: Sun Apr 05, 2009 1:53 am
- Location: Maharashtra , India
Re: Title Bar Update
If you are using wxAuiNotebook Class , then check out this untested code ,
int PageIndex = Notebook->GetSelection; // Get current selected page
wxString Title = Notebook->GetPageText (PageIndex); //Get page title
Title += " *" ; // Append * with page title
Notebook->SetPageText (PageIndex, Title); // Change the title
int PageIndex = Notebook->GetSelection; // Get current selected page
wxString Title = Notebook->GetPageText (PageIndex); //Get page title
Title += " *" ; // Append * with page title
Notebook->SetPageText (PageIndex, Title); // Change the title
Jophin K.
Maharashtra , India
Maharashtra , India