Implementing search in RichInk - Windows Mobile Development and Hacking General

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?

Related

Possible to improve scrolling through Contacts?

I'm curious whether some of the more knowledgeable participants could have a look at my original thread in the Trinity forum and comment on whether a fix via a registry tweak is possible or it belongs in the "too hard" basket.
I've created a thread in this forum as I feel that my original thread is not receiving the proper exposure & some of the replies seem to detract from the topic at hand.
Cheers.
you can also use your keyboard and select the arrow up / down key for a few seconds to trigger the alphabet search (big letters). I realize this isn't exactly what your looking for, but probably much easier then using the scroll wheel.
You also might what to see if you can find a way to tie a hard key to the function up / down of the scroll wheel to trigger this function.
andason said:
You also might what to see if you can find a way to tie a hard key to the function up / down of the scroll wheel to trigger this function.
Click to expand...
Click to collapse
And that's basically the aim of this thread - to throw a few ideas around in the hope that someone might see it as a challenge & be able to come up with a workable fix.
As I don't have any programming skills, I don't know how difficult or easy it is to change the default behavior of the scroll wheel when opening Contacts. Hence, input from the more knowledgeable users with programming skills will hopefully clarify the difficulty of incorporating such a change.
http://forum.xda-developers.com/showthread.php?t=314048
famewolf said:
http://forum.xda-developers.com/showthread.php?t=314048
Click to expand...
Click to collapse
Thanks for the link. Will have a look at it.

smart touch key repeat rate

Hey
I'm trying to get the HP iPaq 614c in a usable state....what I'm finding is that the Smart-Touch scroll wheel is great, nice and quick and you can be productive.
But, because it is only one way (up <-> down), and because it usually functions as the equivalent of a "tab" key press (if on a PC) you can't use it for moving around in a text block.
You have to use the up down left right method by hovering over 5, then moving your thumb in the appropriate direction...however, the repeat rate on this is slow slow slow......
Its enough to not make me keep the 614c because it means editing SMSs or emails or even just random text fields like URLs is painful, particularly when you make a mistake.
Does anyone know any registry fields to change this?
I've tried the accessible settings in Settings > Buttons > Up/Down Control but they have no effect.
Thanks!
Si
yes i would be interested in this too.
I've searched the registry but couldn't fnd anything applicable. I found one key which was reported in another forum, but it had no effect.
WAY NOT TAP (WITH FINGER) ON THE AREA AND THEN MOVE L/R
I THINK YOU NEED TO HAVE "SLOW" MOVMENT FOR SOME APPS/FILES
well that is why I do, like you say. I guess slow movement may be useful for some things.
When you're in the middle of a text message or email though, it can take days to scroll through a message.
Its also very hard to pinpoint the cursor to the right area with out using the stylus (i.e. with your finger nail).....
...part of the beauty of the 614c for me is the phone keypad which allows T9 input (T9 input being super fast compared to any qwerty input with two fingers), but when you can't edit the message very easily it becomes annoying.
Im sorry to say that I don’t know/suffer from your prob
not that I do want problems, but the thing is that all text is within the bounds of the screen (for me on long doc/mail....) so the only need for fast thing is up down
maybe you have a different setting that lets you see "out of the screen" ~ the need for fast L/R scrolling
as for ie tx9 I don’t use this method so ….. I disabled the default settings of having it on first thing
for ie address I use pie-plus app ,it has within it's settings option for quick words/address and finger scrolling or open more then one tab etc.
but you asked so I will give you the solution
please backup your device
open a reg edit like this free one
http://www.phm.lu/products/PocketPC/RegEdit/
then go to HKLM/software/tegic/et9/ime
tap on D-WORD "carrierDefaultTextMode"
set value from "0" to "1"
enjoy
for l/r scrolling, what i'm talking about is when you're editing a text message or an email, they can get quite long. so say you're editing a message, then you realise you need to add a word at the start or edit a word in the middle, it takes ages to scroll to the middle or the beginning using the l/r scrolling on the smart touch wheel....and when i say ages, i mean ages, at least compared to how quickly it works on the smartphones with a hard nav joystick/wheel.
it has nothing to do with whether you can see the text on the screen. its to do with moving the caret/cursor/pointer around within the text.
thanks for that registry entry...i did try it, but it made no difference. IE still uses abc method.
i may look at that pie-plus ting though, looks like it may help.
sikittle said:
forthanks for that registry entry...i did try it, but it made no difference. IE still uses abc method.
i may look at that pie-plus ting though, looks like it may help.
Click to expand...
Click to collapse
works for me
did you save the reg by "exit " turn off the device for 10 sec then SR ?
any way i will also try to look into the scroll....
it changes the default method for applications like Internet Explorer for you? not just SMS composing?
I'll try it again...
hey yeah
that did work, thanks!! (making the default mode actually work as default in all circumstances)
i just typed it wrong.
told you so i will also look into the wheel thing im now into helping with this http://forum.xda-developers.com/showthread.php?t=403736

more option etc. mainly 4 ipaq 600
hmmmm.....do you know how to make that keyboard fix work even when you install a 3rd party keyboard.
I was trying to install a finger friendly keyboard for the times when you have to type in passwords or other such delicates, but if i do that after having made that modification it loses it as the default.

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.

[Q] What ViewGroup is GoogleMaps made of?

I would like to simulate a grid map with each cell composing an ImageView, and create a tile-based map.
I have done this before using a GridLayout, and it worked, but the problem is, it cannot accommodate the amount of data that I need.
In my previous question, I couldn't find a nice solution on how to get a GridView to act as I wanted.
I tried this two-way-gridview but I cannot make it work, and its lack of documentation on how to use it makes things difficult.
I'm not sure also if it can scroll diagonally, because I really need to make my map scroll in 2 dimension concurrently.
ViewGroups I have tried:
GridLayout - Does what I want but inefficient in memory management.
GridView - Lack of default functionality to scroll in two dimensional way.
PS. Where do I find Q&A forum? Before posting this, site says, this is not belong here. Please migrate. Thanks!
quick hint : decompile google maps with apktool and explore XML
or do a google search
http://developer.android.com/reference/com/google/android/gms/maps/MapView.html

Categories

Resources