Search found 15 matches

by jscholes
Sat Nov 29, 2014 2:10 am
Forum: Coding Questions
Topic: Regarding Accelerators
Replies: 34
Views: 11013

Re: Regarding Accelerators

PB wrote:Oh well, we tried to help. Sorry that we couldn't. :(
Your link to the Windows API code example does help, and I will implement a version of my sample program using native API calls. Hey, if it helps track down the bug, it has to be worth a try.
by jscholes
Sat Nov 29, 2014 2:06 am
Forum: Coding Questions
Topic: Regarding Accelerators
Replies: 34
Views: 11013

Re: Regarding Accelerators

> I would rather use Win32 natively

You know you can do that with PureBasic, right? Almost every Win32 API
call/function can be called natively directly in your source. So the solution
to your problem is already there, if you know the calls/functions already.

Such a solution would require ...
by jscholes
Sat Nov 29, 2014 2:03 am
Forum: Coding Questions
Topic: Regarding Accelerators
Replies: 34
Views: 11013

Re: Regarding Accelerators

Also, just to briefly explain why I brought up wxWidgets:

I know PureBasic doesn't use it, of course. But it is a cross-platform GUI framework, using native controls on all platforms. Just like PureBasic's gadget system which attempts to do the same. They wrap the same functionality, the only ...
by jscholes
Sat Nov 29, 2014 1:53 am
Forum: Coding Questions
Topic: Regarding Accelerators
Replies: 34
Views: 11013

Re: Regarding Accelerators

> Have you heard of wxWidgets?

Yep, and PureBasic doesn't use it, so it's a moot point.

Anyway, post your problem in the "Feature Requests" section,
and see if the team agrees that it should work as you say.

> I could make my app keyboard accessible by adding a few ampersand signs

I showed you ...
by jscholes
Sat Nov 29, 2014 1:42 am
Forum: Coding Questions
Topic: Regarding Accelerators
Replies: 34
Views: 11013

Re: Regarding Accelerators

It seems that I've gotten off on the wrong foot with this community. :) Honestly, it is not my intention to raise a problem where there isn't one or to make life difficult for myself. Which is why I would love it if this problem were solved, because believe me, if you worked with assistive ...
by jscholes
Sat Nov 29, 2014 1:38 am
Forum: Coding Questions
Topic: Regarding Accelerators
Replies: 34
Views: 11013

Re: Regarding Accelerators

Why are you investigating Purebasic if your other languages provide what you need?

Because they don't provide what I need, i.e. all of PureBasic's other features which I have not found fault with and actually quite like. For this project, the language is perfect but for this one problem. I would ...
by jscholes
Sat Nov 29, 2014 1:35 am
Forum: Coding Questions
Topic: Regarding Accelerators
Replies: 34
Views: 11013

Re: Regarding Accelerators

PureBasic is NOT for Windows. It's for Windows, Linux, and Mac.

This is probably where your frustration lies. Anything that you expect to
work because of Win32 is not the case here. Each and every command
and gadget has to work the same way on all three platforms, or it simply
isn't supported ...
by jscholes
Sat Nov 29, 2014 1:28 am
Forum: Coding Questions
Topic: Regarding Accelerators
Replies: 34
Views: 11013

Re: Regarding Accelerators

Just to add, I looked through the PureBasic manual for any mention of this. To illustrate what I mean, this concept is referenced in the documentation for creating menus and adding items:

The text to display in the title item. On Windows you can use the special '&' character to underline a ...
by jscholes
Sat Nov 29, 2014 1:19 am
Forum: Coding Questions
Topic: Regarding Accelerators
Replies: 34
Views: 11013

Re: Regarding Accelerators

> This is how Microsoft Word and Adobe Photoshop have language-aware shortcut keys

Word and Photoshop just do something similar to my tip above.
As an end-user, you just don't get to see it. PureBasic doesn't
do as much hand-holding as other coding languages, which is
both its strength, and its ...
by jscholes
Sat Nov 29, 2014 1:16 am
Forum: Coding Questions
Topic: Regarding Accelerators
Replies: 34
Views: 11013

Re: Regarding Accelerators

> When I ask my translators to prepare message files for the application,
> I will instruct them to place an ampersand before the letter which should
> become the keyboard shortcut for the control

See here to do that:

http://www.purebasic.fr/english/viewtopic.php?f=12&t=61087

Hope it helps ...
by jscholes
Sat Nov 29, 2014 12:49 am
Forum: Coding Questions
Topic: Regarding Accelerators
Replies: 34
Views: 11013

Re: Regarding Accelerators

Of course they can. You will have to map out languages in a separate include or datasection.
Concentrate on the mechanics of PB event loops and menu events which are related to keyboard shortcuts. It is not as burdensome as you imply.

Thanks again for your input, but you're simply not ...
by jscholes
Fri Nov 28, 2014 11:04 pm
Forum: Coding Questions
Topic: Regarding Accelerators
Replies: 34
Views: 11013

Re: Regarding Accelerators

skywalk wrote:So are you asking if multi-language support is accomplished without code but a feature request?
No. I am asking if keyboard accelerators can be made to work properly in PureBasic. UI translation was just an example I was using to try to make the problem a bit clearer.
by jscholes
Fri Nov 28, 2014 10:44 pm
Forum: Coding Questions
Topic: Regarding Accelerators
Replies: 34
Views: 11013

Re: Regarding Accelerators

I don't really see a question? :|
It is true there are many dialogs in the IDE that have no keyboard action.
But, these are only a pain if used in rapid succession like a Find dialog. Here you absolutely need a "&Next" or "&Replace" keystroke to save mouse positioning and clicking.
They are not ...
by jscholes
Fri Nov 28, 2014 9:54 pm
Forum: Coding Questions
Topic: Regarding Accelerators
Replies: 34
Views: 11013

Re: Regarding Accelerators

Far less code than your post to implement 4 AddKeyboardShortcut()'s.
While it may appear as standard action in other development tools, in PB you must program exactly what you need. You will find this level of control much more powerful as you build larger apps. :wink:

Thanks for your reply, but ...
by jscholes
Fri Nov 28, 2014 9:04 pm
Forum: Coding Questions
Topic: Regarding Accelerators
Replies: 34
Views: 11013

Regarding Accelerators

Hello,

I'll begin this post by saying that I've only been learning PureBasic for a few hours, but I've hit up against a problem which, for my coding purposes, may be a bit of a deal breaker. I'm developing on Windows 7. Here's what I want to create, to demonstrate this problem:

A user ...