Native C++, Windows Mobile: Changing Focus Between Elements in Window - Non-Touchscreen Windows Mobile Other

I have a main window, and various comboboxes and buttons created within in. (CreateWindow has been used for all mentioned)
When the main window loads, focus is completely missing. I can't select anything. I first tried to use SetFocus and passed the main window handle. No luck. I then tried to SetFocus to a single element. This worked. When the window loaded, one of the comboboxes had focus. However, I couldn't move to any other of elements on the screen.
I want to try avoid using a DialogBox here. With a window, how do I set/change focus between various elements (comboboxes and buttons)?
Thanks in advance!

Related

Visual Studio questions

1. How can i make WVGA application in visual studio? Largest screen option i can create is VGA (Windows Mobile 6 Professional VGA) and then there is blank area on bottom of application.
2. How can i make separate form for landscape/portait (so i can reorder elements when phone is in landscape)?
3. Is there any better emulator? Included one is slow and i cant set up anything that need soft reset (when i do soft reset, visual studio launch new emulator window, because old one "disconnected")
4. Is there any way to remove unsigned warning, when you test directly on PDA? Its annoying that i must confirm every time i want to test something.
Visual Studio Answers
1. Download the Windows Mobile 6.1.4 SDK it has a 400x800 device. Or download 6.5 for a device labeled WQVGA. The 6.5 Emulator is even slower than 6.1.
2. Don't bother with two forms, in the OnPaint (MFC..NET) or WM_PAINT (Win32) code read the size of the Client Area of the screen (GetClientRect() or Form.ClientSize) , then decide whether it is Landscape or Portrait and position the stuff on the screen exactly where you want it.
3. You are stuck with the stuff that MS releases, unless the phone manufacturers decide to release their own images. (Unlikely.)
4. If your EXE is unsigned the OS will turn its nose up at it, the first time it is run and ask you if you want to execute it. If it is recompiled the phone thinks it is a different program, and asks you again. Sign the image to stop it.
works just fine for me
in emulator options you can set the res to what you want
and in the size of your form you can set the size to what you want
if you're not up for altering the res yourself then you can dl the se x1 sdk it comes with a ready
wvga emulator
For # 1, you can download the complete developers toolkit here.
For # 2, if you mean how to change the emulator to landscape... go to File -> Configure -> display on the emulator and select the required angle in the Orientation field. Then you need to manually set the screen to landscape inside the emulator (Windows Mobile) by going to START->SETTINGS->SYSTEM->SCREEN and selecting LANDSCAPE. The emulator should change this automatically depending on the screen orientation, but it doesn't (?).
Don't bother with two forms, in the OnPaint (MFC..NET) or WM_PAINT (Win32) code read the size of the Client Area of the screen (GetClientRect() or Form.ClientSize) , then decide whether it is Landscape or Portrait and position the stuff on the screen exactly where you want it.
Click to expand...
Click to collapse
Can you please explain how to work with that?
it's only relevant if you do c++ without .net
Sorry about that, I was rushed, and it was a bit vague.
In Win32 your application is sent a WM_PAINT message when the window requires redrawing. In this case trap the message and then use GetClientRect() to obtain the dimensions of the client area. Depending on whether the screen is wider than taller, or vice versa, it will tell you the orientation of the screen.
In MFC or .NET the OnPaint event of the form is triggered. Add code in this event to examine the form's ClientSize property to find the same details. This is a Size object which has Height and Width sub values. i.e the width is Form.ClientSize.Width and the height is Form.ClientSize.Height. By comparing these values you can figure out the orientation.
This event occurs before the individual elements of the screen are drawn, so you can change their Left and Top properties to move them around to where you require them on the form.
I downloaded WinMobile 6.5 Development kit, but there was not WVGA option under FormFactor, only new emulators appeared. I solved problem with manually increasing form height.
Anyway, thanks for all information!

Xoom WebKit CSS position:absolute issues

I have a webpage loaded on my Xoom's Android Browser which has 3 absolutely position div's - a header which is 40px in height and spans the entire width of the page, a left menu 200px in width and a main content section filling the remainder of the page.
Inside the content, a number of <select> controls are present and, when the page is posted back, more <select>'s are added to the content page based on the initial selections.
When the page first loads, I am able to select values from the lists and enter values into text fields, etc. When the page is posted back to the server, I am unable to enter any values into any of the form controls on the page; from text fields to lists.
When I click on a control, a focus rectangle appears around the control but also another artifact appears on the page in the position the control is in the content section but relative to the top left corner of the page.
I believe that it may be this artifact and positioning error that is causing my issue but there seems to be no debugging tools available that allow me to inspect the source of a webpage in the Android Browser.
I've loaded Opera Mobile onto my Xoom and this works without any problems. I attempted to use Firefox but this seemed to buggy. All the usual desktop browsers work without fail. Dolphin does not work on the Xoom.
I guess this indicates a problem with WebKit however I wouldn't even know where to begin to fix this (other than change the CSS position attribute, which I can't).
Can anyone offer any advice as to what I could try? Has anyone experienced anything like this? Unfortunately, I really need to get this working on a tablet - preferably a non-Apple unit.
Thanks in advance,
Kev
Are you writing html or just trying to get a certain site to work?
Haven't really read through the entire thread lol
Did you try to get into debug settings in the Xoom? I don't remember how but you can Google it.
Sent from my PC36100 using XDA App
This is not development. Moved to QA. Good luck with the problem, though.

[App] Write - a word processor for handwriting (freeware)

Write is a word processor for handwriting, available for Android 3.0 and later and Windows tablet PCs. Write provides a unique set of tools which ease the editing of handwritten text by grouping strokes into lines, much like typed text in a word processor.
Google Play: https://play.google.com/store/apps/details?id=com.styluslabs.write
Features:
* tools: draw, erase, select, insert space, and add bookmark
* configurable stylus button support in Android 4.0
* move strokes and insert space in multiples of the page's ruling
* reflow handwritten text with the insert space tool
* insert bookmarks and label them with handwriting
* cut, copy, paste selection
* unlimited undo/redo jog dial (volume keys can also be used for undo/redo)
* pan/zoom with two fingers
* customize and save pens
* user defined page size, color, and ruling
* pages can grow automatically as you write
* split screen with web browser to take notes from web pages or videos
* html/svg document format viewable in any modern web browser
* view thumbnails as a grid or list
* when viewed as list, arrange thumbnails by drag and drop
Comments, bug reports, and feature requests can be posted to this thread; I look forward to hearing your thoughts!
-- Matt
Update (Aug 31):
v1.5 adds ability to export all docs as a single zip file, more options for pen/touch input, and more
About to try it out I'll report back
Edit:
DUDE THIS IS AWESOME.
-UI is nice and clean, also very intuitive
-Hand writing experience is the best I've used.
Things to consider:
- fit to screen button as a shortcut if you've zoomed too far in and need to get out quick.
- page navigation could be located in the bottom right and left corners of the screen, makes it a bit more intuitive. Where the up and down arrows are Now for navigation could act as an area for stating what page your on.(e.g page 6/9)
Things I'm personally looking for:
- drop box integration and PDF annotation support
Keep up keep up the good work.
Sent from my ThinkPad Tablet using xda app-developers app
Why isn't there an option for zoom and pan only with touch input?
Sent from my ThinkPadTablet using xda app-developers app
Edit: I could have sworn touch input always drew lines. Installed again and now it works fine. My bad.
DeucesAx said:
Why isn't there an option for zoom and pan only with touch input?
Sent from my ThinkPadTablet using xda app-developers app
Click to expand...
Click to collapse
Not sure I understand the question - the default behavior is to allow for zooming and panning with two fingers (if the fingers start very close together, zooming is disabled). This behavior can be configured so that you can pan with a single finger or disable touch input entirely, in which case the pen button can be configured to pan (and there are zoom options available in the application menu).
If the pen isn't being recognized, try setting Force Pen in the preferences.
-- Matt
As a long-time lurker, I registered an account just to talk about this app! I've been in love with my Thinkpad Tablet for almost a year now, but I never really "clicked" with any of the handwriting apps available for it, which really sort of frustrated me. I tried out your app, and so far I've been really enjoying it! I do have a question: is there an easy path to convert the handwritten text from the Write app on the tablet into a typed form on my PC?
Basically, I'm looking for a way to use the TPT to capture my handwriting when I'm out and about, as it's easy to carry the TPT and work in any environment. The ideal solution would be some function/process to then export the document from the Write app and have it convert it to .txt or something. If I had to e-mail it to myself, or use ES File Explorer to drop it onto my file-share at home where I could get at it from my desktop PC, that would be fine too.
Just looking for recommendations on the least-frustrating way possible to do what I want to do!
Thank you very much for this app!
darkwingduck13 said:
I do have a question: is there an easy path to convert the handwritten text from the Write app on the tablet into a typed form on my PC?
Click to expand...
Click to collapse
If you have Evernote installed, you can use "Send Current Page" from the Document submenu and select Evernote, which will OCR the page and make it searchable. I'm not sure if there is an easy way to extract the converted text. In the future, I will look into exporting all pages at once to Evernote.
What are your main reasons for wanting to convert handwriting to text (especially since any conversion will introduce quite a lot of errors unless your handwriting is flawless)? To be consistent with the rest of your documents? For searching? For sending to others? Something else?
-- Matt
PBSurf said:
If you have Evernote installed, you can use "Send Current Page" from the Document submenu and select Evernote, which will OCR the page and make it searchable. I'm not sure if there is an easy way to extract the converted text. In the future, I will look into exporting all pages at once to Evernote.
What are your main reasons for wanting to convert handwriting to text (especially since any conversion will introduce quite a lot of errors unless your handwriting is flawless)? To be consistent with the rest of your documents? For searching? For sending to others? Something else?
-- Matt
Click to expand...
Click to collapse
Wow, thanks for responding to my question Matt!
I don't have Evernote installed, but I'll install it just to try the feature you're talking about.
Basically, I would want to convert handwriting to text in order to be able to do a number of things:
1. Easily post things I've written to my blog.
2. Move chapters of my stories into an editable word-processor-compatible format.
3. Send to an editor.
4. Archive in an easily appendable format...in the case of my stories, each one would eventually go into a single larger file as it's polished/finished and saved on my network drive and backed up.
The writing application that came with the TPT was pretty decent at translating my writing to text, but I didn't like using it to write as much as yours, and on top of that, when I rooted the tablet and installed CM 8 (or whatever version this is), that handwriting app didn't come along for the ride. I didn't realize at the time that it wouldn't be part of the package, so I'd been looking for suitable replacements. Quill had been where I'd settled until I saw your post, and I just like the functionality of your app better so far when it comes to usability while doing my scribbling.
This is a great handwriting app. I have bee using Quill for almost a year since I couldn't find another app that can do what it can. However, this app does more than Quill and I am considering switching over to this app. There are a few things I would like to see added to this app before I do. I would like to be able to draw lines and geometric shapes. It would be great if you could add an auto save function, that way I dont have to worry about losing my notes. While using Write I found myself getting ticked off by the zoom levels. When I tried to zoom to lever .65, it would automatically got to .75. Instead of having the volume keys used to undo/redo it would be better to have the used for changing pages and adding pages. I also noticed that if you have many pages of notes you wont be able to quickly go to a specific page of notes, you have to go through all the pages. A way to get around that is by making thumbnails of the pages inside the document so you can easily browse through them. Overall this is a very good app, it just needs those few things to completely win me over.
sakobatoneko said:
This is a great handwriting app. I have bee using Quill for almost a year since I couldn't find another app that can do what it can. However, this app does more than Quill and I am considering switching over to this app. There are a few things I would like to see added to this app before I do. I would like to be able to draw lines and geometric shapes. It would be great if you could add an auto save function, that way I dont have to worry about losing my notes. While using Write I found myself getting ticked off by the zoom levels. When I tried to zoom to lever .65, it would automatically got to .75. Instead of having the volume keys used to undo/redo it would be better to have the used for changing pages and adding pages. I also noticed that if you have many pages of notes you wont be able to quickly go to a specific page of notes, you have to go through all the pages. A way to get around that is by making thumbnails of the pages inside the document so you can easily browse through them. Overall this is a very good app, it just needs those few things to completely win me over.
Click to expand...
Click to collapse
The document is automatically saved whenever it loses focus or the screen turns off, so the only thing that could cause you to lose your notes would be Write crashing ... if you've experienced this, let me know! Or if by auto save, you meant backing up to a different location, you could try something like SugarSync, which allows you to sync folders on Android. You can also change the folder where documents are saved (in advanced preferences) for other sync applications that don't let you specify the folders to be synced.
I've been thinking about the best way to handle geometric shapes, so there might be something like this in a future release (but not the next release).
The zoom is intentionally limited to discrete steps. The idea is to usually work at zoom = 1 and adjust the page size and ruling (i.e. line spacing) as desired. So if you prefer the way the page looks at zoom = 0.65, you can change the default Y ruling from 40 to 40*0.65 = 26.
The next release of Write will allow the volume keys to be configured.
Document navigation could definitely be improved (e.g. thumbnails). There are a couple things you could try in the meantime. First, zooming out all the way (0.10) should make it possible to scroll through pages pretty quickly - double tap with two fingers to zoom to 100% on the desired page (or one finger, if you switched the preference to single finger panning). Second, for pages you frequently go to, add a bookmark on the page next to the title or some other identifying writing - you'll then see it in the bookmark list and can jump to it by tapping on it in the list.
-- Matt
PBSurf said:
The document is automatically saved whenever it loses focus or the screen turns off, so the only thing that could cause you to lose your notes would be Write crashing ... if you've experienced this, let me know! Or if by auto save, you meant backing up to a different location, you could try something like SugarSync, which allows you to sync folders on Android. You can also change the folder where documents are saved (in advanced preferences) for other sync applications that don't let you specify the folders to be synced.
I've been thinking about the best way to handle geometric shapes, so there might be something like this in a future release (but not the next release).
The zoom is intentionally limited to discrete steps. The idea is to usually work at zoom = 1 and adjust the page size and ruling (i.e. line spacing) as desired. So if you prefer the way the page looks at zoom = 0.65, you can change the default Y ruling from 40 to 40*0.65 = 26.
The next release of Write will allow the volume keys to be configured.
Document navigation could definitely be improved (e.g. thumbnails). There are a couple things you could try in the meantime. First, zooming out all the way (0.10) should make it possible to scroll through pages pretty quickly - double tap with two fingers to zoom to 100% on the desired page (or one finger, if you switched the preference to single finger panning). Second, for pages you frequently go to, add a bookmark on the page next to the title or some other identifying writing - you'll then see it in the bookmark list and can jump to it by tapping on it in the list.
-- Matt
Click to expand...
Click to collapse
I was worried that the document didn't save by itself since there was an option under the document menu to "save now." I thought that meant that I would have to click on that every time I finished taking notes. Adjusting the page size has solved the problem I was having with the zoom. The more familiar I get with this app the more comfortable I am writing with it. Keep up the good work and thanks for the fast reply. Oh, when will the next release be, if you don't mind me asking?
sakobatoneko said:
Oh, when will the next release be, if you don't mind me asking?
Click to expand...
Click to collapse
The next release will probably be early in January.
-- Matt
I love how responsive it is, best free/paid app I've tried. I would like to see a different background other than normal paper. I have always liked writing on graph/grid paper. Thanks for the app and keep up the good work.
daswahnsinn said:
I love how responsive it is, best free/paid app I've tried. I would like to see a different background other than normal paper. I have always liked writing on graph/grid paper. Thanks for the app and keep up the good work.
Click to expand...
Click to collapse
You can configure the page color and background by selecting Page Setup from the application menu. To get grid paper, for example, select one of the "grid" options for "Ruling".
-- Matt
Been messing with some of the setting and found the grid/graph paper, that has tons on options, and I found pen only input which always is need or at least for me it is. The more I play around with this app the more I see what other apps needed.

Start tiles

This is a thread dedicated to customizing the Start screen. Share any tips or tricks you've found for making your own tiles, and discuss how to customize tiles even more. Here we go.
1. To create a tile for a folder or library, go into windows explorer, select the folder you want to pin, and hit the "Easy access" button. Hit "Pin to Start"
2. To pin files to the Start screen, you'll need to download an app called "Tile A File"
3. To speed up the time it takes to load the Start screen, select any tile you don't use often and hit "Turn live tile off"
4. To pin a website, navigate to it in the "Modern" version of IE, and hit the pin button on the bottom bar. To pin a website with a custom logo, download the app "Tile Genie"
If you have a suggestion, leave a comment, and I'll add it to the list!
P.S. I'm working on a way to get an extra row of apps, and will post here if I figure it out!
Please hit the thanks button if I was helpful!
Anyone know of a way to add html code to a website, maybe by using a style sheet or something? Not to actually add it to the server, but make it show like it's part of the code on the local machine. I'm thinking add the tile code you can get from the Microsoft site to any site you want to pin, then pin it...
There are desktop IE add-ons that support adding "user scripts" (think Greasemonkey on Firefox) but I don't expect any of them to work on Windows RT. You could give it a try, though. Otherwise... custom CSS rules are allowed, and IE allows (or allowed, in the past) certain amounts of JS in CSS. You could try CSS "behaviors" (which requires creating a script file and setting it to be included) or CSS "expression" values (as in, "border-width:expression(3*11)" or even invalid attributes such as "xyz:alert('CSS!')" or some such) but bear in mind that those may only work if you put the browser in compatibility mode.
Thanks. Still trying to work it out. Did find an app to do it though!

[APP][3.0+] LectureNotes - help resources

There are several videos and instructions by LectureNotes' users concerning different aspects of the app (besides the searchable help page that comes with the app, select `Help´ in any of the main menus), so I thought that it might be helpful to collect links to them here in a single thread. Please feel invited to post additional ones!
Videos:
http://www.youtube.com/watch?v=U-c4DI2Tr5Y
http://www.youtube.com/watch?v=ZhW1Mwmmp-k
http://www.youtube.com/watch?v=39z4R_2DUj0
http://www.youtube.com/watch?v=F5KrP-ccwg0
http://www.youtube.com/watch?v=e_eDpWhu058
Instructions:
http://www.instructables.com/member/milessthomas/
There are separate threads with examples for custom paper pattern coded in JavaScript http://forum.xda-developers.com/showthread.php?t=1870639 and custom drawing tools coded in JavaScript http://forum.xda-developers.com/showthread.php?t=2610695.
There is a video by a German user:
http://www.youtube.com/watch?v=R8sM7uJkIJw
A short video how to combine audio and video stream produced by LectureVideos into a single MKV container file
http://www.youtube.com/watch?v=kTTc-2EtPAw
I havent figured out how to set custom page when creating a notebook. The presets are A4 and Letter, but what would be setting for A5 and B5 portrait on Note 1 (800 x 1280 I think)?
@nbog: What should be the difference between A4 and A5? Both formats have the same aspect ratio.
[emoji15]
Cutter non-standard clipboard
I was wondering if there was a way to set the nonstandard clip board to just hold a couple of .png files. I want to put circuit elements to use when doing circuit analysis so I don't have to keep drawing them.
@caffeinatedinsanity: The non-standard clipboard displays material from numerous sources, including recent imports, the standard Android clipboard and various non-standard clipboards, and content located in the `DCIM´, `Download´, and `Pictures´ directories. If you place your content in any of the latter directories (for instance in a subdirectory in the `Pictures´ directory), it will appear in the non-standard clipboard overview.
acadoid is best developer
Thank you so much for such quick and helpful responses. I was wondering if there was a way to move the menu so that it is on the left side of the screen instead of the top. That would just personally make it easier for me to use the different options with my off-hand so I can streamline my use of different features.
@caffeinatedinsanity: The so-called action bar is at the top in Android standard UI.
Would it be possible to
Would it be possible to set a default option for the fill function of the cutter? it seems like a small thing but would make the fill function much more useful and streamlined at least in my opinion because I only ever find myself using one so being able to set a default would make it much quicker.
I have a question about the extensions.
Does Lecturevideos only take a video recording of your screen? or could it be used with a webcam to record a professor's lecture and have that included in your notebook beside the notes? becasue i would love to get that be able to have a video along with my notes of the lecture.
@acadoid Is it possible to export a few pages to pdf from a notebook? Like I know I can do either the entire notebook or one page, but I can't seem to find a way to do it for a number of pages between 1 and the total number.
@caffeinatedinsanity: You can export a subset of pages to PDF by opening the notebook in notebook overview (either directly from the notebooks board by long-clicking on the notebook and selecting `Notebook overview´ in the popup menu, or by opening the notebook normally and selecting `Notebook overview´ in the main menu), click on the `tag´ icon to active tag mode, click on the pages to tag them, and select `Export tagged pages to PDF´ in the main menu.
Is there a way to save an item to the special clipboard permanently? like just pinning it there somehow? or even just being able to use an image as a drawing tool would work even better.
@caffeinatedinsanity: LectureNotes looks in several directories for content, including ‘Download’ and ‘Pictures’ (Android access restrictions apply).
Hi there! Is there any plan to port LN to ChromeOS? I'm a paid user of LN and I'm using LN on my Chromebook tablet (hp x2 11). However, the copy/paste is tedious without being able to copy/paste everything between ChromeOS apps like Google Keep. Thanks.
@testrider: I do not understand. What exactly is ‘tedious’? What did you do? What happened? Was there an error message?
@acadoid What I meant was, I could easily copy text & images from a web site and paste them into Keep when doing research. That's not easy or possible to do with LectureNotes. For ex, to transfer an image from a web page to LectureNotes I had to save the image as a file, then go to LectureNotes and import it. Many more steps than doing Ctrl-C, then Ctrl-V to Keep without having to save into a file.
@testrider: This is not LectureNotes' fault, images copied in Chrome for Android can be pasted in LectureNotes.
Text copied in Chrome for ChromeOS appears in Android's clipboard (as it should) and you can paste it in LectureNotes, while images copied in Chrome for ChromeOS do not (which is weird). I found this behavior on all Chromebooks that I tested. I doubt whether this is intentionally, it rather seems like a bug in Chrome for ChromeOS or ChromeOS itself.
Did something change recently because I can no longer import pdfs to my lectureNotes that section of the settings is greyed out.
Please help because this takes LectureNotes from my all in 1 solution for notes to basically useless for my class notes
@caffeinatedinsanity: Did you uninstall PDFView?
If PDFView is still installed, then Android probably put PDFView 'on ice'. Newer versions of Android put apps 'on ice' if they were not launched by the user for some time. Simply launch PDFView (it will display a dialog box), that will 'de-ice' PDFView.
Restart LectureNotes after (re)installing/'de-icing' PDFView, then the menu entries and the settings for PDF import will be accessible again.

Categories

Resources