Jump to content


Photo

imageindex for TnxTabSheet


  • Please log in to reply
15 replies to this topic

#1 emailaya

emailaya

    Master Member

  • Members
  • PipPipPipPipPip
  • 984 posts

Posted 06 March 2007 - 10:06 PM

hi
when settings an imageindex value to a tab
the caption is shown over it and is not readable
see attached

Attached Files



#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,289 posts
  • Gender:Male

Posted 10 March 2007 - 03:54 AM

Hello Emailaya,

Please send me this sample project. It seems that for me all work fine (maybe I have made something wrong). Also, don't forget to set DisplayMode to tdImageIndex.

regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#3 emailaya

emailaya

    Master Member

  • Members
  • PipPipPipPipPip
  • 984 posts

Posted 10 March 2007 - 11:56 AM

the text u see there
is changed in runtime
this is what i did:
procedure txtBlahChange(sender: tobject);
var tmp: widestring;
Wid: integer;
begin
tmp := txtBlah.Text;
if tmp = '' then
tmp := '*new*';
Wid := Canvas.TextWidth(tmp) + 40;
if Wid > 200 then
Wid := 200;
TnxTabSheet(Self.Parent).TabWidth := wid;
TnxTabSheet(Self.Parent).Caption := tmp;
end;
now simply type sonething in txtBlah component

#4 emailaya

emailaya

    Master Member

  • Members
  • PipPipPipPipPip
  • 984 posts

Posted 31 March 2007 - 08:35 PM

what about this issue?

#5 emailaya

emailaya

    Master Member

  • Members
  • PipPipPipPipPip
  • 984 posts

Posted 22 April 2007 - 08:13 PM

anything new with this issue?

#6 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,289 posts
  • Gender:Male

Posted 17 June 2007 - 01:54 AM

Hello Emailaya,

You may try to set TabWidth to 0 and all will be automatically resized.

Also, in your code I think that when you have set tab width, you didn't calculate glyph width too.

regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#7 emailaya

emailaya

    Master Member

  • Members
  • PipPipPipPipPip
  • 984 posts

Posted 17 June 2007 - 10:11 PM

you are almost right
notice the code:
Wid := Canvas.TextWidth(tmp) + 40;
if Wid > 200 then
Wid := 200;

i want the tab to be no more than 200px
the problem begins when the tab reaches this width
(until then, the glyph and text are placed correctly)
when the tab stops expanding, the text begins to go over the icon

#8 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,289 posts
  • Gender:Male

Posted 17 June 2007 - 10:18 PM

Hello Emailaya,

This happen because text is centered inside tab. This is because when you click on tab text become bold, but it is still centered.

Maybe something else may be done, for example adding property TabMaxWidth.

ps. I am working on other issues of PageControl, it currently goin well.

regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#9 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,289 posts
  • Gender:Male

Posted 18 June 2007 - 03:59 AM

Hello Emailaya,

If you want, I will send you latest build of NxPageControl to test it before new release is out.

regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#10 emailaya

emailaya

    Master Member

  • Members
  • PipPipPipPipPip
  • 984 posts

Posted 18 June 2007 - 09:47 AM

hi
u mean to test the tabmaxwidth? (good idea about this property)
u can send me only this file if u want
i will try to test it before the release
but dont postponed it if i wont
email to the email i registered with

#11 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,289 posts
  • Gender:Male

Posted 18 June 2007 - 11:05 AM

Hello Emailaya,

Not yet this property added, but some other features like automatic scroll to tab when become active and click problems.

I will add now MaxTabWidth ans send you.

regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#12 emailaya

emailaya

    Master Member

  • Members
  • PipPipPipPipPip
  • 984 posts

Posted 01 August 2007 - 11:39 PM

hi
im using MaxTabWidth and its working ok
the icon problem (imageindex) is still a bit of a problem
not critical but should be fixed
see attached (both bold and normal)

notice that in normal, the text also overrides a bit, the icon
though its not so noticeable bcoz of the letter in hebrew
(if u look closely, u will see a very thin green line close to the icon)

Attached Files



#13 emailaya

emailaya

    Master Member

  • Members
  • PipPipPipPipPip
  • 984 posts

Posted 04 August 2007 - 05:21 PM

anything new about this issue?

#14 emailaya

emailaya

    Master Member

  • Members
  • PipPipPipPipPip
  • 984 posts

Posted 07 August 2007 - 04:41 PM

well?
anything new with this issue?

#15 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,289 posts
  • Gender:Male

Posted 07 August 2007 - 04:43 PM

Hello Emailaya,

I am working on it, I will notify you when it is done.

Best regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#16 emailaya

emailaya

    Master Member

  • Members
  • PipPipPipPipPip
  • 984 posts

Posted 07 August 2007 - 05:17 PM

gr8!
thanks




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users