Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

To enlarge the dropdown of dropdown listbox

6 posts in Objects Last posting was on 2005-04-22 18:29:00.0Z
ANAND Posted on 2005-04-21 10:31:32.0Z
Sender: 497a.42678055.1804289383@sybase.com
From: Anand
Newsgroups: sybase.public.powerbuilder.objects
Subject: To enlarge the dropdown of dropdown listbox
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <426780ff.4985.1681692777@sybase.com>
X-Original-NNTP-Posting-Host: 10.22.241.42
X-Original-Trace: 21 Apr 2005 03:31:27 -0800, 10.22.241.42
Lines: 10
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 21 Apr 2005 03:31:28 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 21 Apr 2005 03:31:32 -0700
X-Trace: forums-1-dub 1114079492 10.22.108.75 (21 Apr 2005 03:31:32 -0700)
X-Original-Trace: 21 Apr 2005 03:31:32 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8355
Article PK: 735580

Hi all
When I click on a dropdown listbox I want to enlarge the
dropdown.Since there is no property for dropdown listbox
similar
to a dropdown datatwindow to enlarge the dropdown,it seems
the Handle or Send function has to be used.If anyone knows
how to
implement the code please help me.

Thanks


Andy Turiansky [TeamSybase] Posted on 2005-04-21 11:03:28.0Z
From: "Andy Turiansky [TeamSybase]" <aturiansky@comcast.net>
Newsgroups: sybase.public.powerbuilder.objects
Organization: 216.98.24.70
References: <426780ff.4985.1681692777@sybase.com>
X-Newsreader: AspNNTP 1.50 (Takeshi Eto)
Subject: Re: To enlarge the dropdown of dropdown listbox
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: web110.discountasp.net
X-Original-NNTP-Posting-Host: web110.discountasp.net
Message-ID: <42678880@forums-1-dub>
Date: 21 Apr 2005 04:03:28 -0700
X-Trace: forums-1-dub 1114081408 64.79.161.40 (21 Apr 2005 04:03:28 -0700)
X-Original-Trace: 21 Apr 2005 04:03:28 -0700, web110.discountasp.net
Lines: 19
X-Authenticated-User: teamsybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8356
Article PK: 735579

I believe the listbox has a size property, but I have not found the right API to
set it yet...

On 21 Apr 2005 03:31:32 -0700,
in sybase.public.powerbuilder.objects

<Anand> wrote:
>Hi all
> When I click on a dropdown listbox I want to enlarge the
>dropdown.Since there is no property for dropdown listbox
>similar
>to a dropdown datatwindow to enlarge the dropdown,it seems
>the Handle or Send function has to be used.If anyone knows
>how to
>implement the code please help me.
>
>Thanks

Andy [TeamSybase]


Andy Turiansky [TeamSybase] Posted on 2005-04-21 11:05:54.0Z
From: "Andy Turiansky [TeamSybase]" <aturiansky@comcast.net>
Newsgroups: sybase.public.powerbuilder.objects
Organization: 216.98.24.70
References: <426780ff.4985.1681692777@sybase.com>
X-Newsreader: AspNNTP 1.50 (Takeshi Eto)
Subject: Re: To enlarge the dropdown of dropdown listbox
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: web110.discountasp.net
X-Original-NNTP-Posting-Host: web110.discountasp.net
Message-ID: <42678912@forums-1-dub>
Date: 21 Apr 2005 04:05:54 -0700
X-Trace: forums-1-dub 1114081554 64.79.161.40 (21 Apr 2005 04:05:54 -0700)
X-Original-Trace: 21 Apr 2005 04:05:54 -0700, web110.discountasp.net
Lines: 20
X-Authenticated-User: teamsybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8357
Article PK: 735583

Have you looked at the 'height' property of the ddlb?

Height Integer Specifies the height of the control, in PowerBuilder units.

On 21 Apr 2005 03:31:32 -0700,
in sybase.public.powerbuilder.objects

<Anand> wrote:
>Hi all
> When I click on a dropdown listbox I want to enlarge the
>dropdown.Since there is no property for dropdown listbox
>similar
>to a dropdown datatwindow to enlarge the dropdown,it seems
>the Handle or Send function has to be used.If anyone knows
>how to
>implement the code please help me.
>
>Thanks

Andy [TeamSybase]


Brad Mettee Posted on 2005-04-22 17:03:12.0Z
Newsgroups: sybase.public.powerbuilder.objects
Subject: Re: To enlarge the dropdown of dropdown listbox
From: bmettee@REMOVE.pchotshots.com (Brad Mettee)
Organization: PC HotShots, Inc.
X-Newsreader: WinVN 0.99.9 (Released Version) (x86 32bit)
References: <426780ff.4985.1681692777@sybase.com>
MIME-Version: 1.0
Content-Type: Text/Plain; charset=US-ASCII
NNTP-Posting-Host: 65.222.202.68
X-Original-NNTP-Posting-Host: 65.222.202.68
Message-ID: <42692e50@forums-1-dub>
Date: 22 Apr 2005 10:03:12 -0700
X-Trace: forums-1-dub 1114189392 65.222.202.68 (22 Apr 2005 10:03:12 -0700)
X-Original-Trace: 22 Apr 2005 10:03:12 -0700, 65.222.202.68
Lines: 30
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8360
Article PK: 735585

This will set the width in pixels.

long hddlb
hddlb = handle(ddlb_1)
// 352 = 0x160 = CB_SETDROPPEDWIDTH (from winuser.h in Visual C++)
Send(hddlb, 352, 1000, 0) // 1000 = pixels width, set this to whatever you
want



In article <426780ff.4985.1681692777@sybase.com>, Anand says...

>
>Hi all
> When I click on a dropdown listbox I want to enlarge the
>dropdown.Since there is no property for dropdown listbox
>similar
>to a dropdown datatwindow to enlarge the dropdown,it seems
>the Handle or Send function has to be used.If anyone knows
>how to
>implement the code please help me.
>
>Thanks

--
Brad Mettee
PC HotShots, Inc.
Baltimore, MD

--> Let us bring out the *Power* of your PCs <--


Brad Mettee Posted on 2005-04-22 18:29:00.0Z
Newsgroups: sybase.public.powerbuilder.objects
Subject: Re: To enlarge the dropdown of dropdown listbox
From: bmettee@REMOVE.pchotshots.com (Brad Mettee)
Organization: PC HotShots, Inc.
X-Newsreader: WinVN 0.99.9 (Released Version) (x86 32bit)
References: <426780ff.4985.1681692777@sybase.com> <42692e50@forums-1-dub>
MIME-Version: 1.0
Content-Type: Text/Plain; charset=US-ASCII
NNTP-Posting-Host: 65.222.202.68
X-Original-NNTP-Posting-Host: 65.222.202.68
Message-ID: <4269426c@forums-1-dub>
Date: 22 Apr 2005 11:29:00 -0700
X-Trace: forums-1-dub 1114194540 65.222.202.68 (22 Apr 2005 11:29:00 -0700)
X-Original-Trace: 22 Apr 2005 11:29:00 -0700, 65.222.202.68
Lines: 49
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8361
Article PK: 735586

Hate to follow up my own msg, but here it is.


Here's a way to extend a DDLB to function like the width % property of a DDDW Control. (Sybase, how come this isn't available for DDLB on a DW,
and on the standard DDLB control itself?)

Add to the Instance variables of your standard ddlb that you inherit from
Public:
decimal{2} Width_Of_Dropdown_Pct = 100.00

Add the following to the Constructor Event
// Begin Add
long xpixels, hddlb
xpixels = UnitsToPixels(this.width, XUnitsToPixels!) // convert from PB to Pixels
xpixels *= (Width_Of_Dropdown_Pct / 100) // Adjust xPixels to be new width based on property percent as set at design time

hddlb = handle(this) // get handle to DDLB control
Send(hddlb, 352, xpixels, 0) // Send the CB_SETDROPPEDWIDTH parm & pixel width to the control
// End add

During design time, once you add the DDLB to an object, you'll now have a property that you can set for the drop down width just like a DDDW.


In article <42692e50@forums-1-dub>, bmettee@REMOVE.pchotshots.com says...

>
>This will set the width in pixels.
>
>long hddlb
>hddlb = handle(ddlb_1)
>// 352 = 0x160 = CB_SETDROPPEDWIDTH (from winuser.h in Visual C++)
>Send(hddlb, 352, 1000, 0) // 1000 = pixels width, set this to whatever you
>want
>
>
>
>In article <426780ff.4985.1681692777@sybase.com>, Anand says...
>>
>>Hi all
>> When I click on a dropdown listbox I want to enlarge the
>>dropdown.Since there is no property for dropdown listbox
>>similar
>>to a dropdown datatwindow to enlarge the dropdown,it seems
>>the Handle or Send function has to be used.If anyone knows
>>how to
>>implement the code please help me.
>>
>>Thanks
>