From: JD on 13 Nov 2009 13:09 Hi to all, If we do someting like: 1) create the class --> CLASS MySLE INHERIT SingleLineEdit 2) create the method --> METHOD Dispatch CLASS MySLE 3) create SLE controls SLE_1, SLE_2, SLE_3 4) declare the SLE controls 1, 2 and 3 as inherit MySLE Is it possible in dispatch to know in witch control the user are when he is imputing the data? TIA Jairo.
From: Stephen Quinn on 13 Nov 2009 18:35 Jairo > Is it possible in dispatch to know in witch control the user are when > he is imputing the data? You might also tell us what your trying to achieve by manipulating controls this way. You'd need some way of telling the control to 'act' in a particular manner at runtime which is very difficult to do as all you have is the data entered by the user to define any change of behaviour. If you want the controls to 'act' in a particular manner then program the intelligence into individual controls and inherit from them. CYA Steve
From: Geoff Schaller on 14 Nov 2009 01:10 Of course. "JD" <jdhora(a)ig.com.br> wrote in message news:9c514924-e8b6-4571-bdd4-056a1abead97(a)b2g2000yqi.googlegroups.com: > Hi to all, > > If we do someting like: > > 1) create the class --> CLASS MySLE INHERIT SingleLineEdit > > 2) create the method --> METHOD Dispatch CLASS MySLE > > 3) create SLE controls SLE_1, SLE_2, SLE_3 > > 4) declare the SLE controls 1, 2 and 3 as inherit MySLE > > Is it possible in dispatch to know in witch control the user are when > he is imputing the data? > > TIA > > Jairo.
From: Johan Nel on 14 Nov 2009 01:25 IsInstanceOf(SELF, #SLE_1) Geoff Schaller wrote: > Of course. > > > > "JD" <jdhora(a)ig.com.br> wrote in message > news:9c514924-e8b6-4571-bdd4-056a1abead97(a)b2g2000yqi.googlegroups.com: > >> Hi to all, >> >> If we do someting like: >> >> 1) create the class --> CLASS MySLE INHERIT SingleLineEdit >> >> 2) create the method --> METHOD Dispatch CLASS MySLE >> >> 3) create SLE controls SLE_1, SLE_2, SLE_3 >> >> 4) declare the SLE controls 1, 2 and 3 as inherit MySLE >> >> Is it possible in dispatch to know in witch control the user are when >> he is imputing the data? >> >> TIA >> >> Jairo. >
From: JD on 16 Nov 2009 10:18 On 13 nov, 21:35, "Stephen Quinn" <stevej...(a)bigpondSPAM.net.au> wrote: > Jairo > > > Is it possible in dispatch to know in witch control the user are when > > he is imputing the data? > > You might also tell us what your trying to achieve by manipulating controls > this way. > > You'd need some way of telling the control to 'act' in a particular manner > at runtime which is very difficult to do as all you have is the data entered > by the user to define any change of behaviour. > > If you want the controls to 'act' in a particular manner then program the > intelligence into individual controls and inherit from them. > > CYA > Steve Depending of the control i need block some characters. example: sle_1 typed character = "." or ";" ... return 1L; sle_2 typed character = "a", "b" ... return 1L. I think is not a good idea to create an inherited class of singlelineedit for each control. That is it. TIA. Jairo.
|
Next
|
Last
Pages: 1 2 Prev: VODC 2009 Next: Lowlevel printing (ESC-codes sending to printer) with Vista ***THIS WORKS*** |