Author Topic: BOUNTY: Notebook class with "close" button at the right  (Read 137215 times)

grv575

  • Guest
Re: BOUNTY: Notebook class with "close" button at the right
« Reply #120 on: January 05, 2006, 12:58:45 am »
BUT still problem :
Compiling: src\resources\resources.rc
src\resources\resources.rc:9:24: wx/msw/wx.rc: No such file or directory

Try adding $(#WX.INCLUDE) in src target resource dirs.

I saw this is already specified on the global level of the cbp file, nevertheless trying it out

[EDIT] : no luck  :( :(
Why why why ??  Heeeeeeeeeeeeeeeeeeelp

this was on my laptop, on my pc it builds (so a nightly build will come up)

This ansi or unicode?  Should be mswu for unicode...

Offline AkiraDev

  • Multiple posting newcomer
  • *
  • Posts: 71
Re: BOUNTY: Notebook class with "close" button at the right
« Reply #121 on: January 05, 2006, 01:47:32 am »
BUT still problem :
Compiling: src\resources\resources.rc
src\resources\resources.rc:9:24: wx/msw/wx.rc: No such file or directory

Try adding $(#WX.INCLUDE) in src target resource dirs.

I saw this is already specified on the global level of the cbp file, nevertheless trying it out

[EDIT] : no luck  :( :(
Why why why ??  Heeeeeeeeeeeeeeeeeeelp

this was on my laptop, on my pc it builds (so a nightly build will come up)

This ansi or unicode?  Should be mswu for unicode...

Hi!

If nothing else helps, I'm afraid the only solution will be wiping out wxWidgets from your hard drive and recompiling... It was the only way I could build the latest SVN in my laptop last time.

EDIT: Found it!
Pardon my sillyness, there's just one thing missing from the CodeBlocks-NewBuild project, you only need to manually add "resources" to the resources directory in the directories tab under build options. Then it should compile.
« Last Edit: January 05, 2006, 01:56:32 am by AkiraDev »

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5491
Re: BOUNTY: Notebook class with "close" button at the right
« Reply #122 on: January 05, 2006, 07:24:59 am »
Quote
This ansi or unicode?  Should be mswu for unicode...
not for the resource, it's to be seen as a regular source file

Offline tiwag

  • Developer
  • Lives here!
  • *****
  • Posts: 1196
  • sailing away ...
    • tiwag.cb
Re: BOUNTY: Notebook class with "close" button at the right
« Reply #123 on: January 05, 2006, 07:42:09 am »
tiwag: I was just going to ask you if you also got Disassembly as the title for the Opened files list, but I already see it in your screenshot :P

This has to do with the layout having been saved with a previous version which didn't have the "open files list" as a docking window.
Just use the new "View->Layouts->Delete current" ;) (which I forgot to mention in the log message).

there is a problem if you have saved the Code::Blocks default layout already in the past - then you can't get rid of this by reverting to this standard Layout - better to have this Code::Blocks default layout really hard-coded which always matches to the actual version.

another problem : when i wanted to correct this in my default.conf file i was astonished  :shock: :shock: :shock:
there are no more line-endings and tabs - please insert these as it was in the past - impossible to edit by hand otherwise.
[edit] solved: had to use a xml file editor [/edit]
« Last Edit: January 05, 2006, 07:47:47 am by tiwag »

Offline Ceniza

  • Developer
  • Lives here!
  • *****
  • Posts: 1441
    • CenizaSOFT
Re: BOUNTY: Notebook class with "close" button at the right
« Reply #124 on: January 05, 2006, 07:50:58 am »
I can confirm that. default.conf is a one line mess now.

Offline tiwag

  • Developer
  • Lives here!
  • *****
  • Posts: 1196
  • sailing away ...
    • tiwag.cb
Re: BOUNTY: Notebook class with "close" button at the right
« Reply #125 on: January 05, 2006, 08:09:01 am »
I can confirm that. default.conf is a one line mess now.
anyhow - it's more save to use a xml editor.

the actual *.conf file structure seems to be xml conformant
- at least XML-Notepad accepted the file for opening and editing
( i didn't try others, which always complained in the past about nonconformant xml file format and therefore rejected editing )

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5491
Re: BOUNTY: Notebook class with "close" button at the right
« Reply #126 on: January 05, 2006, 09:09:35 am »
would be nice if this becomes back multilined, text editors are nice also (if want to copy stuff from it)  ;-)

Offline tiwag

  • Developer
  • Lives here!
  • *****
  • Posts: 1196
  • sailing away ...
    • tiwag.cb
Re: BOUNTY: Notebook class with "close" button at the right
« Reply #127 on: January 05, 2006, 09:22:05 am »
would be nice if this becomes back multilined, text editors are nice also (if want to copy stuff from it)  ;-)

workaround:

open *.conf with XML-Notepad
http://www.snapfiles.com/get/xmlnotepad.html

save as ..



Offline kkez

  • Almost regular
  • **
  • Posts: 153
    • WinapiZone
Re: BOUNTY: Notebook class with "close" button at the right
« Reply #128 on: January 05, 2006, 03:39:06 pm »
There's something evil with the behaviour when you open a file when there's one opened already: the new tab will be added last but showed first, hiding all others.

:(
« Last Edit: January 05, 2006, 03:40:46 pm by kkez »

Offline eranif

  • Regular
  • ***
  • Posts: 256
Re: BOUNTY: Notebook class with "close" button at the right
« Reply #129 on: January 05, 2006, 08:54:31 pm »
Hi,

I fixed the following bugs:

- No scroll was possible if only one tab was drawn
- A crash when no tabs can be drawn (but the book contains pages)
- Adding new page would hide the other tabs (the evil bug)

All the sources are now updated at sourceforge, so you can download them from CVS directly.
The zip file (in the download page) does not contain these fixes - so you should use the CVS files

For anonymous login to the CVS run the following command:
cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/wxflatnotebook login

 - When a request for the password appears, simply hit 'Return'

And then checkout the module by running the following command:
cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/wxflatnotebook co -P contrib

the project at sourceforge can be found at:
http://sourceforge.net/projects/wxflatnotebook

Eran

Offline rickg22

  • Lives here!
  • ****
  • Posts: 2283
Re: BOUNTY: Notebook class with "close" button at the right
« Reply #130 on: January 05, 2006, 08:57:19 pm »
cool! :D I'm glad you got it on Sourceforge! :)

Offline Ceniza

  • Developer
  • Lives here!
  • *****
  • Posts: 1441
    • CenizaSOFT
Re: BOUNTY: Notebook class with "close" button at the right
« Reply #131 on: January 05, 2006, 09:25:50 pm »
CVS and bugfixes... nice :)

Did you apply mandrav's patches too?

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: BOUNTY: Notebook class with "close" button at the right
« Reply #132 on: January 05, 2006, 10:00:00 pm »
CVS and bugfixes... nice :)

Did you apply mandrav's patches too?

No he hasn't.
No problem though, as long as it is kept under source control (which it is now). I have now added in SVN the patch file to bring wxFlatNotebook CVS (current) to C::B's copy.
Haven't committed yet though (converting MessageManager).

@eran:
When I commit the changes, you can take a look at the patch. I believe three fixes there will interest you ;)
One fix is, when setting selection, not to display the selected tab as first one.
The second is to call Reparent() in AddPage(). If you don't do it, you don't acquire ownership of the added page and this leads to many bad things...
Finally, I have added a int GetPageIndex(Window* page) to acquire the page index for a page. Now that you have implemented dragging tabs around, there is no other way to know the index of a page ;)
Be patient!
This bug will be fixed soon...

Offline Ceniza

  • Developer
  • Lives here!
  • *****
  • Posts: 1441
    • CenizaSOFT
Re: BOUNTY: Notebook class with "close" button at the right
« Reply #133 on: January 05, 2006, 10:08:19 pm »
Quote from: mandrav's post
« Reply #132 on: Today at 04:00:00 PM »

Quote from: mandrav
... converting MessageManager ...

Only the Management ones left, right?

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: BOUNTY: Notebook class with "close" button at the right
« Reply #134 on: January 05, 2006, 10:23:16 pm »
Only the Management ones left, right?

Right.
Be patient!
This bug will be fixed soon...