Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ TheIDE » U++ TheIDE: Other Features Wishlist and/or Bugs » Configuartion Flags Windows -> Missing Captions and Buttons
BugFixedDead.gif  Configuartion Flags Windows -> Missing Captions and Buttons [message #3156] Tue, 09 May 2006 13:58 Go to next message
3togo is currently offline  3togo
Messages: 83
Registered: May 2006
Location: Hong Kong SAR
Member
Configuartion Flags Windows -> Missing Captions and Buttons
  • Attachment: Image2.jpg
    (Size: 15.30KB, Downloaded 1800 times)

[Updated on: Tue, 09 May 2006 13:59]

Report message to a moderator

Re: Configuartion Flags Windows -> Missing Captions and Buttons [message #3160 is a reply to message #3156] Tue, 09 May 2006 14:31 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
3togo wrote on Tue, 09 May 2006 07:58

Configuartion Flags Windows -> Missing Captions and Buttons


This has something to do with default system font... What OS / setup is that?

Mirek
icon9.gif  Re: Configuartion Flags Windows -> Missing Captions and Buttons [message #3161 is a reply to message #3156] Tue, 09 May 2006 14:35 Go to previous messageGo to next message
3togo is currently offline  3togo
Messages: 83
Registered: May 2006
Location: Hong Kong SAR
Member
winxp

1280x1024

It seems to me that "switch button" could not wordwrap automatically.

icon10.gif  Re: Configuartion Flags Windows -> Missing Captions and Buttons [message #3162 is a reply to message #3160] Tue, 09 May 2006 15:03 Go to previous messageGo to next message
3togo is currently offline  3togo
Messages: 83
Registered: May 2006
Location: Hong Kong SAR
Member
I guess I've found where the bug comes from.

In Switch.cpp between line 202 and 211
//if(horz) {
// x += hr.Width() + sz.cy / 2;
// posx[i] = x;
//}
//else
y += linecy;
}
//if(horz)
// posx[i - 1] = sz.cx;
}
theide sets horz to true by default which contradicts with the visual display shown by the layout editor.

By the way, is there any way to set "switch button" to vertical within the layout editor.

Many thanks



3togo

[Updated on: Tue, 09 May 2006 15:05]

Report message to a moderator

Re: Configuartion Flags Windows -> Missing Captions and Buttons [message #3163 is a reply to message #3162] Tue, 09 May 2006 15:18 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
3togo wrote on Tue, 09 May 2006 09:03

I guess I've found where the bug comes from.

In Switch.cpp between line 202 and 211
//if(horz) {
// x += hr.Width() + sz.cy / 2;
// posx[i] = x;
//}
//else
y += linecy;
}
//if(horz)
// posx[i - 1] = sz.cx;
}
theide sets horz to true by default which contradicts with the visual display shown by the layout editor.

By the way, is there any way to set "switch button" to vertical within the layout editor.

Many thanks



3togo



I am afraid it is more complicated and has a lot of to do with that font....

The normal behaviour is: If it fits vertically, it is vertical. If not, it is horizontal.

With normal windows font, that dialog looks OK. However, the font on the screenshot does not seem normal MS SansSerif or Tahoma. (font on screenshot obviously has serifs).

Of course, U++ is able to deal with that as well, as it scales layouts based on current font. So far, it worked OK on any platform tested. But in this particular case, something went wrong...

What is that font?

Mirek
Re: Configuartion Flags Windows -> Missing Captions and Buttons [message #3164 is a reply to message #3163] Tue, 09 May 2006 15:33 Go to previous messageGo to next message
3togo is currently offline  3togo
Messages: 83
Registered: May 2006
Location: Hong Kong SAR
Member
Thank again for your quick reply.

Maybe you're right! Actually I am using Chinese Windows XP. In this regards, could I presume that theIDE miscalculates the width of a string of Asian Characters.

3togo
Re: Configuartion Flags Windows -> Missing Captions and Buttons [message #3165 is a reply to message #3164] Tue, 09 May 2006 15:47 Go to previous messageGo to next message
3togo is currently offline  3togo
Messages: 83
Registered: May 2006
Location: Hong Kong SAR
Member
I totally agree at what u have said. By slightly adjusting the width of Switch Boxes, all the switch buttons could align vertically without any needs to change the codes. I guess it is merely a round-off problem on calculating the width of a string of Asian characters.

Smile

  • Attachment: Image2.jpg
    (Size: 59.92KB, Downloaded 1725 times)

[Updated on: Tue, 09 May 2006 16:00]

Report message to a moderator

Re: Configuartion Flags Windows -> Missing Captions and Buttons [message #3166 is a reply to message #3165] Tue, 09 May 2006 17:32 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
It would be still interesting to trace down this problem (it should work in any case, given used font-zoom technique...)

Mirek
Re: Configuartion Flags Windows -> Missing Captions and Buttons [message #3167 is a reply to message #3166] Tue, 09 May 2006 18:03 Go to previous messageGo to next message
3togo is currently offline  3togo
Messages: 83
Registered: May 2006
Location: Hong Kong SAR
Member
Thank u for yr effort on developing such a wonderful tool. If I could be of any help, pls let me know.


When theIDE running in Gnome/Mandrake, the font size is surprisingly small. In this regards, I would like to suggest that theide should detect the screen resolution and adjust the font size used accordingly.

Smile







3togo
  • Attachment: snapshot1.png
    (Size: 1.24MB, Downloaded 1765 times)

[Updated on: Tue, 09 May 2006 19:45]

Report message to a moderator

Re: Configuartion Flags Windows -> Missing Captions and Buttons [message #3190 is a reply to message #3167] Wed, 10 May 2006 23:50 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
The actual plan is to read gnome settings (or KDE, depends on what is active).

Mirek
Re: B605-dev1 Configuartion Flags Windows -> Missing Captions and Buttons [message #3375 is a reply to message #3156] Mon, 22 May 2006 13:46 Go to previous messageGo to next message
3togo is currently offline  3togo
Messages: 83
Registered: May 2006
Location: Hong Kong SAR
Member
See attached. Buttons are still missing in Chinese WinXP.

Thanks.

Razz
  • Attachment: temp.JPG
    (Size: 13.38KB, Downloaded 1696 times)
Re: [605-dev1] Configuartion Flags Windows -> Missing Captions and Buttons [message #3378 is a reply to message #3156] Mon, 22 May 2006 15:08 Go to previous messageGo to next message
3togo is currently offline  3togo
Messages: 83
Registered: May 2006
Location: Hong Kong SAR
Member
To make the configuration Flags Windows displace everything properly, the width of label boxes have to be increased.

I seems that upp+ fail to get the actual width of "stdFont()" in Chinese WinXP.

The working layout was attached below.

3togo
  • Attachment: temp.JPG
    (Size: 59.81KB, Downloaded 1686 times)

[Updated on: Mon, 22 May 2006 15:10]

Report message to a moderator

Re: [605-dev1] Configuartion Flags Windows -> Missing Captions and Buttons [message #3384 is a reply to message #3378] Mon, 22 May 2006 22:21 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Hm, now looking at those screenshots, I think I have found the trouble...

It seems like the font height is in this case smaller than the height of switch button. That of course makes the height of Switch, after FontZoom rescaling, too small.

Interesting problem, I will have to find a way how to deal with that...

Mirek
Re: [605-dev1] Configuartion Flags Windows -> Missing Captions and Buttons [message #3395 is a reply to message #3384] Tue, 23 May 2006 12:37 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Well, I was thinking about the issue and here comes the fix:

CtrlCore/Ctrl.cpp 654:

inline void Ctrl::Csizeinit()
{
	if(Csize.cx == 0)
		Csize = ScreenInfo().GetTextSize(sZoomText);
	if(Dsize.cx == 0)
		Dsize = Size(99, 13);
	Csize.cx = max(Csize.cx, Dsize.cx);
	Csize.cy = max(Csize.cy, Dsize.cy);
}



Please, try to replace above function...

Note: There will be little appearance bug in switch button image - please ignore it for now, it is fixed as well, but fix is too scattered to post here (it will be fixed in next dev release, 5 days max Wink

Mirek
Re: [605-dev1] Configuartion Flags Windows -> Missing Captions and Buttons [message #16520 is a reply to message #3395] Sat, 21 June 2008 00:23 Go to previous message
tojocky is currently offline  tojocky
Messages: 607
Registered: April 2008
Location: UK
Contributor

Interesting situation. With Csize and Dsize We can set zooming?
If we use SetZoomSize function and pos functions with suffix Z.
It is good idea! Thanks!
Previous Topic: Dual Screen Bug
Next Topic: dependancies
Goto Forum:
  


Current Time: Sat Apr 27 00:19:57 CEST 2024

Total time taken to generate the page: 0.07406 seconds