⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fabout.class

📁 Gambas is a graphical development environment based on a Basic interpreter, like Visual Basic. It us
💻 CLASS
字号:
' Gambas class fileSTATIC PUBLIC FUNCTION Run() AS Boolean  DIM hForm AS Form  hForm = NEW FAbout  hForm.ShowModalENDPUBLIC SUB btnOK_Click()  ME.CloseENDPUBLIC SUB timAuthor_Timer()  DIM Y AS Integer    Y = svwAuthor.ScrollY  INC svwAuthor.ScrollY  IF Y = svwAuthor.ScrollY THEN    svwAuthor.ScrollY = 0  ENDIFENDPRIVATE SUB GetAuthor()    DIM hFic AS File  DIM sText AS String  DIM sLig AS String  DIM nLig AS Integer    OPEN "about.txt" FOR READ AS #hFic    WHILE NOT Eof(hFic)      LINE INPUT #hFic, sLig    IF NOT sLig THEN CONTINUE        sText = sText & "<p><font size=+1><b>" & sLig & "</b></font></p><blockquote>\n"    nLig = nLig + 2    LINE INPUT #hFic, sLig ' e-mail    sText = sText & "<u>" & sLig & "</u><br>"    INC nLig        DO          LINE INPUT #hFic, sLig      IF NOT sLig THEN BREAK            sText = sText & sLig & "<br>"      INC nLig          LOOP      'IF Right$(sText, 4) = "<br>" THEN sText = Left$(sText, -4)        sText = sText & "</blockquote>\n"    INC nLig    WEND    CLOSE #hFic    txtAuthor.Text = sText  'nLig * txtAuthor.Font.Height("a") * 0.95 + 256FINALLY  txtAuthor.Height = txtAuthor.TextHeight '+ svwAuthor.Height  'PRINT txtAuthor.TextHeightCATCH  txtAuthor.Text = Error.Text  ENDPUBLIC SUB Form_Open()  GetAuthorEND

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -