Developer forums (C::B DEVELOPMENT STRICTLY!) > Contributions to C::B
BOUNTY: Notebook class with "close" button at the right
eranif:
I forgot the answer your question: Yes, the link always contains the latest souces + sample
Eran
rickg22:
eranif: You might considering posting your project officially at berlios (for SVN access) or sourceforge (for CVS access).
mandrav:
@Eran: please allow the event handler to cancel an operation.
What I mean is, you send events before page changes, after it changes and before it closes. But right now, they 're just informational events, i.e. just letting us know what is going to happen.
But we should be able to say to wxFlatNotebook: "hey, do not close this page, it's not saved yet" :)
Fortunately, this is easy. Just add the following couple of lines after posting the message:
--- Code: --- // the event handler allows it?
if (!event.IsAllowed())
return;
--- End code ---
I have already added it in my copy but it will be a pain to merge these after every update...
eranif:
Ok, Will do
I am also attaching a snipt of the bottom style that I am currently working on (i created the style for 2 of the 3 styles):
I also removed the X<> buttons and configured them as styles as you guys requested
Eran
killerbot:
Eran,
Thanks, you are doing a wonderfull job !!!!!!!!
Cheers,
Lieven
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version