RE: Listbox question

2017-10-19 Thread Timothy Penner via 4D_Tech
> In the same layout, i use the settings for other listobox object and work.
> Only for one listbox the settings not work..

Does deleting and recreating the list box help?

If not, what about duplicating one of the working list boxes and then modifying 
the properties of the duplicated one to fit your needs?

-Tim



**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Listbox question

2017-10-19 Thread stardata.info via 4D_Tech

Nigel,

Thank for suggestions.

In the same layout, i use the settings for other listobox object and work.
Only for one listbox the settings not work..


Thanks
/Ferdinando/

Il 19/10/2017 19:17, 4d_tech-requ...@lists.4d.com ha scritto:

Message: 3
Date: Thu, 19 Oct 2017 11:14:08 +0100
From: Nigel Greenlee<nigel.green...@me.com>
To: 4D iNug Technical<4d_tech@lists.4d.com>
Subject: Re: Listbox question
Message-ID:<47621396-d270-499f-b63f-fb1a71568...@me.com>
Content-Type: text/plain;   charset=us-ascii

Ferdinando

I want to share with you how i manage listbox scroll bars

1) In the on load section of the form i call a wrapper method with pointer to 
the list box area(i have never updated these to use the object name but that 
should really be done).

LB_SetScrollBar (->SCRIPTS_lB_Scripts;-2;-2)  the -2 here sets them to visible 
if i want them invisible it is -3 -3




I have put the code for that method 
here.https://www.dropbox.com/s/j6fmfrmt954ue8c/LbSetScroll.txt?dl=0

This is a nice method-i (originally) wrote(with others) when we moved from AL 
many years ago. you can use it to hide/swap/show vertical or horizontal or set 
the scroll position


2) in the form resize i call another bit of code
LB_ShowHideScrollonResize(->SCRIPTS_lB_Scripts)

I have put the code for that method 
here.https://www.dropbox.com/s/kfjyfp8i3uw02wm/LB_ShowHideScrollonResize.txt?dl=0

This method works out if the scroll bars need to be displayed(based on the 
column widths and the number of rows and the size of the listbox area-It calls 
the first method))




Hope this is useful to someone


Nigel Greenlee
(This gun is for hire..available for tackling any 4D job anywhere)


**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Listbox question

2017-10-19 Thread Nigel Greenlee via 4D_Tech
Ferdinando

I want to share with you how i manage listbox scroll bars

1) In the on load section of the form i call a wrapper method with pointer to 
the list box area(i have never updated these to use the object name but that 
should really be done).

LB_SetScrollBar (->SCRIPTS_lB_Scripts;-2;-2)  the -2 here sets them to visible 
if i want them invisible it is -3 -3




I have put the code for that method here. 
https://www.dropbox.com/s/j6fmfrmt954ue8c/LbSetScroll.txt?dl=0

This is a nice method-i (originally) wrote(with others) when we moved from AL 
many years ago. you can use it to hide/swap/show vertical or horizontal or set 
the scroll position


2) in the form resize i call another bit of code
LB_ShowHideScrollonResize(->SCRIPTS_lB_Scripts)

I have put the code for that method here. 
https://www.dropbox.com/s/kfjyfp8i3uw02wm/LB_ShowHideScrollonResize.txt?dl=0

This method works out if the scroll bars need to be displayed(based on the 
column widths and the number of rows and the size of the listbox area-It calls 
the first method))




Hope this is useful to someone


Nigel Greenlee
(This gun is for hire..available for tackling any 4D job anywhere)







> On 18 Oct 2017, at 17:14, stardata.info via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> Hi All,
> 
> I use 4D V15.4 on windows.
> In one layout i use the listbox object, and in settings area i have setting 
> the scrol bar like automatic.
> I have only one row in this list box, but 4D show the same the scroll bar.
> 
> Someone know the reason?
> 
> Thanks
> Ferdinando
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **

**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Listbox question

2017-10-18 Thread Keisuke Miyako via 4D_Tech
perhaps the right most column is too wide.

> 2017/10/19 1:14、stardata.info via 4D_Tech <4d_tech@lists.4d.com> のメール:
> Someone know the reason?




**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Listbox question

2017-10-18 Thread stardata.info via 4D_Tech

Hi All,

I use 4D V15.4 on windows.
In one layout i use the listbox object, and in settings area i have 
setting the scrol bar like automatic.

I have only one row in this list box, but 4D show the same the scroll bar.

Someone know the reason?

Thanks
Ferdinando
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**