Home > database >  Pb9, 8836 listView loading icon statement soon development environment, the compiled application is
Pb9, 8836 listView loading icon statement soon development environment, the compiled application is

Time:10-08

Pb9, 8836, li_row=lv_jsxz addlargepicture (gs_currentdirectory + "\ ResourcePortal. Ico"), listView loading icon statements, under the environment of pb development soon, the compiled program is slow, the development environment to load more than 10 quickly, without delay, the compiled program, 10 will require more than 10 seconds, affect the use, is the problem of dynamic libraries? Which is the specific document control?

CodePudding user response:

Master come in, please, help me

CodePudding user response:

setredraw

CodePudding user response:

A figure is slow or load multiple figure, what is the specifications of the icon, DLL is give enough production environment, you can write a concise code or put the compiled a package

CodePudding user response:

Listviewitem lv_item

Lv_jsxz view=listviewlargeicon!

Lv_jsxz. Addcolumn (" character name ", left! , 650)
Lv_jsxz. Addcolumn (" description ", left! , 1000)
Lv_jsxz. Addcolumn (" display toolbar ", center! , 330)
Lv_jsxz. Addcolumn (" style ", center! , 330)
Lv_jsxz. Addcolumn (" text location ", center! , 300)
Lv_jsxz. Addcolumn (" name ", center! , 170)
Lv_jsxz. Addcolumn (" icon "size, center! , 300)
Lv_jsxz. Addcolumn (" button interval line ", center! , 330)



Int li_row, I
For I=1 to 15

Li_row=lv_jsxz. Addlargepicture (" E: \ \ test program/Resource/Portal/Portal. Ico ")
Li_row=lv_jsxz. Addsmallpicture (" E: \ \ test program/Resource/Portal/Portal. Ico ")

Lv_item. Label='ABC' + string (I)
Lv_item. Data=https://bbs.csdn.net/topics/i
Lv_item. Pictureindex=li_row
Lv_jsxz. Additem (lv_item)
Next

Above is a code, alone in a PBL, compile the execution, there is no problem, into our system, compiled, and cycle time need more than 1 second, have a headache

CodePudding user response:

reference 4 floor hanyongbinlq response:
listviewitem lv_item

Lv_jsxz. Setredraw (false)
Lv_jsxz view=listviewlargeicon!

Lv_jsxz. Addcolumn (" character name ", left! , 650)
Lv_jsxz. Addcolumn (" description ", left! , 1000)
Lv_jsxz. Addcolumn (" display toolbar ", center! , 330)
Lv_jsxz. Addcolumn (" style ", center! , 330)
Lv_jsxz. Addcolumn (" text location ", center! , 300)
Lv_jsxz. Addcolumn (" name ", center! , 170)
Lv_jsxz. Addcolumn (" icon "size, center! , 300)
Lv_jsxz. Addcolumn (" button interval line ", center! , 330)



Int li_row, I
For I=1 to 15

Li_row=lv_jsxz. Addlargepicture (" E: \ \ test program/Resource/Portal/Portal. Ico ")
Li_row=lv_jsxz. Addsmallpicture (" E: \ \ test program/Resource/Portal/Portal. Ico ")

Lv_item. Label='ABC' + string (I)
Lv_item. Data=https://bbs.csdn.net/topics/i
Lv_item. Pictureindex=li_row
Lv_jsxz. Additem (lv_item)
Next

Above is a code, alone in a PBL, compile the execution, there is no problem, into our system, compiled, and cycle time need more than 1 second, have a headache ah


 

Listviewitem lv_item

Lv_jsxz view=listviewlargeicon!

Lv_jsxz. Addcolumn (" character name ", left! , 650)
Lv_jsxz. Addcolumn (" description ", left! , 1000)
Lv_jsxz. Addcolumn (" display toolbar ", center! , 330)
Lv_jsxz. Addcolumn (" style ", center! , 330)
Lv_jsxz. Addcolumn (" text location ", center! , 300)
Lv_jsxz. Addcolumn (" name ", center! , 170)
Lv_jsxz. Addcolumn (" icon "size, center! , 300)
Lv_jsxz. Addcolumn (" button interval line ", center! , 330)



Int li_row, I
For I=1 to 15

Li_row=lv_jsxz. Addlargepicture (" E: \ \ test program/Resource/Portal/Portal. Ico ")
Li_row=lv_jsxz. Addsmallpicture (" E: \ \ test program/Resource/Portal/Portal. Ico ")

Lv_item. Label='ABC' + string (I)
Lv_item. Data=https://bbs.csdn.net/topics/i
Lv_item. Pictureindex=li_row
Lv_jsxz. Additem (lv_item)
Next

Lv_jsxz. Setredraw (true)

CodePudding user response:

Try the code above, another look at your control in the corresponding event if there were any other code

CodePudding user response:

I copy the use statement window directly into our system, open the window and slowly, I put the application of DLL are deleted, the same window, not the same as a result,

CodePudding user response:

Li_row=lv_jsxz. Addlargepicture (" E: \ \ test program/Resource/Portal/Portal. Ico "), I joined the time calculation, here is the slow,

CodePudding user response:

Lv_jsxz. Addlargepicture (" E: \ \ test program/Resource/Portal/Portal. Ico "), the path with relative path will try to hurry

CodePudding user response:

What is your ico specifications

CodePudding user response:

Small ICONS, not icon, made a separate app no problem, the same code, and do our software, also calls the window to let him alone to carry out the code that is slowly,

CodePudding user response:

Doing system