Accessing subwindow code inside complex grid

John Boehme john at integralservices.biz
Tue Jan 21 00:24:33 UTC 2025


Hello All,

I've also run into the same problem. Sub-windows on a complex grid work good
only for pretty simplistic situations.
What I've done  to get past this is to basically make my own list with a
scrollbox and a sub-window representation of the entire list line.

There are a couple of options to implement the scrolling depending on how
many lines you're expecting.

You can either make the number of sub-windows equal to the number of lines
and use the scrollbox to scroll them as expected, or, create enough
sub-windows to fill the scrollbox and change the line assignment to the
sub-windows as the user scrolls.

John Boehme
940-597-3046

-----Original Message-----
From: omnisdev-en [mailto:omnisdev-en-bounces at lists.omnis-dev.com] On Behalf
Of Paul Mulroney
Sent: Monday, January 13, 2025 20:48
To: Omnis-dev list
Subject: Re: Accessing subwindow code inside complex grid

We tried subwindows in a complex grid years ago, and couldn't make it work.
It's frustrating because it would really solve a few problems for us.

Regards
Paul.

> On 14 Jan 2025, at 6:38 am, Mike Matthews - Omnis via omnisdev-en
<omnisdev-en at lists.omnis-dev.com> wrote:
> 
> I think that you are correct in that all lines share the same subwin.  I
was talking to Bob Mitchell about this, and he said it was just too
difficult to do, too many layers etc.
> 
> Mike Matthews
> 
> Lineal Software Solutions
> Commercial House, The Strand<x-apple-data-detectors://1/1> Barnstaple, 
> Devon, EX31 1EU<x-apple-data-detectors://1/1>
> 
> omnis at lineal.co.uk<mailto:mike.matthews at lineal.co.uk>
> 
> www.lineal.co.uk<http://www.lineal.co.uk/>
> 
> www.sqlworks.co.uk<http://www.sqlworks.co/>
> 
> 
> 
> On 13 Jan 2025, at 20:40, Scotte Meredith
<spomacguy at gmail.com<mailto:spomacguy at gmail.com>> wrote:
> 
> Hi, Mike -- I am passing a reference in. I'll make sure it is correct. 
> Alan Davey pointed out that a line in the documentation says that when 
> there is a subwindow in the complex grid, all the lines share it. 
> There is not an instance of the subwindow for
> Warning: Unusual link
> This message contains an unusual link, which may lead to a malicious site.
Confirm the message is safe before clicking any links.
> Hi, Mike --
> 
> I am passing a reference in. I'll make sure it is correct. Alan Davey
pointed out that a line in the documentation says that when there is a
subwindow in the complex grid, all the lines share it. There is not an
instance of the subwindow for each line, so I may have to redesign this.
> 
> 
> Scotte Meredith
> spomacguy at gmail.com<mailto:spomacguy at gmail.com>
> 509/998-0991
> 
> 
> 
> 
> On Jan 13, 2025, at 10:41 AM, Mike Matthews - Omnis via omnisdev-en
<omnisdev-en at lists.omnis-dev.com<mailto:omnisdev-en at lists.omnis-dev.com>>
wrote:
> 
> Hello Scotte,
> 
> I think you have tell the CG who you are.  So send into the CG a Ref to
the subWin, then the CG can send messages back to the small SubWin.
> 
> I do this with my container windows currently, and have another issue
about displaying the list inside the small subWin that is in the CG.  It
seems you have to have two copies of the list, one in each window, which
seems silly.
> 
> Mike Matthews
> 
> Lineal Software Solutions
> Commercial House, The Strand<x-apple-data-detectors://1/1> Barnstaple, 
> Devon, EX31 1EU<x-apple-data-detectors://1/1>
> 
> omnis at lineal.co.uk<mailto:omnis at lineal.co.uk><mailto:mike.matthews at lin
> eal.co.uk>
> 
> www.lineal.co.uk<https://linkprotect.cudasvc.com/url?a=http%3a%2f%2fww
> w.lineal.co.uk&c=E,1,p261fQNAQ62zENOAbrwKM4QNuuTGwtmyh2wXyKq2E9du6zXFy
> Ybi5kNdelGOTjWJur8HKzFPxidzQiNVvZD7g5R60GZJoEooDkEFrzyWWCuOFGsTOTi0Pg,
> ,&typo=1><http://www.lineal.co.uk/<https://linkprotect.cudasvc.com/url
> ?a=http%3a%2f%2fwww.lineal.co.uk%2f&c=E,1,JuB_kPNRqapX6s3b4PjVLEp2WU8j
> r-Y7RChIBthRA68GMMKosHWPYPVcpousYEA5YnwPLDfqowie9YscAoHfUqxHqHeHRA7ZfJ
> jhYXyW1mlKKpkEww,,&typo=1>>
> 
> www.sqlworks.co.uk<https://linkprotect.cudasvc.com/url?a=http%3a%2f%2f
> www.sqlworks.co.uk&c=E,1,kVGaJqRhenY7MnyjBWMt9IeS1MrKUpoHBY2gpF4mfLs29
> i9YkN7lnsg8MeZGPMVQlyWrz1cvR85DItG28-66u2MQVTKKF6fbmxJsfV-gcFU,&typo=1
> ><http://www.sqlworks.co/<https://linkprotect.cudasvc.com/url?a=http%3
> a%2f%2fwww.sqlworks.co%2f&c=E,1,buxql9qwjwzxjF_QW2ft8dyoiF-lZOzr9Y5yFu
> HBu2tm3bTg2wR7EGePzSb1F0IxmHakXtW6Cu_7AGU64YWYOJN0g-TaBjwynWl8CppG_h0x
> 5oV5Bnar4bc4WY8,&typo=1>>
> 
> 
> 
> On 13 Jan 2025, at 17:32, Scotte Meredith
<spomacguy at gmail.com<mailto:spomacguy at gmail.com><mailto:spomacguy at gmail.com>
> wrote:
> 
> External sender 
> <spomacguy at gmail.com<mailto:spomacguy at gmail.com><mailto:spomacguy at gmai
> l.com>>
> 
> Make sure you trust this sender before taking any actions.
> 
> I have a complex grid with a subwindow in one of the columns. It displays
in the grid.
> 
> The subwindow has a couple of buttons for the user to right-click to make
a change. That change will update the icon and text of the button.
> 
> I can see the subwindow contents in the complex grid, but can't seem to
figure out how to get the subwindow to take the right-clicks. I've set the
$rmouseevents on the subwindow field and tried setting the $enabled both as
a general property and as an exception on the grid.
> 
> How do I get the subwindow field to register a right-click on that line in
the grid?
> 
> 
> Scotte Meredith
> spomacguy at gmail.com<mailto:spomacguy at gmail.com><mailto:spomacguy at gmail
> .com>
> 509/998-0991
> 
> 
> 
> 
> _____________________________________________________________
> Manage your list subscriptions at 
> https://linkprotect.cudasvc.com/url?a=https%3a%2f%2flists.omnis-dev.co
> m&c=E,1,CVkLfhxvJ2O4FAq73sy3iaaabh_J_gIA8iF67SgcBHywiBSnoNS4OP4SP1kdZq
> njDG7FqWrNw9W2oPpLi_FKUN93q2UQUkg_zbkt2dP-&typo=1
> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com
> 
> _____________________________________________________________
> Manage your list subscriptions at 
> https://lists.omnis-dev.com<https://linkprotect.cudasvc.com/url?a=http
> s%3a%2f%2flists.omnis-dev.com&c=E,1,GUTp6ZGa8iAb5ZdNXR_Z9gQqOXqUiE7-fJ
> LnrE4482LVFOOPRqGx_YVuBWDdg6B6hsD3CwQT0qWGL8L4el3npBcViaIKnzpktAnd95XA
> _BCTGrw,&typo=1> Start a new message -> 
> mailto:omnisdev-en at lists.omnis-dev.com
> 
> 
> _____________________________________________________________
> Manage your list subscriptions at https://lists.omnis-dev.com Start a 
> new message -> mailto:omnisdev-en at lists.omnis-dev.com


I was going to wear my camouflage shirt today, but I couldn't find it.
-- 
Paul W. Mulroney                                            We Don't Do
Simple Pty Ltd 
pmulroney at logicaldevelopments.com.au       Trading as Logical Developments
www.logicaldevelopments.com.au                   ACN 161 009 374 
Ph: +61 8 9458 3889                                       86 Coolgardie
Street
 
BENTLEY  WA  6102



_____________________________________________________________
Manage your list subscriptions at https://lists.omnis-dev.com Start a new
message -> mailto:omnisdev-en at lists.omnis-dev.com 



More information about the omnisdev-en mailing list