Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: Ceniza on January 02, 2006, 06:45:34 am

Title: SVN 1642
Post by: Ceniza on January 02, 2006, 06:45:34 am
Well, I just tried compiling that one, which already includes wxAUI and UNICODE by default, and got a serious problem.

With the default plugins it shows a message box with title "E", message "A" and the error icon.

If I remove all the plugins and try again, Code::Blocks starts, shows part of it and then crashes. Since I disable -g I don't have a useful report.

Now I'm compiling it in ANSI mode and... it works!

The toolbar in 32x32 looks awful though. It looked better when I tried the wxAUI branch a few days ago. It's like the icons are taking even more space now. A few icons are lost too.
Title: Re: SVN 1642
Post by: 280Z28 on January 02, 2006, 07:09:18 am
Have you tried a rebuild all?

I haven't had any such problems with the Unicode build. I'm using the CodeBlocks-NewBuild.cbp project file with no modifications at all.
Title: Re: SVN 1642
Post by: Ceniza on January 02, 2006, 07:25:20 am
I always do "rebuild all", so the problem must be somewhere else.
Title: Re: SVN 1642
Post by: 280Z28 on January 02, 2006, 07:26:53 am
can you build with -g ?
Title: Re: SVN 1642
Post by: mandrav on January 02, 2006, 09:35:00 am
@Ceniza: have you run update.bat? You should do it every time resources change (*.xrc), as in this case.
Title: Re: SVN 1642
Post by: Ceniza on January 02, 2006, 09:36:12 am
I just checked out version 1642 again (instead of update), compiled it with default settings and it's starting now.

The toolbar problem is still there though.

[edit]
This is what I mean.
[/edit]

[attachment deleted by admin]
Title: Re: SVN 1642
Post by: mandrav on January 02, 2006, 09:52:20 am
Yes, you have to be a little patient. I will fix these toolbars.
Title: Re: SVN 1642
Post by: killerbot on January 02, 2006, 10:48:05 am
Other thing I noticed on the toolbars.
The first time I started CB, build and debug toolbar were below the other toolbars.
I dragged them to the right of the other toolbars (so eveything on one line), but CB does not remember it, it seems, since at next startup of Cb they were again at their original position.

Lieven
Title: Re: SVN 1642
Post by: takeshimiya on January 02, 2006, 10:51:16 am
The first time I started CB, build and debug toolbar were below the other toolbars.
Happens here.

I dragged them to the right of the other toolbars (so eveything on one line), but CB does not remember it, it seems, since at next startup of Cb they were again at their original position.
Doesn't happen here.
Title: Re: SVN 1642
Post by: mandrav on January 02, 2006, 11:22:59 am
Other thing I noticed on the toolbars.
The first time I started CB, build and debug toolbar were below the other toolbars.

This is done on purpose.

I dragged them to the right of the other toolbars (so eveything on one line), but CB does not remember it, it seems, since at next startup of Cb they were again at their original position.

Because C::B now supports different layouts which you can save and switch among, it no longer auto-saves your layout on exit. You must explicitely save it with "View->Layouts->Save current". If you use the name of an existing layout, it is updated (that's why it proposes the last used layout).
It also remembers which layout was last used and it activates it on startup.
Title: Re: SVN 1642
Post by: takeshimiya on January 02, 2006, 11:31:41 am
Mm, what about adding again auto-saving along with a "Last auto-saved layout"?

Then you'll have @the menu Layouts:
Default
Last auto-saved
User-layout#1
User-layout#2
---
Save layout


Another important thing is that Default, Last auto-saved, ... will be in an option-menu (a checkmark indicates the current being used).
Title: Re: SVN 1642
Post by: mandrav on January 02, 2006, 11:51:54 am
Toolbars are fixed in r1644. You may need to delete the existing layouts from your conf to fix this (yes, I know I plan to add this functionality).
Title: Re: SVN 1642
Post by: takeshimiya on January 02, 2006, 12:39:14 pm
Toolbars are fixed in r1644.

16x16 toolbars fixed. :D
32x32 still screwed up. :(

[attachment deleted by admin]
Title: Re: SVN 1642
Post by: killerbot on January 02, 2006, 12:42:55 pm
Toolbars are fixed in r1644. You may need to delete the existing layouts from your conf to fix this (yes, I know I plan to add this functionality).
Which parts are that ? <LAYOUT> crc ..  ? or others ??
Title: Re: SVN 1642
Post by: mandrav on January 02, 2006, 12:50:18 pm
32x32 still screwed up. :(

No, they are not. Did you delete your existing layouts?

Which parts are that ? <LAYOUT> crc ..  ? or others ??
<LAYOUT> is obsolete now (used by wxDockit). Feel free to delete it.
The views are saved as <view1>, <view2>, etc (in the same spot as <LAYOUT>).
Title: Re: SVN 1642
Post by: mandrav on January 02, 2006, 12:53:03 pm
32x32 still screwed up. :(

No, they are not. Did you delete your existing layouts?

Wait. I know what happens. The toolbar size has been saved as 16x16 when you first run it. Then you changed the size, restarted and bam! Broken. If you delete the layout views again it will be ok.
I will have to find a fix for this...
Title: Re: SVN 1642
Post by: takeshimiya on January 02, 2006, 01:03:19 pm
No, they are not. Did you delete your existing layouts?
Yes. :)

Wait. I know what happens. The toolbar size has been saved as 16x16 when you first run it. Then you changed the size, restarted and bam! Broken. If you delete the layout views again it will be ok.
Exactly what happened.

I will have to find a fix for this...
:)
Title: Re: SVN 1642
Post by: killerbot on January 02, 2006, 03:08:24 pm
just below toolbars you can see the stuff from another window that recently was on top of CB.
In the attached screenshot, you can see some black with some white spots in it. That's the remainder from my console where I ran update.bat.

Lieven

[attachment deleted by admin]
Title: Re: SVN 1642
Post by: 280Z28 on January 02, 2006, 03:24:53 pm
Weird, mine (also 1644) looks exactly like you'd expect it to. You did a rebuild right?
Title: Re: SVN 1642
Post by: killerbot on January 02, 2006, 03:28:30 pm
yes,
I did (already 8 times today ;-) ) , cleanup conf also
Title: Re: SVN 1642
Post by: 280Z28 on January 02, 2006, 03:31:46 pm
Try using the TortoiseSVN Check for Modifications feature to see if you have some changes in src/main.cpp that are conflicting with the changes that were made in rev1644 to fix the problem?

I'm really just tossing ideas out here since I'm not seeing the problem on my end. :)
Title: Re: SVN 1642
Post by: killerbot on January 02, 2006, 03:35:08 pm
nope
Title: Re: SVN 1642
Post by: 280Z28 on January 02, 2006, 03:36:59 pm
I'm using the unicode build, are you?

Have you tried deleting default.conf? I don't think that would make a difference but maybe worth a shot? Any changes to the xrc files or to manager.cpp/h?
Title: Re: SVN 1642
Post by: killerbot on January 02, 2006, 03:40:56 pm
did not delete default.conf, but the views stuff in it was deleted, will try that once more,
unicde it is, ansi is bye bye
Title: Re: SVN 1642
Post by: tiwag on January 02, 2006, 03:51:22 pm
just below toolbars you can see the stuff from another window that recently was ...
have the same issue here with my windoze build
Title: Re: SVN 1642
Post by: Ceniza on January 02, 2006, 07:29:10 pm
Just build 1648, deleted <layout>, ran Code::Blocks, and it looks lovely :)

Thanks master mandrav.
Title: Re: SVN 1642
Post by: Pecan on January 02, 2006, 08:36:06 pm
@killerbot

Lieven,

How did you get your message tabs to dock at the bottom of
the message window??

thanks
pecan
Title: Re: SVN 1642
Post by: mandrav on January 02, 2006, 08:38:39 pm
@killerbot

Lieven,

How did you get your message tabs to dock at the bottom of
the message window??

thanks
pecan


They appear at the bottom in non-XP systems (i.e. without visual themes)...
Title: Re: SVN 1642
Post by: killerbot on January 02, 2006, 08:43:49 pm
they hve always been there (I think), see Yiannis his explanation.
Title: Re: SVN 1642
Post by: killerbot on January 02, 2006, 08:48:05 pm
other qustion : rev 1648, and now I am ar rev 1650 but i don't see any files changes in my svn window ?
Am I going blind ?
Title: Re: SVN 1642
Post by: Ceniza on January 02, 2006, 08:52:28 pm
1649 and 1650 just added Nightly builds to the web site :)
Title: Re: SVN 1642
Post by: killerbot on January 02, 2006, 08:59:25 pm
LOL
Title: Re: SVN 1642
Post by: mandrav on January 02, 2006, 09:10:39 pm
other qustion : rev 1648, and now I am ar rev 1650 but i don't see any files changes in my svn window ?
Am I going blind ?

No, changes are in the website's code ;) (yes, it's under svn too)
Title: Re: SVN 1642
Post by: Pecan on January 02, 2006, 09:22:10 pm

How did you get your message tabs to dock at the bottom of
the message window??

They appear at the bottom in non-XP systems (i.e. without visual themes)...

I turned off manage plugins->WindowsXPlookNFeel
then deleted default.conf
but I guess that's not enough.
What else do I do to get the tabs at the bottom of the
message window?

thanks
pecan
Title: Re: SVN 1642
Post by: killerbot on January 02, 2006, 09:24:23 pm
In my linux, they are also at the bottom.
How do they look like on your system (screenshot) ?
Title: Re: SVN 1642
Post by: mandrav on January 02, 2006, 09:25:53 pm
I turned off manage plugins->WindowsXPlookNFeel
then deleted default.conf
but I guess that's not enough.
What else do I do to get the tabs at the bottom of the
message window?

Lol :D

That's not what I meant, sorry :D
If you 're on WinXP and have visual styles on (it's the default), your tabs will always be on top.
If you want to disable the visual styles, right-click your desktop, select Properties and in Themes select "Windows Classic".
Title: Re: SVN 1642
Post by: killerbot on January 02, 2006, 09:33:04 pm
I already had an idea, it has something to do with that.

Yes, that's true : I uwe windows classic, don't like the awfull colors of XP, not even ,entioning that ugly background.

And if I am not mistaken, less cpu needed in windows classic look (oh, don't forgt the classic menu ;-)  )
Title: Re: SVN 1642
Post by: Ceniza on January 02, 2006, 09:38:12 pm
Hmmm, if we're going to move to wxFlatNotebook, tabs would always be at top. If tabs at bottom is implemented we could then make it user set-able :)
Title: Re: SVN 1642
Post by: Pecan on January 02, 2006, 10:20:26 pm
I turned off manage plugins->WindowsXPlookNFeel
then deleted default.conf
but I guess that's not enough.
What else do I do to get the tabs at the bottom of the
message window?

Lol :D

That's not what I meant, sorry :D
If you 're on WinXP and have visual styles on (it's the default), your tabs will always be on top.
If you want to disable the visual styles, right-click your desktop, select Properties and in Themes select "Windows Classic".

Yuk!! That was NOT pretty. Reminds me of Windows 2 that
came on 15 5.25 inch floppies.

guess I'll live with top tabs.

thanks
pecan
Title: Re: SVN 1642
Post by: grv575 on January 02, 2006, 10:37:33 pm
Other thing I noticed on the toolbars.
The first time I started CB, build and debug toolbar were below the other toolbars.

This is done on purpose.

I dragged them to the right of the other toolbars (so eveything on one line), but CB does not remember it, it seems, since at next startup of Cb they were again at their original position.

Because C::B now supports different layouts which you can save and switch among, it no longer auto-saves your layout on exit. You must explicitely save it with "View->Layouts->Save current". If you use the name of an existing layout, it is updated (that's why it proposes the last used layout).
It also remembers which layout was last used and it activates it on startup.

Could this be added to the tip of the day or somewhere visible?  I just filed a bug report for this... couldn't figure this out until I saw this post.
Title: Re: SVN 1642
Post by: yop on January 07, 2006, 09:43:32 am
I can also confirm that the toolbar border does not update properly (see killerbot's remark (http://forums.codeblocks.org/index.php?topic=1819.msg13720#msg13720)):
Version 1.0 revision 1665 (gcc 3.4.2 Windows/unicode, build: Jan 6 2006 22:30:17) - mingw-gcc 3.4.2
Yiannis suggested that:
This is caused by some incompatibilities in the layout saved in the configuration file.
Try playing with the layout options in "View->Layouts", i.e. create a new layout, switch to it then delete the original with the problem.
I'll try this when I return from work and let you know

...and a few hours later: I just saved the default layout and OK  :D