Data Grid Column Header Problem

2010-09-05 Thread Len Morgan
 I had this problem once before but I can't find the solution to it 
now.  What's happening is I have a lot of information to show in a DG 
table (lots of columns).  In order to make it all fit, skinny columns 
like Sex and Age have been abbreviated to "S" and "A" respectively. The 
problem is that there appears to be some sort of "border" around the 
column headers so that I can only see a few dots from the middle of 
those two characters in the header making them unreadable.


I tried changing the header margins but that just moves the text in the 
header up.  How can I get rid of the blank space on either side of the 
column header text?


Thanks in advance!

Len Morgan
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Data Grid Column Header Problem

2010-09-05 Thread zryip theSlug
On Sun, Sep 5, 2010 at 11:12 PM, Len Morgan  wrote:
>  I had this problem once before but I can't find the solution to it now.
>  What's happening is I have a lot of information to show in a DG table (lots
> of columns).  In order to make it all fit, skinny columns like Sex and Age
> have been abbreviated to "S" and "A" respectively. The problem is that there
> appears to be some sort of "border" around the column headers so that I can
> only see a few dots from the middle of those two characters in the header
> making them unreadable.
>
> I tried changing the header margins but that just moves the text in the
> header up.  How can I get rid of the blank space on either side of the
> column header text?
>

Len,

Could you precise:
- the width of your column?
- the margins you applied?


Thanks


Regards,
-- 
-Zryip TheSlug- wish you the best! 8)
http://www.aslugontheroad.co.cc
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Data Grid Column Header Problem

2010-09-05 Thread Len Morgan

 On 9/5/2010 4:40 PM, zryip theSlug wrote:

On Sun, Sep 5, 2010 at 11:12 PM, Len Morgan  wrote:

  I had this problem once before but I can't find the solution to it now.
  What's happening is I have a lot of information to show in a DG table (lots
of columns).  In order to make it all fit, skinny columns like Sex and Age
have been abbreviated to "S" and "A" respectively. The problem is that there
appears to be some sort of "border" around the column headers so that I can
only see a few dots from the middle of those two characters in the header
making them unreadable.

I tried changing the header margins but that just moves the text in the
header up.  How can I get rid of the blank space on either side of the
column header text?


Len,

Could you precise:
- the width of your column?
- the margins you applied?


Thanks


Regards,
As an example, the column for sex (Label = "S") is set for 30.  The 
margins were originally whatever the default is.  I changed it to 1 and 
the text rolled up.  I'm only worried about the right and left of the 
header text.  The vertical orientation is fine.


With the header text "Room" and a column width of 58, the first couple 
of columns of pixels in the "R" are cutoff.  There is more than enough 
room in the header field, it's just adding space on either side.


len
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Data Grid Column Header Problem

2010-09-05 Thread zryip theSlug
On Sun, Sep 5, 2010 at 11:45 PM, Len Morgan  wrote:
>  On 9/5/2010 4:40 PM, zryip theSlug wrote:
>>
>> On Sun, Sep 5, 2010 at 11:12 PM, Len Morgan  wrote:
>>>
>>>  I had this problem once before but I can't find the solution to it now.
>>>  What's happening is I have a lot of information to show in a DG table
>>> (lots
>>> of columns).  In order to make it all fit, skinny columns like Sex and
>>> Age
>>> have been abbreviated to "S" and "A" respectively. The problem is that
>>> there
>>> appears to be some sort of "border" around the column headers so that I
>>> can
>>> only see a few dots from the middle of those two characters in the header
>>> making them unreadable.
>>>
>>> I tried changing the header margins but that just moves the text in the
>>> header up.  How can I get rid of the blank space on either side of the
>>> column header text?
>>>
>> Len,
>>
>> Could you precise:
>> - the width of your column?
>> - the margins you applied?
>>
>>
>> Thanks
>>
>>
>> Regards,
>
> As an example, the column for sex (Label = "S") is set for 30.  The margins
> were originally whatever the default is.  I changed it to 1 and the text
> rolled up.  I'm only worried about the right and left of the header text.
>  The vertical orientation is fine.
>
> With the header text "Room" and a column width of 58, the first couple of
> columns of pixels in the "R" are cutoff.  There is more than enough room in
> the header field, it's just adding space on either side.
>

Len,

The ideal min size is 40.
I gave your problem a try. It seems to me that the content of your
columns is centered. In this case, changing the margins with the
"header margins" do nothing, because the field displaying the header
title has a width of 2 pixels.

If you can give 10 more pixels for those two columns, all will be ok.
Otherwise, for now I don't see any workaround.


Regards,
-- 
-Zryip TheSlug- wish you the best! 8)
http://www.aslugontheroad.co.cc
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Data Grid Column Header Problem

2010-09-05 Thread Len Morgan



Len,

The ideal min size is 40.
I gave your problem a try. It seems to me that the content of your
columns is centered. In this case, changing the margins with the
"header margins" do nothing, because the field displaying the header
title has a width of 2 pixels.

If you can give 10 more pixels for those two columns, all will be ok.
Otherwise, for now I don't see any workaround.


Regards,


"Ideal" according to who?  Is that a Rev limitation or part of the Data 
Grid?  It seems to be awfully large.  I did expand those columns (and 
reduced the width of another to make them fit) so it's all "working" 
now.  It sure would be nice if we could lower that limit though.


len
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Data Grid Column Header Problem

2010-09-05 Thread zryip theSlug
On Mon, Sep 6, 2010 at 12:34 AM, Len Morgan  wrote:
>
>> Len,
>>
>> The ideal min size is 40.
>> I gave your problem a try. It seems to me that the content of your
>> columns is centered. In this case, changing the margins with the
>> "header margins" do nothing, because the field displaying the header
>> title has a width of 2 pixels.
>>
>> If you can give 10 more pixels for those two columns, all will be ok.
>> Otherwise, for now I don't see any workaround.
>>
>>
>> Regards,
>
> "Ideal" according to who?  Is that a Rev limitation or part of the Data
> Grid?  It seems to be awfully large.  I did expand those columns (and
> reduced the width of another to make them fit) so it's all "working" now.
>  It sure would be nice if we could lower that limit though.
>

"Ideal" according to my quick test, sorry. So I correct myself: 40
seems to be the ideal width.

Here is a workaround if you have no need to sort your two columns. You
have to define a default header behavior and change the layoutControl
handler. The header width of a datagrid seems to take care of the
width of the "sort arrow" you can have in the header in case you want
to sort a column.

on LayoutControl pControlRect
-- Position all of the controls within the header
put the loc of me into theLoc
set the margins of field 1 of me to the dgProps["header margins"]
of the dgControl of me
set the rect of graphic "Background" of me to pControlRect
set the rect of field 1 of me to pControlRect
set the left of graphic "LeftHilite" of me to item 1 of pControlRect
set the right of graphic "RightHilite" of me to item 3 of pControlRect

-- Position field and sort arrow --> Your width problem should be here
put the width of button "SortArrow" of me into theArrowWidth
set the loc of button "SortArrow" of me to item 3 of pControlRect
- (round(theArrowWidth / 2) + 5), item 2 of the loc of me
add 5 to theArrowWidth
if the textAlign of field 1 of me is "center" then
set the rect of field 1 of me to item 1 of pControlRect, item
2 of pControlRect, \
item 1 of pControlRect + ( (item 3 of pControlRect -
item 1 of pControlRect) - (theArrowWidth * 2) ), \
item 4 of pControlRect
set the loc of field 1 of me to theLoc
else
if the visible of button "SortArrow" of me then
set the rect of field 1 of me to item 1 of pControlRect,
item 2 of pControlRect, \
item 1 of pControlRect + ( (item 3 of pControlRect
- item 1 of pControlRect) - theArrowWidth ), \
item 4 of pControlRect
else
set the rect of field 1 of me to item 1 of pControlRect,
item 2 of pControlRect, \
item 1 of pControlRect + ( (item 3 of pControlRect
- item 1 of pControlRect) ), \
item 4 of pControlRect
end if
end if
end LayoutControl

The lesson to change the header behavior is here:
http://lessons.runrev.com/spaces/lessons/manuals/datagrid_tips/lessons/7351-How-Do-I-Add-Tooltips-To-Column-Headers-


HTH


Regards,
-- 
-Zryip TheSlug- wish you the best! 8)
http://www.aslugontheroad.co.cc
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Data Grid Column Header Problem

2010-09-05 Thread Mark Wieder
Len-

Sunday, September 5, 2010, 2:45:39 PM, you wrote:

> As an example, the column for sex (Label = "S") is set for 30.  The

...I thought about commenting on "column for sex" but decided against
it...

-- 
-Mark Wieder
 mwie...@ahsoftware.net

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Data Grid Column Header Problem

2010-09-05 Thread J. Landman Gay

On 9/5/10 6:50 PM, Mark Wieder wrote:

Len-

Sunday, September 5, 2010, 2:45:39 PM, you wrote:


As an example, the column for sex (Label = "S") is set for 30.  The


...I thought about commenting on "column for sex" but decided against
it...



No you didn't. ;) But I confess I wondered why they had to wait till 30.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Data Grid Column Header Problem

2010-09-06 Thread zryip theSlug
On Mon, Sep 6, 2010 at 4:28 AM, J. Landman Gay  wrote:
> On 9/5/10 6:50 PM, Mark Wieder wrote:
>>
>> Len-
>>
>> Sunday, September 5, 2010, 2:45:39 PM, you wrote:
>>
>>> As an example, the column for sex (Label = "S") is set for 30.  The
>>
>> ...I thought about commenting on "column for sex" but decided against
>> it...
>>
>
> No you didn't. ;) But I confess I wondered why they had to wait till 30.

Why I'm hesitant now to confirm that the ideal min size should be 40?

-- 
-Zryip TheSlug- wish you the best! 8)
http://www.aslugontheroad.co.cc
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Data Grid Column Header Problem

2010-09-06 Thread Len Morgan
 With this group it's sometimes hard to determine who is kidding and 
who is just confused (I tend to be the later most of the time).  Just to 
clarify, the "... is set for 30 ..." refers to the size (of the COLUMN 
Mark) that I want.  This county jail holds both male and female inmates 
so I need to let them know which is which (you can't always tell from 
the mug shots!) so they know who to put where.  The inmates might like 
the mixup but I'm sure the authorities might object.  By the way, I also 
turn a field a nice sky blue for males and pretty pink for girls.  I 
needed the "S" field in case they get a color blind officer.


Thanks for the help though!

len


On 9/6/2010 4:24 AM, zryip theSlug wrote:

On Mon, Sep 6, 2010 at 4:28 AM, J. Landman Gay  wrote:

On 9/5/10 6:50 PM, Mark Wieder wrote:

Len-

Sunday, September 5, 2010, 2:45:39 PM, you wrote:


As an example, the column for sex (Label = "S") is set for 30.  The

...I thought about commenting on "column for sex" but decided against
it...


No you didn't. ;) But I confess I wondered why they had to wait till 30.

Why I'm hesitant now to confirm that the ideal min size should be 40?



___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Data Grid Column Header Problem

2010-09-06 Thread Malte Pfaff-Brill
Hi Len,

> I needed the "S" field in case they get a color blind officer.

I can wholeheartedly recommend this to make apps save to use for color impaired 
people:

http://colororacle.cartography.ch/

Used it all the time when testing how the games would look for them.

Cheers,

Malte

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Data Grid Column Header Problem

2010-09-06 Thread Mark Wieder
Malte-

Monday, September 6, 2010, 10:43:22 AM, you wrote:

> I can wholeheartedly recommend this to make apps save to use for color 
> impaired people:

What a great link! Thanks!

-- 
-Mark Wieder
 mwie...@ahsoftware.net

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution