Drag-select in C#? - Windows Mobile Development and Hacking General

Does anyone now how to do a drag-select in C#?
Specifically, I have a listView object and would like to be able to drag-select items in the list ('select - shift - select' works but requires the keyboard to be used).
If anyone can explain how this is done or point me in the right direction it would be appreciated.
Cheers.

Related

Implementing search in RichInk

Hi everybody!
I've written a small app that uses a richink control to display a lot of text.
I want to add a simple search capability, but I can't figure out how to scroll the control to the right location. I stream out plain text and my algorithm fineds the character where the search string begins. But I couldn't find any way of determining by how much I should scroll the control.
It also seems the WM_SCROLLCARET doesn't work.
Can any one help me please……
Ok last desperate plea for help, anybody?

Scroll bar control, accessing, WM_HSCROLL

Hi all (and no worries vijay555.... I'm new to forums and my Axim x51v... hope I'm doing this right... and thank you for your assistance!!!)
Keystrokes as code?
Specifically Excel Mobile keyboard shortcut Alt-PgUp/Dn (scrolls one screen width left/right)
I've created several Keystroke "routines" to minimize stylus use in Excel Mobile. I've mapped to hardware buttons, and they all work great... except Alt-PgUp(and PgDn). In Excel, these key combos will scroll one screen left or right, respectively. Other similarly-coded "routines" work as expected.
I've worked around this for now by recording screentaps in Excel's horizontal scrollbar. Unfortunately, the location of that s/b depends on whether SIP is active. If it is, the vertical co-ordinates of the screentaps become irrelevant and/or potentially destructive to my intended result. I prefer to avoid "position dependent" commands whenever possible for obvious reasons.
I have several other programs at my disposal to effect the Alt-PgUp/Dn shortcut(s).... IF I knew how to define the values(?) of Alt-PgUp/Dn in a script.
(MortScript, PHMkeys, Pen Commander, Spb FullScreenKb, PDA MediaKb)
I've been all over the web, and I think I understand keystroke scan-codes and values... and how they work together. Is there something akin to an ASCII "value" for this key combination? (099/0A1; 073/081; 153/161)?
Any ideas are appreciated. I've no aversion to research or work, but can't figure out what to ask or where to look further.
(I just really need a more direct/reliable functionality to scroll entire screen at a time left/right.)
Thanks in advance if anyone can help.
Dell Axim x51v WM5 (if it matters)
p.s. Thanks to Vijay555 for "permitting" this post here, and for putting me on the track of WM_HSCROLL (which I haven't had a chance to study yet).
Guys, just to say, there's never any reason to ask me for permission to post. As far as I'm concerned, post whatever you want using your own good sense!
pro-fit2:
Try something like this, as we discussed in the other thread:
Code:
//get current foreground window
HWND CurrentForegroundWindow_hwnd;
CurrentForegroundWindow_hwnd=GetForegroundWindow();
SendMessage (CurrentForegroundWindow_hwnd, WM_VSCROLL, SB_PAGEDOWN, 0);
V

Enable Cube with Softkey

I recently posted this on Mahmood's "tweaks and tricks" thread (after searching the Polaris forums unsuccessfully for an answer) but didn't receive any response. Does anyone know how to make this happen?
I recently saw a screenshot (somewhere around here) with "Cube" shown as the left Softkey (instead of the default "Calendar"). Does anyone know how I can program that Softkey to enable the cube? (It would be much easier than using the dreaded finger swipe).
I'm guessing it will mean a tweak to HKCU\Software\Microsoft\Today\Keys\112 (and probably HKLM\Software\OEM\TFLOSettings) but I'm not smart (or brave) enough to experiment.
Thanks.
Still looking for some help - Is this in the "too hard to do" pile or am I posting in the wrong forum?
I'd also be interested to know...
Or better yet, if it's possible to activate the cube by swiping top-down instead of the regular down-up (I'm using ContactPM and it's almost impossible to close the app without activating the cube!).
Thanks,
you can try advanced config app to change the soft keys...and all you need to know is what path enables the cube...im not at myh computer so you would have to search for advanced config....or i will post it when is get a chance...but it looks like the run app for the cube is
/windows/saplaywm.exe
and the command line parameters are
"/program files/sclpf/version 1-00.swf
hpe this helps...
RiNo808 -
First, thanks for trying to help.
Unfortunately I can't find saplaywm.exe (or anything close) on my TC (in \windows or anywhere else) and just typing it in as a new string value for Key 112 without really knowing where to point to it gets me an error message ("cannot be opened... not signed... components cannot be found...".
Should I be downloading it from somewhere?
OBTW, does the "808" in your name stand for your area code?

Smartouch and Zoombar

I am trying to find a way to mess with
HKLM/Software/HTC/SmartTouch/ key in registry, which is supposed to control the zoom bar.
I did some research in several threads in this forum, but all I found was some info (mainly on TD1 threads) on how to make the zoom bar (or scroll wheel in TD1) produce scrolling in apps.
However, what I am interesting in, is ZOOMING within any kind of application. Any idea on how to achieve this? The aforementioned key contains values such as ClassName (which is the app's class, something that is not easy to figure out; any tool on finding out an app's class would be appreciated), WheelCount (which probably is sensitivity), and Mode (which I have no idea what it is).
Anyone could help with this?
I could imagine a few nice things to do with the Zoombar. As I'm missing the arrow keys, it would be great to define a few gestures to use up / down / left / right keys with the zoombar.
e.g.
slide to the right -> right key
slide to the left -> left key
tap on '+' -> up key
tap on '-' -> down key
jcan said:
I am trying to find a way to mess with
HKLM/Software/HTC/SmartTouch/ key in registry, which is supposed to control the zoom bar.
I did some research in several threads in this forum, but all I found was some info (mainly on TD1 threads) on how to make the zoom bar (or scroll wheel in TD1) produce scrolling in apps.
However, what I am interesting in, is ZOOMING within any kind of application. Any idea on how to achieve this? The aforementioned key contains values such as ClassName (which is the app's class, something that is not easy to figure out; any tool on finding out an app's class would be appreciated), WheelCount (which probably is sensitivity), and Mode (which I have no idea what it is).
Anyone could help with this?
Click to expand...
Click to collapse
Hi jcan,
Did you manage to find ways to resolve your question? Kindly share with me please!
Try here:
http://forum.xda-developers.com/showthread.php?t=512614&page=5
Thanks for the link mattan, but I had already tried the Advanced Config solution... It is true that you can add Smartouch capability in active apps from there, but the problem is that I tried some (e.g. GSFinder+), and it worked as a scroll device.
What I am trying to find is a way to make the zoom bar work universally as its name says, i.e. zoom. It would be very nice to be able to zoom in anywhere in the device, like having a magnifying glass. Unfortunately, I haven't found anything yet but I know that the solution is hidden somewhere in the Smartouch reg key... Let's hope some fellow xda member will enlighten us!
and it worked as a scroll device.
Click to expand...
Click to collapse
Actually it's not, it's work like hardware Up/down key. In some case you can redefine action on it (In program settings), for example CorePlayer, or some games.
I think biotouch must be modified for this
jcan said:
Thanks for the link mattan, but I had already tried the Advanced Config solution... It is true that you can add Smartouch capability in active apps from there, but the problem is that I tried some (e.g. GSFinder+), and it worked as a scroll device.
What I am trying to find is a way to make the zoom bar work universally as its name says, i.e. zoom. It would be very nice to be able to zoom in anywhere in the device, like having a magnifying glass. Unfortunately, I haven't found anything yet but I know that the solution is hidden somewhere in the Smartouch reg key... Let's hope some fellow xda member will enlighten us!
Click to expand...
Click to collapse
What you would need to do it actually write an application that zooms the screen in hardware (similar to ctrl + mouse wheel zooming in Mac OSX) and control it with the zoom bar in applications that don't work with the zoom bar at present. I haven't actually used GSFinder+ but if doesn't have some sort of zoom level available to it through a menu function or on screen button then there is no way the zoombar will magically give it (or any other non-zooming program) one.
OK, I get it then... So, if an application does not support zooming, then the zoombar can only be used as a scroll device (or up-down key)...
I guess we will have to settle with that type of use then, until a screen zoom application comes up.
jcan said:
OK, I get it then... So, if an application does not support zooming, then the zoombar can only be used as a scroll device (or up-down key)...
I guess we will have to settle with that type of use then, until a screen zoom application comes up.
Click to expand...
Click to collapse
this is what u want :
criszz said:
this is what u want :
Click to expand...
Click to collapse
What does this cab exactly do, mate?
Read and download here:
http://forum.xda-developers.com/showthread.php?t=406206

[Q] Confused with coding for layout.

Hi there, long time lurker first time poster here!
Slowly getting into android but i really cant get my head around the layouts. I would love to be able to use the AbsoluteLayouts but that isn't a good idea anymore.
Basically after some work i have managed to get a gallery working at the top of the screen. I want my app to look like this in essence: Ok can't post outside links at the moment, fair enough. Think of the android market. Icons to the left and a bit of information for each app next to it and a buy button on the right.
However i have no idea where to start off. Since i have the gallery already i have no idea how i can add things underneath it without screwing anything up.
Can anyone help? Thanks in advance!
Sorry to bump but the issue has changed, I have built an app but would like like the text to be besides the icon. Any chance someone can help? Using a linear layout.
http://img263.imageshack.us/i/sellscreen.jpg/
RED_ said:
Sorry to bump but the issue has changed, I have built an app but would like like the text to be besides the icon. Any chance someone can help? Using a linear layout.
http://img263.imageshack.us/i/sellscreen.jpg/
Click to expand...
Click to collapse
Are you using a List View? Looks like one.
How do you build up your content for the list?
In my view the best solution for your problem would be:
- Use a ListView
- Build your own ListAdapter (drived from BaseAdapter for example)
The Adapter builds the view for each item (or recycles an already built up view, the ListView handles that).
The view for each item would be a horizontal oriented LinearLayout with two items (the image and the text) and the adapter fills the layout with the information of the current item.
For better layout handling I would define the layout for the items in an extra xml file and use the LayoutInflater-Service inside the Adapter (if a view has to be built).
Hope this helps and points into a helpful direction
Devmil
Thanks for replying, managed to find a solution in the end without using ListView. Thought about moving to a RelativeLayout as its more effcient but as my app is very small anyway in the end i've just gone and used nested LinearLayouts with a textview and imageview in each one.
Ridiculously simple when you look back on it.
I was actually going to use this tutorial which does what you explained i think: http://www.anddev.org/iconified_textlist_-_the_making_of-t97.html but it left me with a force close error so that went out the window.

Categories

Resources