Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Ultimate Grid 6.1 (tab font)

Ultimate Grid 6.1 (tab font)

Scheduled Pinned Locked Moved C / C++ / MFC
csstoolshelptutorialquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    smbelow
    wrote on last edited by
    #1

    I am trying to set a different font inside a grid tab. The following code is a snippet of what I’m doing. When I run the application it crashes! Has anyone used the function call SetTabFont? And if so can you share some insight on how to properly use this thing. The commented code is what I’m inputting to try and get my desired response. Thanks for any help, Steve… void CProcessGrid::OnSetup() { CUGCell cell; CUGTab mTab; SetNumberSheets(3); AddTab("Procedure", 0); AddTab("Parts", 1); AddTab("Tools", 2); SetTabWidth(500); SetCurrentTab (0); //************ Change Font Size **********[SMB 06/20/05] // //CFont *mFont; //int fontIndex; //fontIndex = AddFont("Arial", 8, 2); //mFont = GetFont(fontIndex); //mTab.SetTabFont(mFont); // //*****************************************************

    L 1 Reply Last reply
    0
    • S smbelow

      I am trying to set a different font inside a grid tab. The following code is a snippet of what I’m doing. When I run the application it crashes! Has anyone used the function call SetTabFont? And if so can you share some insight on how to properly use this thing. The commented code is what I’m inputting to try and get my desired response. Thanks for any help, Steve… void CProcessGrid::OnSetup() { CUGCell cell; CUGTab mTab; SetNumberSheets(3); AddTab("Procedure", 0); AddTab("Parts", 1); AddTab("Tools", 2); SetTabWidth(500); SetCurrentTab (0); //************ Change Font Size **********[SMB 06/20/05] // //CFont *mFont; //int fontIndex; //fontIndex = AddFont("Arial", 8, 2); //mFont = GetFont(fontIndex); //mTab.SetTabFont(mFont); // //*****************************************************

      L Offline
      L Offline
      lynchspawn
      wrote on last edited by
      #2

      Is it possible that the mTab object hasn't been created yet (not a window yet)?

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups