Guidance
指路人
g.yi.org
Guidance Forums / Reginald Rexx / Example of spin control

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

  
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. Example of spin control
#13430
Posted by: Michael S 2010-12-15 03:12:28
Have you got an example of this Jeff ? I don't understand how to create a window with a spin and a buddy such that the buddy shows its value and then increases/decreases based on the spin control. Here are the definitions for the controls

guibegin


window , 0, 0, 400, 200, popup|caption|sysmenu|minbox|maxbox|thick, , my window
	font 8, 400, ms shell dlg
	spin 145, 52, 28, 28, right|buddy, , myspin, , 20 40
	entry 232, 135, 32, 22, h_auto|border|tabstop, clientedge, mytextcontrol
dend
guiend

and here is where I try to set the values

guicreatewindow('NORMAL')
guiaddctltext("MySpin", "MyTextControl")
mytextcontrol = 23
guisetctlvalue("MySpin")
What I don't understand is that I never seem to see any value for the buddy/spin controlss
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Fri 2024-3-29  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0