CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - static color
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Search - static color - List
[
source in ebook
]
transparent_st
DL : 0
PB中的静态文本控件可以设置各种不同的背景色,但没有办法设置为透明色,这在某些特殊界面设计要求时显得心有余而力不足。本文提供一种实现透明文本的简单方法,并不需要借助API。方法如下: 1、 建立一个工作空间(workspace),取名为:transparent_st。 2、 建立一个应用(application),取名为:transparent_st。 3、 建立一个可视用户对象,uo_transparent_st,类型为statictext,定义下列变量: boolean ib_painting 4、 编写uo_transparent_st的Constructor事件脚本: //536870912 透明色 This.backcolor = 2^29 5、 定义uo_transparent_st的用户自定义事件,ue_paint(Event ID:pbm_paint) IF IsValid(This) THEN if ib_painting THEN Return 0 ib_painting = True This.Visible = False Do While Yield() Loop This.Visible = True ib_painting = False END IF Return 0 -PB in the static text control you can set different background color, but there is no way to set a transparent color, which in some special interface design it is very difficult request. This article provides a simple and transparent method of the text is no need to use API. As follows: 1, the establishment of a working space (workspace), named: transparent_st. 2, the establishment of an application (application), named: transparent_st. 3, the establishment of a visual user object, uo_transparent_st, type statictext, the definition of the following variables: boolean ib_painting 4, the preparation of the Constructor event uo_transparent_st script: // Transparent color 536,870,912 This.backcolor = 2 ^ 29 5, the definition of user-defined uo_transparent_st events, ue_paint (Event ID: pbm_paint) IF IsValid (This) THEN if ib_painting THEN Return 0 ib_painting = True This.Visible = False Do While Yield () Loop
Date
: 2025-12-23
Size
: 57kb
User
:
newease
[
source in ebook
]
deck-of-cards
DL : 7
编写一个洗牌和发牌的程序,包含类Card, 类DeckOfCards和一个驱动程序 类Card有: a) int型的数据成员face和suit b) 接受两个int型数据表示面值和花色的构造函数用于初始化数据 c) 两个string类型的static数组代表面值和花色 d) 一个toString函数返回Card,形式是“face of suit”的字符串。可以用+运算符连接字符串 类DeckOfCards有: a) 一个名为deck的Card类vector,用于存储Card b) 代表下一个将要处理的牌的整型值currentCard c) 一个用来初始化deck中的Card的默认构造函数。构造函数使用vector的函数push_back将产生的牌添加到vector的末尾。这个过程对于deck的52张牌都要做一遍 d) 函数shuffle用于洗牌。洗牌算法应该在vector中反复做。对于每张牌,随机选取另一张牌,然后交换这两张牌 e) dealCard函数返回下一张牌 f) moreCards函数返回一个bool值,代表是否还有牌要处理 驱动程序产生DeckOfCards对象,洗牌,然后发牌。 -英语中文(简体)日语Write a reshuffle and licensing program, containing the class Card class DeckOfCards and a driver Class Card: a) int type data members face and suit b) accept two int type data amount and color of the constructor is used to initialize data c) both the static array representing the par value of the string type and color d) a toString function returns the Card, the form of the "face of suit" string. You can use the+ operator connection string Class DeckOfCards: a) a named deck Card class vector for storage Card b) represents the next card to be processed integer value currentCard c) a Card in the default constructor is used to initialize the deck. The constructor uses the vector function push_back card added to the end of the vector. This process for a deck of 52 cards have to do it again d) function is used to shuffle shuffle. The shuffling algorithm should be repeatedly done in the vector. Randomly selected for each card, another card, and then exchange these two ca
Date
: 2025-12-23
Size
: 2kb
User
:
张国
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.