Jump to content
Sign in to follow this  
MrSpacely

Several fonts in one label or edit?

Recommended Posts

I am trying to find out how to put multiple fonts definitions in one edit or label control.

The normal update function updates the whole control.

In short how to format text within one control.

I haven't found it in the manual does anyone know a way?

Share this post


Link to post
Share on other sites

all AutoIt GUI function can create control with only one font. THe Rich text control is not supported. :(

Share this post


Link to post
Share on other sites

probably better off trying to use the cwebpage.dll and embed a browser, which should allow multiple fonts.........


[u]Do more with pre-existing apps![/u]ANYGUIv2.8

Share this post


Link to post
Share on other sites

Is not you there not average to deviate the functions principal ??

If I takes an example of GUI of CyberSlug, and that I deviate it towards controls :

#include <GUIConstants.au3>
GUICreate("My Gui", 200, 200, -1, -1)
    GUISetState(@SW_SHOW)
Dim $gui_parent_control, $gui_child_control, $gui_child2_control
$gui_parent_control = GUICtrlCreateLabel("", 10, 10, 180, 180)
$gui_child_control = GUICtrlCreateLabel("My text", 15, 15, 50, 40, -1, $gui_parent_control)
    GUICtrlSetFont(-1, 9, 400, 4, "Tahoma")
$gui_child_control = GUICtrlCreateLabel("My second text", 80, 15, 100, 100, -1, $gui_parent_control)
    GUICtrlSetFont(-1, 14, 600, 2, "Comic sans MS")


While 1
    $msg = GUIGetMsg()
    
    If $msg = $GUI_EVENT_CLOSE Then ExitLoop
Wend

Unfortunately that does not function [correctly] (I am newbie on inclusion, sorry).

Could that by taking example there above function ? (with modification with the Style & Parent ?!)

Edited by Groumphy

----------------------GroumphyMore information about me [Fr]

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...