![]() |
|
[.NET] How to handle keypress on a custom theme - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [.NET] How to handle keypress on a custom theme (/showthread.php?tid=5948338) |
How to handle keypress on a custom theme - InterGalactic - Mar 7, 2019 Hello guys. So today i need to pass a level and understand how to add in a custom theme the option to catch keypress. What im trying to do is use the keypress option on the main form. But if it isn't coded inside the theme it will not work. Any help will be accepted. Thanks! RE: How to handle keypress on a custom theme - 0xDEAD10CC - Mar 7, 2019 There's not enough information here, catch keypress within a control on the form or the form itself? It depends on your controls too. RE: How to handle keypress on a custom theme - Vexallus - Mar 8, 2019 We can't help you out if we don't know what kind of theme you are using and what funcs is that theme exactly using ... RE: How to handle keypress on a custom theme - Dredd - Mar 8, 2019 Just use the normal global form keypress function, should work fine. RE: How to handle keypress on a custom theme - InterGalactic - Mar 10, 2019 (Mar 7, 2019 10:11 PM)0xDEAD10CC Wrote: There's not enough information here, catch keypress within a control on the form or the form itself? It depends on your controls too. So let me explain it again. I have the theme. Keypress inside the form is not working for the themes textbox. The theme is downloaded from hf and it's a little bit changed. The keypress on the form application is not firring up at all. That's something i have inside the theme. ![]() And im asking, saying. Do i need a special keypress handler for the textbox keypress to respond inside the main form ? ( Also whatever i code inside the themes code, lets say inside a textbox keypress eventhandler is working. But if i code it inside the forms textbox keypress it is not. And i use the same code. ) (Mar 8, 2019 10:59 AM)Dredd Wrote: Just use the normal global form keypress function, should work fine. It is not working (Mar 8, 2019 01:23 AM)Vexallus Wrote: We can't help you out if we don't know what kind of theme you are using and what funcs is that theme exactly using ... I think this post is my answer for you. RE: How to handle keypress on a custom theme - 0xDEAD10CC - Mar 10, 2019 You need a handler for the actual control, doesn't make sense to be using the one for the container of the control. RE: How to handle keypress on a custom theme - InterGalactic - Mar 11, 2019 (Mar 10, 2019 11:44 AM)0xDEAD10CC Wrote: You need a handler for the actual control, doesn't make sense to be using the one for the container of the control. I know, what im saying is i don't know what to code inside there, does the keypress need to return a value for it to work? For now i have coded this inside the theme: ![]() But as i said i don't want it coded there because is taking effect on all the textboxes. |