Search found 6 matches

Go to advanced search

by gtcp
Sat Feb 26, 2022 6:58 am
Forum: Tips and Techniques
Topic: Controls in non-client areas such as title bars and menus
Replies: 2
Views: 3832

Re: Controls in non-client areas such as title bars and menus

Agreed, looks hard to do properly. We've proven in principle a budget solution, which is to float a borderless form, and programmatically tie it to the main form - reposition it with resize and formMove events, show and hide it with activate and deactivate, etc. It's a cheap and cheerful option.
by gtcp
Wed Feb 23, 2022 10:27 am
Forum: Tips and Techniques
Topic: Controls in non-client areas such as title bars and menus
Replies: 2
Views: 3832

Controls in non-client areas such as title bars and menus

The search box shown in the title bar of Office 365 apps is something we'd like to mimic. We'd like to put a control into the title bar or menu bar of an MDI parent form. Big ask? It looks to me like you can do this outside Jade by custom-drawing menus, handling painting and user events, the whole c...
by gtcp
Wed Sep 01, 2021 12:38 pm
Forum: Feature Discussions
Topic: Generic invocation of primitive methods
Replies: 0
Views: 3677

Generic invocation of primitive methods

Is there an equivalent to Object.sendMsg for primitive types? Something like Any.sendMsg and sendMsgWithParams? I'd settle for type-specific Boolean.sendMsg etc though that would be a bit more clumsy. Would use this extensively for run-time expression evaluation. It would be way better than construc...
by gtcp
Sun Aug 22, 2021 9:22 am
Forum: Tips and Techniques
Topic: Events from non-gui .NET component
Replies: 4
Views: 6948

Re: Events from non-gui .NET component

You see the events in the IDE when you select a property whose type is your non-gui .NET component, FileSystemWatcher. The property can be on any class. The receiver parameter for beginEventNotification needs to be an instance of that class. The feature parameter needs to be the property of that cla...
by gtcp
Wed May 26, 2021 6:29 am
Forum: Feature Discussions
Topic: Generic invocation of typeMethods
Replies: 2
Views: 4342

Re: Generic invocation of typeMethods

Thanks so much, Kevin. Sure, it's a workaround but it works! Here's a minor bit of polish on that, just wrapping up the oid-wrangling into a method on Class cheekily called static: static() : Object; begin return (number.String & '.1').asOid(); end; That tidies the invocation to cls.static().YourCla...
by gtcp
Tue May 25, 2021 1:01 pm
Forum: Feature Discussions
Topic: Generic invocation of typeMethods
Replies: 2
Views: 4342

Generic invocation of typeMethods

Is there a way to call a static method using a class reference? I want to grab a bunch of classes, store references, then pick one and invoke a type method on it. In essence this is something like cls : Class; begin cls := ClassA; …then much later… cls@methodName(); Of course this gives a syntax err...

Go to advanced search

cron