|
VFP ·R¥ÎªÌªÀ°Ï ¥»°Q½×°Ï¬° Visual Foxpro ·R¥ÎªÌ¸gÅç¥æ¬yªº¦a¤è, ½Ð¦h¦h§Q¥Î"·j´M"ªº¥\¯à, ¥ý¬d¬Ý¬Ý¦³µL«e¨Ò¥i´`, ¦pªGÁÙ¦³¤£À´ªº¦Aµo°Ý. ³¡¥÷¥DÃD¦³ªþ¥[ÀÉ®×, ¶·¥ýµù¥U¦¨¬°ªÀ°Ï©~¥Á¤~¥i¥H¤U¸ü.
|
¤W¤@½g¥DÃD :: ¤U¤@½g¥DÃD |
µoªí¤H |
¤º®e |
Ruey
µù¥U®É¶¡: 2003-03-12 ¤å³¹: 1698 ¨Ó¦Û: tunglo
²Ä 1 ¼Ó
|
µoªí©ó: ¬P´Á¤T ¤K¤ë 13, 2003 11:13 am ¤å³¹¥DÃD: ª¬ºAÄæ±±¨î¶µªº¨Ï¥Î»¡©ú |
|
|
ª¬ºAÄæ±±¨î¶µªº¨Ï¥Î»¡©ú
( §@ªÌ: ¬õªê )
¡@¡@¦bVFPªºµ{¦¡³]p¤¤¡A¨ä¥Dµøµ¡_screen¦³¤@Ó¨t²Îªºª¬ºAÄæ¡AÁöµM¥i¥H«Ü¤è«Kªº¨Ï¥Î©R¥Oset message to ¦r¤¸¡C¡C¡C¦ý¬O¦³®É«JÁÙ¬O·|¦³¬ü¤¤¤£¨¬¤§³B¡A¦p¨t²ÎªºÅã¥Ü¤@Ó·í«e¥´¶}ªº·í«e¤u§@°Ïªºªíªº¨M©w¸ô®|¡A¥H¤Î¨ä©Ò¦bªº°O¿ý¦ì¸m¡A©MÂê©w¤è¦¡¡A¥O¤H«Ü¬OÀY¯k¡C
¡@¡@·íµM¤£¶È¶È¦]爲¦¹¡A§ÚÌ´Nn©ñ±ó¸Óª¬ºAÄæ°Ú¡A¦³®É§ÚÌ»Ýn¨Ï§Ú̪ºª¬ºAÄæÅã±o§ó±M·~ÂI¡A©ÎªÌ»ÝnÅã¥Ü¯S©wªºª¬ºAÄæ¸ê°T¡A¬G¡A»Ýn¨Ï¥Îª¬ºAÄæ±±¨î¶µ¨Ó¨Ï§Ú̪ºµ{¦¡§óº}«G¡I
¡@¡@ª¬ºAÄæ¦bÅã¥Ü®É¦³¨âºØ¼Ò¦¡¡A¤@¬O³æª©±¡A¤G¬O¦hª©±¡C³æª©±´N¬O¦bª¬ºAÄæ¦a¤èÅã¥Ü¤@Ó¸ê°T°Ï¡A¦Ó¥B¥u¥i¥H©ñ¸m²³æªº¤å¦r»¡©ú¡A¦Ó¦hª©±¥i¥H©ñ¸m¤GÓ©Î¥H¤Wªº¸ê°T°Ï¡A¨Ã¥i¥H¯S©wªº¨t²Î»¡©ú¡A¦pCAPS¡ANUM¡AINSµ¥ªºª¬ºA«ü¥Ü¡A¨Ã¥i¥H©ñ¸m¹Ï¤ù¡C¦Ó¥B¨âºØ¼Ò¦¡¦b¤Á´«®ÉÁÙ¤£¤¬¬Û¤zÂZ¡A¤¬¤£¼vÅT¡I
¤U±»¡©ú¤@¤U¨ä¨Ï¥Î¤èªk
¡@¡@º¥ý¸Ó±±¨î¶µ»Ýn¤å¥ó mscomctl.ocx ªº¤ä´©¡A¦pªG¦b¦w¸Ë¤FVFP6ªºÀô¹Ò¤U¡A¨t²Î¥Ø¿ý¤U¤w¸g¦³¤F¸Ó¤å¥ó¡A¦pªG¦bקï©Î¹B¦æ«e´£¥Ün¥´¶}¤@ÓOCX¤å¥ó¡A¨º麽»Ýnº¥ý«þ¨©¸Ó¤å¥ó¨ì§Aªº¨t²Î¥Ø¿ý¡AµM«á¦A«ü©w¸Ó¤å¥ó¡A¦]爲²Ä¤@¦¸«ü©w®É¡A¨t²Î§Yµù¥U¸Ó¤å¥ó¡A¤Î¨ä¸ô®|¡A©Ò¥H¤£nÀH«K¦b²Ä¤@¦¸¥h«ü©w¤@ÓOCX¤å¥ó¡A§_«h³Â·Ð¤j¤F¡I
ª¬ºAÄ檺Äݩʤ§¤@STYLE¡A§Y¤W±©ÒÁ¿ªº¨âºØÅã¥Ü¼Ò¦¡¡A0 - Mutliple panels ©M 1 - Single panel simple text ·í爲Single panel simple text ¼Ò¦¡®É¡A«Ü¤è«Kªº³B²z¡A¥un«ü©wª¬ºAªº¥t¤@ÓÄÝ©Ê SimpleText§Y¥i¡A´N¶H¦b¾Þ§@VFP¥Dµøµ¡ªºª¬ºAÄæ®É¥Î set message to ¨º麽¤è«K¤F¡A¦b³oùØ´N¬Othisform.OleStatus.SimpleText="·sªº¦r¦ê"§Y¥i¡C
¦Ó·í¦b Mutliple panels ®É´N¤£¦P¤F¡A¨ä¹ê§ÚÌ»Ýn³oÓ±±¨î¶µ¤]´N¬O爲¤F³oÓ¥\¯à§a¡A¤£µM¥ÎVFP¥Dµøµ¡ªºª¬ºAÄ椣´N¦æ¤F¹À¡H¦b¦hª©±®É¡A¨C¤@Óª©±§@爲¤@Óª«¥ó¨Ó¾Þ§@¡A§YPanel¡A¹ï¤§§ÚºN¯Á¨ì¦p¤UªºÄÝ©Ê¡G
1¡BIndex ¬O«üPanelªº¯Á¤Þ¸¹¡A¸Ó¯Á¤Þ¸¹¬O¶¶§Ç±Æ¦C¥B°ß¤@«ü©w¨C¤@ÓPanelªº¡C
2¡BText ¬O«ü¦bPanel¤WÅã¥Ü¤å¥»ªº¡A¥u¦³·í¨äStyle=0¡]¤å¦r¡^®É¤~¦³®Ä¡C
3¡BToolTipText ¬O·í·Æ¹«²¾¨ì¸ÓPanel¤W®ÉÅã¥Üªº´£¥Ü¸ê°T¡An·í±±¨î¶µªºShowTips=.T.®É¤~¦³®Ä¡C
4¡BKey ¬O¥Î¨Ó°ß¤@¼Ð»x¨C¤@ÓPanelªºÈ¡A¸ÓÈn麽¤£«ü©w¡A§Y爲ªÅ¡An麽´N¬On°ß¤@«ü©w¡C¦b°µ¹ïPanelªº§R°£®É¡A»Ýn«ü©wPanelªºKeyÈ¡C
5¡BWidth ¬O«üPanelªº¼e«×¡A¼e«×¤£¥i¥H¤p©ó0¡A§_«h¥X¿ù¡C
6¡BTag ¥Î¨Ó¦sÀxÃB¥~¸ê®Æªº¡A¤@¯ë¨S¤°麽¥Î¡C
7¡BVisible Àq»{爲.T.§Y¥i¨£¡A¥i¥H³q¹Lקï¸ÓȨÓÁô§tPanel.
8¡BEnabled Àq»{爲¥i¥Î¡A¥i¥H³q¹Lקï¸ÓȨӪí¥ÜPanelªº¥i¥Î¤£¥i¥Îª¬ºA¡C
9¡BAlignment ¹ï»ô¤è¦¡¡AÀq»{爲¥ª¹ï»ô¡C
10¡BStyle ªí¥ÜPanelªº¼Ë¦¡¡A¦p´¶³q¤å¦r¡ACAPS¡ANUM¡AINSªºÁ䪺ª¬ºA«ü¥Ü¡A¥Î¨Óªí¥Ü¤é´Á¡A®É¶¡µ¥¡C
11¡BBevel ªí¥ÜPanelªº¥~Æ[¡A¦³¥±¡A¬ð°_¡A¥W¶i¤TºØ¡C
12¡BPicture ¸Ó°Ñ¼ÆÁÙ¥¼ª¾¦p¦ó¥H½sµ{¤è¦¡¨Ó«ü©w¡A¥LªºÈ¬O§@爲¤@Óª«¥ó¦sÀxªº¡C
¤èªk¡G
1¡B²K¥[
thisform.olestatus.panels.add(n,"key_"+allt(str(n)),"Ready",0 )
¥H¤W¥N½X°Ñ¼Æªí¥Ü¡G
N ¬O«ü¨äINDEXÈ¡A¸ÓÈ¥²¶·°ß¤@¡A¥B¬O¶¶§Ç«ü©w¡A
"key_"+allt(str(n)) ªí¥Ü¨äKEYÈ¡An«ü©w¡A¥²¶·¨Ï¥L°ß¤@¡A§_«h¥X¿ù¡C
"Ready" ¬O¦bPANEL¤WÅã¥Üªº¤å¦r¡C
«á±ªº0ªí¥Ü¨ä¼Ë¦¡爲´¶³q¤å¦r¡C
2¡B§R°£
thisform.olestatus.panels.remove(key)
«ü©w¬Y¤@ÓPANELªºKEYȮɡA¥i¥H³q¹L¸Ó©R¥O¨Ó°µ§R°£¡C
3¡B§ó·s
¸Ô²Ó¨£¥Ü¨Ò¤¤
À³¥Î¡G
1¡BÅã¥Ü¶i«×±ø¡G
*-- PANEL ªº¼e«× = 12 * ¤è¶ôÓ¼Æ + 2
with thisform.olestatus.panels.item(1)¡@&& ¦b²Ä¤@ÓPANELùØÅã¥Ü¶i«×±ø
.text = ""
nTotalNum = (.width - 2)/12 && Á`¤è¶ôÓ¼Æ
x = 0¡@¡@¡@&& ·í«e©Òpºâ¥Xªº²Ä´XÓ¤è¶ô¼Æ
y = 0¡@¡@¡@&& ¸òX°Ñ¦Ò¤ñ¸û¼Æ
nTotalSum = 100000¡@¡@¡@&& Á`¼Æ
for n = 1 to nTotalSum¡@&& ªí¥Ü±q1¨ì100000¤§¶¡ªº³B²z¶i«×
¡@¡@x = int((n * nTotalNum)/nTotalSum)¡@¡@&& ¨D±o²{¦b¬O»ÝnÅã¥Ü²Ä´XÓ¤è¶ô¼Æ X
¡@¡@if y <> x¡@¡@&& ·í¨âӼƤ£¬Ûµ¥®É¡Aªí©ú¦³·sªº¼Æ産¥Í¡A«h¥[¤@Ó¤è¶ô
¡@¡@¡@ .text = .text + '¡½'
¡@¡@¡@ y = x
¡@¡@endif
*-- ³B²z¬Y¨Æ°È
endfor
.text = "§¹²¦"
endwith
2¡BÅã¥Ü®ÉÄÁ
³oӫܲ³æ¡A¥un¦bªí³æ¤W©ñ¤@Ó®ÉÄÁ±±¨î¶µ¡A³]ÀW²v爲1000·L§®¡ATIMER¨Æ¥óùؼg
thisform.olestatus.panels.item(1).text = ttoc(datetime())
ªí¥Ü¦b²Ä¤@ÓPANELùØÅã¥Ü·í«eªº®É¶¡¡A¨Ã¨C¹j¤@¬í§ó·s¡A±q¦Ó¹F¨ì§Y®ÉÅã¥Ü®É¶¡¡A¦ý³oÓ¤£¬O«Ü¦³¥²n¡A²¦³º¥L´£¨Ñ¤F®ÉÄÁªº¥\¯à¡A¥u¬O¤£Åã¥Ü¬í¡H¡I
©Ò¦³¥H¤W»¡©ú¡A§¡¦b¥Ü¨Ò¤¤¥i¥H¬Ý¨ì¡A½ÐÂIÀ»¤U¸ü¥Ü¨Ò >>> Stabar.zip 7.4K _________________ #############################
§Ö¼Ö¶ý«}¨t¦C©¯ºÖ¦v°t,³Ü¤Q¥þÂû´ö~ì¨Ó©¯ºÖ¨º»ò²³æ!!
¾Ç·|VFP¨Ï¥ÎªÌªÀ°Ïªº·j´M,Code¤~·|§ó¦³½ì~
############################# |
|
¦^³»ºÝ |
|
|
jllu0406
µù¥U®É¶¡: 2006-09-07 ¤å³¹: 6
²Ä 2 ¼Ó
|
µoªí©ó: ¬P´Á¤ ¤E¤ë 22, 2006 1:08 pm ¤å³¹¥DÃD: |
|
|
½Ð°Ý±NSTATUSBAR©ñ©ó·sªí³æ§Ú·|±±¨î¡A¦ý¦p¦ó±Nstatusbar©ñ©ó_screen¨t²Î¥Dµe±¤U©O?µ{¦¡À³¦p¦ó¼g? Thanks |
|
¦^³»ºÝ |
|
|
|
|
±z µLªk ¦b³oÓª©±µoªí¤å³¹ ±z µLªk ¦b³oÓª©±¦^ÂФ峹 ±z µLªk ¦b³oÓª©±½s¿è¤å³¹ ±z µLªk ¦b³oÓª©±§R°£¤å³¹ ±z µLªk ¦b³oÓª©±¶i¦æ§ë²¼ ±z µLªk ¦b³oÓª©±ªþ¥[ÀÉ®× ±z µLªk ¦b³oÓª©±¤U¸üÀÉ®×
|
Powered by phpBB © 2001, 2005 phpBB Group ¥¿Å餤¤å»y¨t¥Ñ phpbb-tw ºûÅ@»s§@
|