Professional UI Solutions
Site Map   /  Register


Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » CExtGridCellNumber question Collapse All
Subject Author Date
tera tera Oct 2, 2008 - 11:38 PM


Even if, during the input of the cell, KillFocus occurs

When contents of the input are not right, I want to control a cell


Because I am troubled, please teach it.


Technical Support Oct 6, 2008 - 1:06 PM

There are several ways to code a grid cell that validates the number input and displays a popup tip window. It’s possible to create a grid cell class which does this work. It’s possible to create plain grid, tree grid, report grid and property grid classes which validate the input of numbers and display tips. Besides it’s possible to display a popup tip window constantly while entered data is not valid and hide it only when entered data becomes valid. Alternatively, it’s possible to display a popup tip window only when the user presses the Return key and data is not valid. In the latter case it’s possible to prevent the editor from destroying itself and let the user continue editing or press Escape to cancel editing. Which case is preferable for you?

tera tera Oct 7, 2008 - 3:11 AM


I ask for a sample with a case of the former. 

Give my best regards

tera tera Oct 8, 2008 - 7:19 PM


Can you offer a sample program to me?


Technical Support Oct 9, 2008 - 9:19 AM

We are sorry for the delay with this reply. We coded the following simplest possible test project for you:

It displays a balloon tip near an in-pace activated grid cell editor with all the information about the edited text including its valid state.
You can modify our source code for display your text inside the tip window and perform your data input validation.

tera tera Oct 22, 2008 - 1:58 AM


There was malfunction.

I ask for an answer.


Technical Support Oct 23, 2008 - 2:10 PM

It looks like you are using screen coordinates somewhere where client coordinates should be used instead.

tera tera Oct 9, 2008 - 7:10 PM


Thank you very much.


Technical Support Oct 3, 2008 - 2:04 PM

Displaying a modal dialog from in-pace activated controls in toolbars, menus, grids is not correct. Please use a CExtPopupMenuTipWnd window instead. This advanced tooltip control can be used for displaying balloon like tooltips which Windows uses in the logon screen near user name and password editors when CAPS LOCK mode is on. You even don’t need to keep your own instance of the CExtPopupMenuTipWnd window. The CExtPopupMenuSite::g_DefPopupMenuSite.GetTip() code returns reference to the CExtPopupMenuTipWnd window which is used by most of Prof-UIS controls. You can simply show/hide this tip window in balloon or rectangular mode near the in-place activated editor depending on whether the currently entered data is valid. The CExtPopupMenuTipWnd::SetIcon(), CExtPopupMenuTipWnd::SetText() and CExtPopupMenuTipWnd::SetTipStyle() methods allow you to configure look of the advanced tip window. The CExtPopupMenuTipWnd::Show() and CExtPopupMenuTipWnd::Hide() methods allow you to show and hide a tip window when needed.

tera tera Oct 6, 2008 - 3:19 AM


(1)When I input it with Return key and was settled.

When input value is not right, I do not want to run Edit-DestroyWindow.

Please teach the description of the program.

(2) In addition, please teach general how to use CExtPopupMenuTipWnd.