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.

row selecting

6 posts in DataWindow Last posting was on 2008-09-03 18:38:29.0Z
Murat Yelkovan Posted on 2008-08-26 10:04:17.0Z
From: "Murat Yelkovan" <muratyelkovan@yahoo.com>
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: row selecting
Lines: 13
MIME-Version: 1.0
Content-Type: text/plain; format=flowed; charset="iso-8859-9"; reply-type=original
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Windows Mail 6.0.6001.18000
X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6001.18049
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <48b3d521@forums-1-dub>
Date: 26 Aug 2008 03:04:17 -0700
X-Trace: forums-1-dub 1219745057 10.22.241.152 (26 Aug 2008 03:04:17 -0700)
X-Original-Trace: 26 Aug 2008 03:04:17 -0700, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:87633
Article PK: 416889

If I click a row on my treeview datawindow, It select that row and highligt
it, because I set "select node by mouse" with true.
But, if I right click on the row It does not select the row. I tried
scrolltorow() and setrow() and triggerevent(clicked!) in rbuttondown and
rbuttonup events but It does not work. If I use selectrow(row,true) and then
If I click the row we will have two selected row.

Do you have any sollution?

PB 10.5.2
build 7699


"Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel Posted on 2008-08-26 11:32:36.0Z
From: "Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel@yahoo!.com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <48b3d521@forums-1-dub>
Subject: Re: row selecting
Lines: 19
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <48b3e9d4$1@forums-1-dub>
Date: 26 Aug 2008 04:32:36 -0700
X-Trace: forums-1-dub 1219750356 10.22.241.152 (26 Aug 2008 04:32:36 -0700)
X-Original-Trace: 26 Aug 2008 04:32:36 -0700, vip152.sybase.com
X-Authenticated-User: TeamSybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:87634
Article PK: 416890

SelectRow(0, FALSE) before SelectRow(row,TRUE)

"Murat Yelkovan" <muratyelkovan@yahoo.com> wrote in message
news:48b3d521@forums-1-dub...
> If I click a row on my treeview datawindow, It select that row and
> highligt it, because I set "select node by mouse" with true.
> But, if I right click on the row It does not select the row. I tried
> scrolltorow() and setrow() and triggerevent(clicked!) in rbuttondown and
> rbuttonup events but It does not work. If I use selectrow(row,true) and
> then If I click the row we will have two selected row.
>
> Do you have any sollution?
>
> PB 10.5.2
> build 7699
>
>


Murat Yelkovan Posted on 2008-08-26 12:02:51.0Z
From: "Murat Yelkovan" <muratyelkovan@yahoo.com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <48b3d521@forums-1-dub> <48b3e9d4$1@forums-1-dub>
In-Reply-To: <48b3e9d4$1@forums-1-dub>
Subject: Re: row selecting
Lines: 34
MIME-Version: 1.0
Content-Type: text/plain; format=flowed; charset="iso-8859-9"; reply-type=response
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Windows Mail 6.0.6001.18000
X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6001.18049
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <48b3f0eb@forums-1-dub>
Date: 26 Aug 2008 05:02:51 -0700
X-Trace: forums-1-dub 1219752171 10.22.241.152 (26 Aug 2008 05:02:51 -0700)
X-Original-Trace: 26 Aug 2008 05:02:51 -0700, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:87635
Article PK: 416891

If I don't write someting in clicked event, it already selects the row by
clicking the row. But It never select the row by rightclick. For example,
users see the first row is selected but actually he rightclicked on the
second row.

If I use selectrow(0,false) and selectrow(row,true) in rbuttondown event, I
should use same command in clicked event but in this case it is flashing
when I rightclicked the row.

"Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel@yahoo!.com> wrote in message
news:48b3e9d4$1@forums-1-dub...
> SelectRow(0, FALSE) before SelectRow(row,TRUE)
>
> "Murat Yelkovan" <muratyelkovan@yahoo.com> wrote in message
> news:48b3d521@forums-1-dub...
>> If I click a row on my treeview datawindow, It select that row and
>> highligt it, because I set "select node by mouse" with true.
>> But, if I right click on the row It does not select the row. I tried
>> scrolltorow() and setrow() and triggerevent(clicked!) in rbuttondown and
>> rbuttonup events but It does not work. If I use selectrow(row,true) and
>> then If I click the row we will have two selected row.
>>
>> Do you have any sollution?
>>
>> PB 10.5.2
>> build 7699
>>
>>
>
>


"John Olson [Team Sybase]" <john.olson Posted on 2008-09-02 18:18:11.0Z
From: "John Olson [Team Sybase]" <john.olson@nospam_teamsybase.com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <48b3d521@forums-1-dub> <48b3e9d4$1@forums-1-dub> <48b3f0eb@forums-1-dub>
Subject: Re: row selecting
Lines: 49
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-RFC2646: Format=Flowed; Response
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <48bd8363$1@forums-1-dub>
Date: 2 Sep 2008 11:18:11 -0700
X-Trace: forums-1-dub 1220379491 10.22.241.152 (2 Sep 2008 11:18:11 -0700)
X-Original-Trace: 2 Sep 2008 11:18:11 -0700, vip152.sybase.com
X-Authenticated-User: TeamSybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:87686
Article PK: 416942

It sounds like the flashing is a conflict between "select node by mouse" and
your rbuttondown code. Comment out the code you have in clicked and
lbuttondown and just keep the code in rbuttondown and select note checked.
If it behaves correctly for right clicks then you'll have to work with your
clicked event code to determine how to get it to work for rbutton and
lbutton clicks. It should be pretty straight forward and I haven't
encountered the problem you are having so it sounds like a code conflict.

Regards,
John

"Murat Yelkovan" <muratyelkovan@yahoo.com> wrote in message
news:48b3f0eb@forums-1-dub...
> If I don't write someting in clicked event, it already selects the row by
> clicking the row. But It never select the row by rightclick. For example,
> users see the first row is selected but actually he rightclicked on the
> second row.
>
> If I use selectrow(0,false) and selectrow(row,true) in rbuttondown event,
> I should use same command in clicked event but in this case it is flashing
> when I rightclicked the row.
>
>
>
>
> "Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel@yahoo!.com> wrote in message
> news:48b3e9d4$1@forums-1-dub...
>> SelectRow(0, FALSE) before SelectRow(row,TRUE)
>>
>> "Murat Yelkovan" <muratyelkovan@yahoo.com> wrote in message
>> news:48b3d521@forums-1-dub...
>>> If I click a row on my treeview datawindow, It select that row and
>>> highligt it, because I set "select node by mouse" with true.
>>> But, if I right click on the row It does not select the row. I tried
>>> scrolltorow() and setrow() and triggerevent(clicked!) in rbuttondown and
>>> rbuttonup events but It does not work. If I use selectrow(row,true) and
>>> then If I click the row we will have two selected row.
>>>
>>> Do you have any sollution?
>>>
>>> PB 10.5.2
>>> build 7699
>>>
>>>
>>
>>
>


Murat Yelkovan Posted on 2008-09-03 13:43:54.0Z
From: "Murat Yelkovan" <muratyelkovan@yahoo.com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <48b3d521@forums-1-dub> <48b3e9d4$1@forums-1-dub> <48b3f0eb@forums-1-dub> <48bd8363$1@forums-1-dub>
In-Reply-To: <48bd8363$1@forums-1-dub>
Subject: Re: row selecting
Lines: 62
MIME-Version: 1.0
Content-Type: text/plain; format=flowed; charset="iso-8859-9"; reply-type=response
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Windows Mail 6.0.6001.18000
X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6001.18049
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <48be949a$1@forums-1-dub>
Date: 3 Sep 2008 06:43:54 -0700
X-Trace: forums-1-dub 1220449434 10.22.241.152 (3 Sep 2008 06:43:54 -0700)
X-Original-Trace: 3 Sep 2008 06:43:54 -0700, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:87687
Article PK: 416943

Thank you very much I solved the problem.

I disabled "select node by mouse" and used this.selectrow(0,false) and
this.selectrow(row,true) in clicked and rbuttondown event.
The problem was some codes in pfc_prermbmenuproperty event.
Best regards..

"John Olson [Team Sybase]" <john.olson@nospam_teamsybase.com> wrote in
message news:48bd8363$1@forums-1-dub...
> It sounds like the flashing is a conflict between "select node by mouse"
> and your rbuttondown code. Comment out the code you have in clicked and
> lbuttondown and just keep the code in rbuttondown and select note checked.
> If it behaves correctly for right clicks then you'll have to work with
> your clicked event code to determine how to get it to work for rbutton and
> lbutton clicks. It should be pretty straight forward and I haven't
> encountered the problem you are having so it sounds like a code conflict.
>
> Regards,
> John
>
> "Murat Yelkovan" <muratyelkovan@yahoo.com> wrote in message
> news:48b3f0eb@forums-1-dub...
>> If I don't write someting in clicked event, it already selects the row by
>> clicking the row. But It never select the row by rightclick. For example,
>> users see the first row is selected but actually he rightclicked on the
>> second row.
>>
>> If I use selectrow(0,false) and selectrow(row,true) in rbuttondown event,
>> I should use same command in clicked event but in this case it is
>> flashing when I rightclicked the row.
>>
>>
>>
>>
>> "Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel@yahoo!.com> wrote in message
>> news:48b3e9d4$1@forums-1-dub...
>>> SelectRow(0, FALSE) before SelectRow(row,TRUE)
>>>
>>> "Murat Yelkovan" <muratyelkovan@yahoo.com> wrote in message
>>> news:48b3d521@forums-1-dub...
>>>> If I click a row on my treeview datawindow, It select that row and
>>>> highligt it, because I set "select node by mouse" with true.
>>>> But, if I right click on the row It does not select the row. I tried
>>>> scrolltorow() and setrow() and triggerevent(clicked!) in rbuttondown
>>>> and rbuttonup events but It does not work. If I use selectrow(row,true)
>>>> and then If I click the row we will have two selected row.
>>>>
>>>> Do you have any sollution?
>>>>
>>>> PB 10.5.2
>>>> build 7699
>>>>
>>>>
>>>
>>>
>>
>
>


"John Olson [Team Sybase]" <john.olson Posted on 2008-09-03 18:38:29.0Z
From: "John Olson [Team Sybase]" <john.olson@nospam_teamsybase.com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <48b3d521@forums-1-dub> <48b3e9d4$1@forums-1-dub> <48b3f0eb@forums-1-dub> <48bd8363$1@forums-1-dub> <48be949a$1@forums-1-dub>
Subject: Re: row selecting
Lines: 76
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-RFC2646: Format=Flowed; Response
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <48bed9a5@forums-1-dub>
Date: 3 Sep 2008 11:38:29 -0700
X-Trace: forums-1-dub 1220467109 10.22.241.152 (3 Sep 2008 11:38:29 -0700)
X-Original-Trace: 3 Sep 2008 11:38:29 -0700, vip152.sybase.com
X-Authenticated-User: TeamSybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:87688
Article PK: 416944

The selectrow() use is simple so in this case it sounds like it's better to
use that than the built-in highlighting.

I'm glad you got it worked out.

Regards,
John

"Murat Yelkovan" <muratyelkovan@yahoo.com> wrote in message
news:48be949a$1@forums-1-dub...
> Thank you very much I solved the problem.
>
> I disabled "select node by mouse" and used this.selectrow(0,false) and
> this.selectrow(row,true) in clicked and rbuttondown event.
> The problem was some codes in pfc_prermbmenuproperty event.
> Best regards..
>
>
>
>
> "John Olson [Team Sybase]" <john.olson@nospam_teamsybase.com> wrote in
> message news:48bd8363$1@forums-1-dub...
>> It sounds like the flashing is a conflict between "select node by mouse"
>> and your rbuttondown code. Comment out the code you have in clicked and
>> lbuttondown and just keep the code in rbuttondown and select note
>> checked. If it behaves correctly for right clicks then you'll have to
>> work with your clicked event code to determine how to get it to work for
>> rbutton and lbutton clicks. It should be pretty straight forward and I
>> haven't encountered the problem you are having so it sounds like a code
>> conflict.
>>
>> Regards,
>> John
>>
>> "Murat Yelkovan" <muratyelkovan@yahoo.com> wrote in message
>> news:48b3f0eb@forums-1-dub...
>>> If I don't write someting in clicked event, it already selects the row
>>> by clicking the row. But It never select the row by rightclick. For
>>> example, users see the first row is selected but actually he
>>> rightclicked on the second row.
>>>
>>> If I use selectrow(0,false) and selectrow(row,true) in rbuttondown
>>> event, I should use same command in clicked event but in this case it is
>>> flashing when I rightclicked the row.
>>>
>>>
>>>
>>>
>>> "Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel@yahoo!.com> wrote in message
>>> news:48b3e9d4$1@forums-1-dub...
>>>> SelectRow(0, FALSE) before SelectRow(row,TRUE)
>>>>
>>>> "Murat Yelkovan" <muratyelkovan@yahoo.com> wrote in message
>>>> news:48b3d521@forums-1-dub...
>>>>> If I click a row on my treeview datawindow, It select that row and
>>>>> highligt it, because I set "select node by mouse" with true.
>>>>> But, if I right click on the row It does not select the row. I tried
>>>>> scrolltorow() and setrow() and triggerevent(clicked!) in rbuttondown
>>>>> and rbuttonup events but It does not work. If I use
>>>>> selectrow(row,true) and then If I click the row we will have two
>>>>> selected row.
>>>>>
>>>>> Do you have any sollution?
>>>>>
>>>>> PB 10.5.2
>>>>> build 7699
>>>>>
>>>>>
>>>>
>>>>
>>>
>>
>>
>