PDA

View Full Version : tabbing issue


Nicknack
08-21-2009, 07:12 PM
hey,
I took another glance at tabbing through all controls in a form without a custom routine and found a interesting solution on the web: IsDialogMessage (http://msdn.microsoft.com/en-us/library/ms645498%28VS.85%29.aspx) .
now I don't know how exactly PPL handles messages, does it have a internal message loop somewhere?
if so could you change your message loop to something like this Alain?
MSG msg;
while (GetMessage(&msg, NULL, 0, 0)) {
if (IsDialogMessage(hwnd, &msg)) {
/* Already handled by dialog manager */
} else {
TranslateMessage(&msg);
DispatchMessage(&msg);
}
}

then we should be able to tap through our non dialog based forms ;)
this thread (http://www.gamedev.net/community/forums/topic.asp?topic_id=267153) gives you some additional background information.
let me hear your opinion!

juppmaifeld
10-01-2009, 11:54 AM
Hi, back again.

I can't get tabbing running on a dialog form (PPL 15.3). Is there any tutorial or example available concerning that topic?

Regards

Jupp

kornalius
10-02-2009, 01:58 AM
PPL 15.3 ? wow where did you get that version? ;)

Please have a look at the main.ppl code it does have tab control.

Nicknack
10-03-2009, 06:38 PM
actually this thread was meant about tabbing through the whole dialog with the tab key, not the tab control. ws_tabstop is still without a use in PPL 2.0, therefore I asked you if you (@kornalius) could take a look at the IsDialogMessage solution.

@juppmaifeld: if you search for an example for the TabControl, I can send you a simple working one ;)

juppmaifeld
10-04-2009, 05:56 PM
Hi Nicknack,

I also didn't mean tabcontrol. I want to use the tab key to tab through a dialog form using ws_tabstop, ws_group, DEFPUSHBUTTON, PUSHBUTTON and all this stuff to switch the keyboard focus to different buttons. It doesn't work in PPL 1.53 Pro. At least I wasn't able to get it running. It appears that PPL 2.0 uses the same core like PPL 1.x.

Hi Kornalius,

I hope PPL will reach a version level of 15.3 someday but at the moment I would be very happy to get good running version 1.6 (maybe 2.x) without so much mistakes (I know developing software without mistakes is almost impossible) as soon as possible. ;) By the way. You didn't make a joke concerning threads in PPL 1.x (see the thread: threads in ppl 1.x) as you mentioned that there wasn't any multi threading features implemented in PPL 1.x ?

Regards,

Jupp


P.S. See the attached File as an example for a (yet) not working tabbing.

kornalius
10-04-2009, 08:03 PM
No that was not a joke concerning no multithreading in 1.53. The core interpreter engine is not designed for this. I am working on a full redesign which will have support and at the same time should gain in speed.

As for tabbing for controls I will have to take a closer look. However I will only get to work on 2.x.