Guidance
指路人
g.yi.org
Guidance Forums / Reginald Rexx / Deleting/refreshing a view control

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. Deleting/refreshing a view control
#12724
Posted by: Michael S 2009-02-26 22:43:49
The attached code shows how to fill a view with some data. All well and good, but suppose I want to use the view to show varying "amounts" of data. For example, the first time, I might have 3 columns and 4 rows of data. The second time, 10 columns and 20 rows, and the third time, 2 columns and 5 rows.

The code shows how to delete the actual data rows, but how do I delete the view headers ?
view_header_question.rex
Message2.
#12732
Posted by: Jeff Glatt 2009-03-04 11:55:09
Get the handle to the control and call GuiSendMsg, sending a "DELETECOLUMN" event, and one arg that is the column number to delete (where 1 is the first column).
guisendmsg(myviewhandle, "DELETECOLUMN", columnnumber)
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Fri 2024-3-29  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0