Prev: Calling a web service from MFC
Next: Stay resident dll
From: mfc on 23 Jun 2010 09:06 Hi, is it possible with the CIPAddressCtrl class (ip address control) that every ip-addr-field [ip-addr format: field1 (dot) field2 (dot) field3 (dot) field4] between the points will get the focus point by using the tab-key on the keyboard? At the moment with the default settings only the first ip-addr field will get the focus --> pressing the tab-key, the next item (button e.g) will get the focus handle... In my application, you have only the ability to enter a new ip-addr with an encoder wheel or with a touchscreen. Therefore every field in the ip-addr must be able to get the focus handle. Or is it possible to get the same look using four edit controls and four static text controls (for the dots)? With the same look, I mean, that you will see only one field with three points and not four separate edit fields with three points between them... best regards Hans
From: Goran on 23 Jun 2010 09:28 On Jun 23, 3:06 pm, mfc <mfcp...(a)googlemail.com> wrote: > Hi, > > is it possible with the CIPAddressCtrl class (ip address control) that > every ip-addr-field [ip-addr format: field1 (dot) field2 (dot) field3 > (dot) field4] between the points will get the focus point by using the > tab-key on the keyboard? At the moment with the default settings only > the first ip-addr field will get the focus --> pressing the tab-key, > the next item (button e.g) will get the focus handle... > > In my application, you have only the ability to enter a new ip-addr > with an encoder wheel or with a touchscreen. Therefore every field in > the ip-addr must be able to get the focus handle. I don't know what are limitations of your input devices, but pressing SPACE or right arrow moves you one "IP field" to the right. Left arrow moves you to the left. Is that not enough? Also, if you have a touch- screen, you can touch any "IP field", which should give it focus, wouldn't it? Goran.
From: mfc on 23 Jun 2010 09:43 On 23 Jun., 15:28, Goran <goran.pu...(a)gmail.com> wrote: > On Jun 23, 3:06 pm, mfc <mfcp...(a)googlemail.com> wrote: > > > Hi, > > > is it possible with the CIPAddressCtrl class (ip address control) that > > every ip-addr-field [ip-addr format: field1 (dot) field2 (dot) field3 > > (dot) field4] between the points will get the focus point by using the > > tab-key on the keyboard? At the moment with the default settings only > > the first ip-addr field will get the focus --> pressing the tab-key, > > the next item (button e.g) will get the focus handle... > > > In my application, you have only the ability to enter a new ip-addr > > with an encoder wheel or with a touchscreen. Therefore every field in > > the ip-addr must be able to get the focus handle. > > I don't know what are limitations of your input devices, but pressing > SPACE or right arrow moves you one "IP field" to the right. Left arrow > moves you to the left. Is that not enough? Using a normal keyboard, it is enough - but I`ve only one encoder wheel. If I will use this wheel to move to each ip-field, I have to send a specific message (which will be send from a normal keyboard pressing the space) to this control... like using a on-screen keyboard. Do you know how can I send such a message to this control? >Also, if you have a touch- > screen, you can touch any "IP field", which should give it focus, > wouldn't it? Unfortunately at the moment I didn`t have the chance using a touchscreen to test it. But if I can create an event handler if the user touch any ip-field of the item - then I get everything I need to modify the control. Hans
|
Pages: 1 Prev: Calling a web service from MFC Next: Stay resident dll |