Pb11.5 web development-development experience (small details and big problems)

Source: Internet
Author: User

1.: The w_main main form is of the MDI type. a dw control is placed on it for navigation..

The position is adjusted in the resize of w_main, but the effect is not very satisfactory and there are still strange phenomena.

Resize event:
Integer li_height, li_width, li_x, li_y
Li_height = This. workspaceheight ()
Li_width = This. workspacewidth ()
Li_x = workspacex ()
Li_y = workspacey ()
String ls_now
Ls_now = string (now (), 'hh: mm: SS fff ')
MessageBox ('1-'+ ls_now, 'X =' + String (workspacex () + 'y = '+ String (workspacey ()) + 'W = '+ String (li_width) + 'H =' + String (li_height ))

Dw_group.x = workspacex ()
Dw_group.y = workspacey ()
Dw_group.height = li_height-10

Mdi_1.x = li_x + dw_group.x + dw_group.width
Mdi_1.y = li_y + 4
Mdi_1.height = dw_group.height
Mdi_1.width = li_width-dw_group.width-8

MessageBox ('2-'+ ls_now, 'X =' + String (mdi_1.x) + 'y = '+ String (mdi_1.y) + 'W =' + String (mdi_1.height) + 'H = '+ String (mdi_1.width ))

Solution: From the PB11.5-EBF16640-3127 upgrade to pb11.5.1-ebf17123-4566, the interface shows a good problem, but ask what MessageBox order is still not becoming, although this does not affect what, but I am still confused about this issue. In addition, the window in opensheet can be maximized when CS is running, but BS cannot be maximized. It is confusing to maximize the window only when the second opensheet is opened.

 

2.: When the sheet window is opened, the maximum value cannot be achieved according to the settings, but the second sheet needs to be opened to maximize.

(: Correct the settings. The window can be maximized after careful observation, but the controls on the window are not adjusted .)

Solution: Write Data in open

This. width = parentwindow (). Dynamic wf_getmdiwidth ()
This. Height = parentwindow (). Dynamic wf_getmdiheight ()

Wf_getmdiwidth () and wf_getmdiheight () are the size of the MDI frame window, respectively.

3.: Adjust the widget size when the sheet window is resize.,

Usually in CSProgramYou can use newwidth and newheight to adjust the value during development. In BS, you must use workspacewidth () and workspaceheight ().

(: Correct the problem. After repeated tests and adjustments, we found that the problem of the scroll bar may be related to tabs in multiple windows. Therefore, we can narrow down the width and height by a little during repeated tests, I reduced the test size by 30)

For the reason, see. The first two are BS, the last is CS, the title bar newwidth and newheight, and MessageBox is workspacewidth () and workspaceheight ().

4.: The getfocus and losefocus problems in datawindow. Check the picture directly.

 

5.: dynamic problem.

A. // menu Reset
Wf_menu_reset (menuid, false, true)

There is no problem with this call.

// Menu Reset
Dynamic wf_menu_reset (menuid, false, true)

In this way, the Null Object reference error is returned.

B. Dynamic cannot be added to the rowfocuschanged event of datawindow.

Wf_qx_window (this. dataobject)

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.