[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
tabbedline vs. tabbedpane  XML
Forum Index -> Development
Author Message
krinninger

Power User

Joined: 17/11/2008 21:19:41
Messages: 567
Offline

I am wondering if it is possible to achieve such an effect as seen in scribbled example.

Its an Tabbedpane with an line that ends X- Pixels after the last tab.

So my first idea was to switch to t:tabbedline and t:tabbedlinetab, so i can add an control with bgpaint=line.... after tabbedline component.
This would be possible. But do i have any chance to get tabbedline look like tabbedpane? i know i can set bgpaints for different states but with bgpaint i don't get it to look like tabbedpane....

does anybody has had the same problem and achived tabbedline look like tabbedpane?
[Thumb - tabbed.png]
 Filename tabbed.png [Disk] Download
 Description example
 Filesize 3 Kbytes
 Downloaded:  474 time(s)

CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5523
Offline

...we had to try this out immediately, see attached screenshot...

The XML layout is:
Code:
 <t:pane id="g_3" width="100%">
 	<t:row id="g_4">
 		<t:tabbedline id="g_5"
 			bgpaintdefault="roundedborder(0,0,100%,100,10,10,#00000030,1)"
 			bgpaintrollover="roundedborder(0,0,100%,100,10,10,#00000030,1)"
 			bgpaintselected="roundedrectangle(0,0,100%,100,10,10,#FFFFFF);roundedborder(0,0,100%,100,10,10,#00000050,1)"
 			border="bottom:1;color:#00000030" foregrounddefault="#00000080"
 			foregroundselected="#000000" width="100%">
 			<t:tabbedlinetab id="g_6" text="tab" />
 			<t:tabbedlinetab id="g_7" text="tab" />
 			<t:tabbedlinetab id="g_8" text="tab" />
 		</t:tabbedline>
 	</t:row>
 	<t:row id="g_9">
 		<t:pane id="g_10" background="#FFFFFF"
 			border="left:1;top:0;right:1;bottom:1;color:#00000030"
 			height="100" width="100%">
 			<t:row id="g_11" />
 		</t:pane>
 	</t:row>
 </t:pane>
 


...to be honest, there is only one thing that you cannot do at the moment: setting a BORDER with TABBEDLINE. This attribute we just added (as well as a BGPAINT for TABBEDLINE which is not used in the example). It is available with next update.


Björn
[Thumb - tabbedline.png]
 Filename tabbedline.png [Disk] Download
 Description
 Filesize 2 Kbytes
 Downloaded:  478 time(s)


Björn Müller, CaptainCasa GmbH
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5523
Offline

...and one remark, there is one "trick"...:

Code:
 roundedborder(0,0,100%,100,10,10,#00000030,1)
 


Because the control is only "some pixels" high (definitely below 100), the rounded border is drawn just with its top part, the bottom part is rendered into invisible area.

Björn

Björn Müller, CaptainCasa GmbH
krinninger

Power User

Joined: 17/11/2008 21:19:41
Messages: 567
Offline

the "trick" is a good idea, i'll test it, thanks.

another issue is the selector icon on the right. would it be possible to disable it by some attribute or only render it if there are more tabs than free space to display them?
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5523
Offline

..."nothing is impossible"...

Currently I would like to postpone this issue to a time, when "nothing is required" anymore. ;-)

Björn

Björn Müller, CaptainCasa GmbH
heyl

Power User

Joined: 10/01/2008 09:41:55
Messages: 267
Location: Ettlingen
Offline

Hello everybody,

will BGPAINT be available for a TABBEDLINETAB also?

I would really need it urgently...

Kind regards
Frauke
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5523
Offline

Hi,

the BGPAINT of the TABBEDLINETAB is driven by the TABBEDLINE-parent. There for each status (default, selected, ...) there is a corresponding BGPAINT.

...or do I misunderstand something?

Regards, Björn

Björn Müller, CaptainCasa GmbH
heyl

Power User

Joined: 10/01/2008 09:41:55
Messages: 267
Location: Ettlingen
Offline

Hi Björn,

yes, we already use the parent's BGPAINT for color rendering, etc.

But I would like to have a special (additional) BGPAINT just for one of the TABs (to display some kind of status information).


Frauke
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5523
Offline

...got it!
Yes, we can add this short term.

Regards, Björn

Björn Müller, CaptainCasa GmbH
heyl

Power User

Joined: 10/01/2008 09:41:55
Messages: 267
Location: Ettlingen
Offline

That's great, thank you!


Best regards
Frauke
mstoyanova

Power User

Joined: 26/09/2019 07:10:15
Messages: 48
Offline

Sorry, wrong thread
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team